Page 1 of 1

console app with ctrl+c closing

Posted: Sun Jan 13, 2008 7:59 pm
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 :)

Posted: Tue Jan 15, 2008 2:02 pm
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...