How to simulate keyboard.../dev/tty0?
From: Keeper (keeper_at_iosys.no-ip.org)
Date: 11/11/03
- Previous message: Colin McSwiggen: "Re: DBI error"
- Next in thread: Brian McCauley: "Re: How to simulate keyboard.../dev/tty0?"
- Reply: Brian McCauley: "Re: How to simulate keyboard.../dev/tty0?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 11 Nov 2003 09:42:31 +0100
Hi all,
I'm trying to send chars to the current console (currently having cursor
focus) - /dev/tty0 - in my program by:
my $st = 'K'
my $ri = 'L'
my $ng = 'J'
open(TTY, ">/dev/tty0");
ioctl(TTY, &TIOCSTI, $st);
ioctl(TTY, &TIOCSTI, $ri);
ioctl(TTY, &TIOCSTI, $ng);
I'm using redhat 9, kde.
Everything is ok in the linux console (on tty1 chars are sending
properly - KLJ...), but in kde i see strange things (and not only for
those characters):
^[[D- on ttyp1
- on mozilla window
My question is why chars are not properly sending by ioctl call, is
there any additional settings to do (setting termios, keyboard driver?)??
thanks,
Keeper
- Previous message: Colin McSwiggen: "Re: DBI error"
- Next in thread: Brian McCauley: "Re: How to simulate keyboard.../dev/tty0?"
- Reply: Brian McCauley: "Re: How to simulate keyboard.../dev/tty0?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|