Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Feb 2002 21:06:10 +0200
From:      "vadim" <vchekan@softline.kiev.ua>
To:        <freebsd-ports@freebsd.org>
Subject:   Shift+F1
Message-ID:  <002d01c1af41$590f3b30$7a02a8c0@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-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002d01c1af41$590f3b30$7a02a8c0>