Re: How to get a keypress event in an console application



On Mon, 18 Apr 2005 13:04:14 +0200, Ulrich Kotzolt wrote:

> I use to get the function keys that were pressed in an console
> application cause this application should also be used over a telnet
> server. Does someone know how to get the keys. Tanks for your help in
> advance. Ulrich

I think you need to PInvoke some Win32 API functions. See thise article:

http://www.thecodeproject.com/dotnet/ConsolePasswordInput.asp

hth
--
Claudio Grazioli
http://www.grazioli.ch
http://www.grazioli.ch/HommingbergerGepardenforelle/
.



Relevant Pages

  • Re: termcap and DISPLAY weirdness
    ... I think all I want out of vt220 is the function keys. ... >> machine and spawn an xterm. ... as well as when I telnet. ... >> xhosting and the like, but upon setting DISPLAY, even the ...
    (comp.unix.admin)
  • termcap and DISPLAY weirdness
    ... Using a X emulator, ... If, however, from within that xterm, I telnet back to the ... both the function keys and the application lines ... xhosting and the like, but upon setting DISPLAY, even the ...
    (comp.unix.aix)
  • termcap and DISPLAY weirdness
    ... I'm on an AIX box running 4.3.3, ... If, however, from within that xterm, I telnet back to the ... both the function keys and the application lines ... xhosting and the like, but upon setting DISPLAY, even the ...
    (comp.unix.admin)
  • SHIFT and FUNCTION KEYS
    ... compared to my current telnet. ... Problem is my unix programs require the use ... Function keys themselves are working fine, but when used with [SHIFT] don't ...
    (comp.security.ssh)
  • Re: virtual terminals beyond F12
    ... you'd have to switch from your "X" session to a "console" before using ... mostly a laptop's) and function keys are everything but easily accessible. ... The Keyboard and Console howto has some hints in section 7. ...
    (comp.os.linux.x)