| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | ctrl-c? |
Excerpted from message dated 07-05-96, Tom Almy to Udo Van Den Heuvel:
UVDH> How do I catch a CTRL-C so it doesn't cancel my program?
TA>In C you use "signal(SIGINT, SIG_IGN)" to ignore Control-C. You can
>also have a function that executes if you want to give it special
>handling.
Hi Udo--
Or, you can switch to PL/I for OS/2 for writing your programs .
There is a compile-time option that will send a Ctrl-C (or Ctrl-Break)
interrupt to a designated procedure in your program, instead of to OS/2.
Regards,
--Murray
___
* MR/2 2.25 #120 * "Have a frabjous day." he chortled in his joy
--- Maximus/2 2.02
* Origin: OS/2 Shareware BBS, telnet://bbs.os2bbs.com (1:109/347)SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934 SEEN-BY: 711/955 712/407 515 517 628 713/888 800/1 @PATH: 109/347 18 13/25 396/1 270/101 712/515 711/808 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.