console app with ctrl+c closing

Linux specific forum
Lukaso
User
User
Posts: 20
Joined: Fri Apr 29, 2005 11:53 am
Location: Germany
Contact:

console app with ctrl+c closing

Post by Lukaso »

hello,

ive got a questsion: is it possible to make a console app under linux that will close itself by pressing ctrl+c or ctrl+x?

i hate to get a new screen to kill my app :x

thanks for all suggestions :)
walker
Enthusiast
Enthusiast
Posts: 634
Joined: Wed May 05, 2004 4:04 pm
Location: Germany

Post by walker »

Hi,

regarding to the manual.. .
PB-Manual wrote: In non-graphical mode, a special return value of #PB_Input_Eof (equals Chr(4)) will be received if the user enters a single Ctrl+D in the console, or a file that has been redirected to the programs input has reached its end.
..and CTRL-C works imho too...
Post Reply