Date: Fri, 7 Oct 2011 09:18:57 +0200 From: Polytropon <freebsd@edvax.de> To: Gary Kline <kline@thought.org> Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: OT: how to tell when i've hit a Fn key? Message-ID: <20111007091857.33b47b19.freebsd@edvax.de> In-Reply-To: <20111006224114.GA15978@thought.org> References: <20111006224114.GA15978@thought.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 6 Oct 2011 15:41:17 -0700, Gary Kline wrote: > > I've got a 103-key keyboard. most of them produce the right WAV > file. i was having some trouble with the arrow key, but think i've > found a resolution. next are the Function key, F1 to F12. > > anybody on-list familiar with curses and can help me with this? > right now, most of the function keys output 4 clicks [!]. Capturing PF keys is very easy with ncurses. The macro KEY_F(n), n=1..12, can be checked as the result of the getch() function. The other "special keys" also have such macros assigned. You can find them in the header file /usr/local/include/ncurses/ncurses.h around line 1400. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111007091857.33b47b19.freebsd>