From owner-freebsd-ports Wed Feb 6 11: 9: 1 2002 Delivered-To: freebsd-ports@freebsd.org Received: from ns.softline.kiev.ua (softline.ukrpack.net [195.230.133.242]) by hub.freebsd.org (Postfix) with ESMTP id D32AD37B42A for ; Wed, 6 Feb 2002 11:08:44 -0800 (PST) Received: (from root@localhost) by ns.softline.kiev.ua (8.12.2/8.12.2) id g16J2YoM019216 for freebsd-ports@freebsd.org; Wed, 6 Feb 2002 21:02:34 +0200 Received: from vital (vital.megapolis.local [192.168.2.122]) by ns.softline.kiev.ua (8.12.2/8.12.2) with SMTP id g16J2UdX019212 for ; Wed, 6 Feb 2002 21:02:34 +0200 Message-ID: <002d01c1af41$590f3b30$7a02a8c0@megapolis.local> From: "vadim" To: Subject: Shift+F1 Date: Wed, 6 Feb 2002 21:06:10 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello all! I'm trying to port console application with ncurses usage that use Shift+Fx keys. I've found out which commands FreeBSD console driver issues by looking into http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/kbd/kbdtables.h?rev=1.49&c ontent-type=text/x-cvsweb-markup and I've insrted few lines into init code like: define_key("\E[Y", KEY_F(13)); define_key("\E[Z", KEY_F(14)); define_key("\E[a", KEY_F(15)); This makes Sift+F1 - Shift+F3 working. Questions: 1. Why FreeBSD doesn't define this keys in /etc/termcap? 2. How should I port this application? Is the way with ncurse's define_key() right? Brgds Vadim Chekan. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message