Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Catching <CTRL-S> & <DELETE> from stdin
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
frankly
n00b
n00b


Joined: 20 Mar 2003
Posts: 12

PostPosted: Fri Mar 21, 2003 4:37 pm    Post subject: Catching <CTRL-S> & <DELETE> from stdin Reply with quote

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!! :D
_________________
fRaNkLy i'm FrAnKy
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum