How to force keystrokes into the buffer on Unix
- From: gazelle@xxxxxxxxxxxxxxxxxxxxx (Kenny McCormack)
- Date: Sat, 29 Apr 2006 20:25:31 +0000 (UTC)
I know there is a way to do this - that is, a system call that allows
you to push a character into the keyboard buffer - but I can't seem to
find it now (checked man pages for tty, termio(s) on several systems).
I found a workaround, with expect, like this:
expect -c 'spawn program;expect something;send key;interact'
but I'd prefer to avoid that as it brings in the overhead of expect and
a tty layer just to push one key. Anyway, I think I did this a long
time ago and that it is TIOsomething. Can anyone help?
.
- Follow-Ups:
- Re: How to force keystrokes into the buffer on Unix
- From: noogie . brown
- Re: How to force keystrokes into the buffer on Unix
- From: Barry Margolin
- Re: How to force keystrokes into the buffer on Unix
- From: David Schwartz
- Re: How to force keystrokes into the buffer on Unix
- Prev by Date: Re: Get number of running processes
- Next by Date: Re: How to force keystrokes into the buffer on Unix
- Previous by thread: filename of the file to which a filedescriptor refers.
- Next by thread: Re: How to force keystrokes into the buffer on Unix
- Index(es):
Relevant Pages
|
|