Date: Wed, 13 Feb 2002 20:04:58 +0200 From: "vadim" <vchekan@softline.kiev.ua> To: <freebsd-questions@freebsd.org> Subject: Shift+F1: how to? Message-ID: <000b01c1b4b8$f41ba880$ae02a8c0@megapolis.local>
next in thread | raw e-mail | index | archive | help
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-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000b01c1b4b8$f41ba880$ae02a8c0>