|
Re: RE: The kbhit() function...
|
04/30/2009 2:54 PM
post28469
|
Re: RE: The kbhit() function...
> One more question, how to detect console name
> on which appliaction is started ?
"/dev/tty" should be magically redirected to your console (implementation-wise an open of this device becomes an openfd
of the controlling terminal of the session leader), so could just open() this.
$ echo "my console" >/dev/tty
my console
|
|
|