frankly n00b
Joined: 20 Mar 2003 Posts: 12
|
Posted: Fri Mar 21, 2003 4:37 pm Post subject: Catching <CTRL-S> & <DELETE> from stdin |
|
|
Hi ppl,
I wanna know how to catch the signal <DELETE> in the command prompt? Also, <Ctrl-S> is a special character to suspend the terminal, so how can I catch this character? Should I simply monitor the stdin(fd=0)? And stdin by default is line-buffered, so how do I handle the command promt like an editor (display any character typed and read the line after <EOL>) and also handle other signals (e.g. send SIGINT to the own process when <ctrl-c> is pressed) ?
Thanz!! _________________ fRaNkLy i'm FrAnKy |
|