From owner-freebsd-questions@freebsd.org Fri May 20 12:03:25 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CC743B43D23 for ; Fri, 20 May 2016 12:03:25 +0000 (UTC) (envelope-from dickey@his.com) Received: from smtp-1.his.com (smtp-1.his.com [216.194.195.13]) by mx1.freebsd.org (Postfix) with ESMTP id 859151D4D for ; Fri, 20 May 2016 12:03:25 +0000 (UTC) (envelope-from dickey@his.com) Received: from localhost (localhost [127.0.0.1]) by smtp-1.his.com (Postfix) with ESMTP id 169B460804 for ; Fri, 20 May 2016 07:58:16 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at smtp-1.his.com X-Spam-Flag: NO X-Spam-Score: -2.611 X-Spam-Level: X-Spam-Status: No, score=-2.611 tagged_above=-99 required=4 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham Received: from smtp-1.his.com ([127.0.0.1]) by localhost (smtp-1.his.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JGt3tvNNOZLO for ; Fri, 20 May 2016 07:58:11 -0400 (EDT) Received: from smtp-nf-201.his.com (smtp-nf-201.his.com [216.194.196.24]) by smtp-1.his.com (Postfix) with ESMTP id 7F970607FE for ; Fri, 20 May 2016 07:58:11 -0400 (EDT) Received: from cuda201.his.com (cuda201.his.com [216.194.196.22]) by smtp-nf-201.his.com (Postfix) with ESMTPS id EF4AD60596 for ; Fri, 20 May 2016 07:58:04 -0400 (EDT) X-ASG-Debug-ID: 1463745484-061c411222d8cd0001-jLrpzn Received: from smtp-nf-202.his.com (smtp-nf-202.his.com [216.194.196.20]) by cuda201.his.com with ESMTP id XO9nDnpAkMZdVUyo; Fri, 20 May 2016 07:58:04 -0400 (EDT) X-Barracuda-Envelope-From: dickey@his.com X-Barracuda-RBL-Trusted-Forwarder: 216.194.196.20 Received: from mail-sterling.his.com (mail-sterling.his.com [216.194.248.141]) by smtp-nf-202.his.com (Postfix) with ESMTP id 1978E6034E; Fri, 20 May 2016 07:58:04 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail-sterling.his.com (Postfix) with ESMTP id BEBFD3F80003; Fri, 20 May 2016 07:58:04 -0400 (EDT) X-Barracuda-RBL-Trusted-Forwarder: 216.194.248.141 X-Virus-Scanned: amavisd-new at mail-sterling.his.com Received: from mail-sterling.his.com ([127.0.0.1]) by localhost (mail-sterling.his.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lHldHpizlUTR; Fri, 20 May 2016 07:58:00 -0400 (EDT) Received: from mail-sterling.his.com (mail-sterling.his.com [216.194.248.141]) by mail-sterling.his.com (Postfix) with ESMTP id 95CD33F80006; Fri, 20 May 2016 07:58:00 -0400 (EDT) Date: Fri, 20 May 2016 07:58:00 -0400 (EDT) X-Barracuda-RBL-Trusted-Forwarder: 216.194.248.141 From: Thomas Dickey To: Sebastian Gniazdowski Cc: freebsd-questions@freebsd.org Message-ID: <21413114.7193453.1463745480420.JavaMail.root@his.com> In-Reply-To: Subject: Re: Curses applications to catch SHIFT + cursor keys MIME-Version: 1.0 X-ASG-Orig-Subj: Re: Curses applications to catch SHIFT + cursor keys Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [64.134.102.26] X-Mailer: Zimbra 7.2.6_GA_2926 (ZimbraWebClient - FF3.0 (Linux)/7.2.6_GA_2926) X-Barracuda-Connect: smtp-nf-202.his.com[216.194.196.20] X-Barracuda-Start-Time: 1463745484 X-Barracuda-URL: https://spam.his.com:443/cgi-mod/mark.cgi X-Barracuda-Scan-Msg-Size: 1021 X-Virus-Scanned: by bsmtpd at his.com X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=7.0 tests=BSF_SC0_MISMATCH_TO X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.29755 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.00 BSF_SC0_MISMATCH_TO Envelope rcpt doesn't match header X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2016 12:03:25 -0000 ----- Original Message ----- | From: "Sebastian Gniazdowski" | To: freebsd-questions@freebsd.org | Sent: Friday, May 20, 2016 2:26:27 AM | Subject: Curses applications to catch SHIFT + cursor keys | | Hello, | is there a way to make curses applications correctly catch SHIFT + | cursor left / cursor right? I tested this with zsh and curses module, | and it doesn't work. Also, following short test application: | | http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/1.0-RELEASE/ports/ss/sunfkeys/f1.c | | shows that KEY_SLEFT, KEY_SRIGHT aren't catched. On X11 pressing the | combinations outputs an escape series. Is there any solution? It's doable, by calling use_extended_names (an ncurses feature). However: it would only be useful in the ncurses port, since FreeBSD base install uses a termcap file which lacks all of the extended keys. -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net