[NTLUG:Discuss] Inserting characters into the console

Kevin Brannen kbrannen at gte.net
Thu Jan 13 01:08:13 CST 2000


"John R. Hall" wrote:
> 
> I just hacked Intellimouse wheel response into GPM, but currently it only
> logs the wheel motion to a file. I'd like to make it cause arrow key presses on
> the current virtual terminal. Does anyone know how to do this? More generally,
> how can I cause keystrokes on the current virtual terminal?
> 

Reeves,

Try sending your "arrows" to /dev/tty, sometimes that works.  You *may*
have to change it to "raw" mode with an ioctl().  Just change it back
afterwards.  If you know what tty you actually have (e.g. virtual
terminal #2 reports /dev/tty2 with the "tty" command :-) that might
work.

HTH,
Kevin




More information about the Discuss mailing list