Re: [linux-audio-dev] Howto grab keys?

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] Howto grab keys?
From: Pamplemousse Mk2 (pamplemousse_mk2_AT_netcourrier.com)
Date: Mon Aug 23 2004 - 22:13:58 EEST


Paul Davis wrote:

> if simply getting ascii characters from ncurses is enough, then this
> message doesn't matter. but if you start to want to use modifiers
> combined with keys (e.g. Alt-a, Ctrl-F1), you need to move beyond the
> normal ncurses model.
>
> if you take a look at the ardour ncurses front end "ardour/ksi", you
> will find a relatively small app that does something pretty close to
> what you are thinking about. the key element is setting up the tty in
> medium-raw mode so that you can get actual key events from the
> keyboard rather than ASCII chars the way that ncurses normally does.
>
> try browsing CVS at:
>
> http://ardour.org/cgi-bin/viewcvs.cgi/ardour/ksi_ardour/
>
> and take a look at physical_keyboard.cc and ksi.cc to get an idea of
> what i am talking about.
>
> --p
>

Ok ok. I will look at ardour code.
Thanks.


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Mon Aug 23 2004 - 22:18:25 EEST