On Mon, 2002-08-05 15:43:18 +0100, Glynn Clements wrote in message <15694.36614.996185.222692@cerise.nosuchdomain.co.uk>: > +Rudymartin wrote: > > im trying to develop a text editor using gcc version 2.96 20000731 (Red Hat > > Linux 7.1 2.96-81) , and thats because I want to make some experience with > > C++ (I used to program in Java and C under windowz) The Info pages have > > information about most libraries and functions but I have found no way to > > trap the modifiers keys (ALT/CTRL/SHIFT) under a terminal. And I noticed > > emacs can trap those keys under a terminal. > > You can't get the same kind of modifier behaviour on a terminal that > you can in a windowed environment. Even better question: I'd like to work on a text-based application and I'd like to act on simply pressing eg. Ctrl (change some context menu). I can do this with the hack I just posted nicely, but it will fail when running under X11. Is there any possibility in getting a callback registered called everytime an event occures which affects my terminal emulation's window? There, I could fetch the modifiers... MfG, JBG -- Jan-Benedict Glaw . jbglaw@lug-owl.de . +49-172-7608481 -- New APT-Proxy written in shell script -- http://lug-owl.de/~jbglaw/software/ap2/