GEMDOS console functions and termination upon ctrl c
Moderators: simonsunnyboy, Mug UK, Zorro 2, Moderator Team
GEMDOS console functions and termination upon ctrl c
As you may know, the GEMDOS console functions like Cconout, Cconin etc. lead to program termination when ctrl c is pressed. Same with mintlib's standard io functions, which use Fwrite and Fread.
Is there any way to disable this behaviour (plain TOS)?
Is there any way to disable this behaviour (plain TOS)?
Re: GEMDOS console functions and termination upon ctrl c
rewrite over it in memory?
or avoid using it.
or avoid using it.
The radioactive half-life : )
Atari is a lifestyle,not a hobby.
HOLD ON ! ! ! Im printing unreadable characters ...!
Atari is a lifestyle,not a hobby.
HOLD ON ! ! ! Im printing unreadable characters ...!
Re: GEMDOS console functions and termination upon ctrl c
Not tested by me, but I believe you can use Crawin()/Crawio() for character input/output.
Jo Even
VanillaMiNT - Firebee - Falcon060 - Milan060 - Falcon040 - MIST - Mega ST - STM - STE - Amiga 600 - Sharp MZ700 - MSX - Amstrad CPC - C64
VanillaMiNT - Firebee - Falcon060 - Milan060 - Falcon040 - MIST - Mega ST - STM - STE - Amiga 600 - Sharp MZ700 - MSX - Amstrad CPC - C64
Re: GEMDOS console functions and termination upon ctrl c
Not tested, may be Bconin/Bconout is low level enough?
My Stuff: FB/Falcon CT63 CTPCI ATI RTL8139 USB 512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list
Re: GEMDOS console functions and termination upon ctrl c
As a general rule you should not use BIOS functions when writing a GEMDOS program.
Jo Even
VanillaMiNT - Firebee - Falcon060 - Milan060 - Falcon040 - MIST - Mega ST - STM - STE - Amiga 600 - Sharp MZ700 - MSX - Amstrad CPC - C64
VanillaMiNT - Firebee - Falcon060 - Milan060 - Falcon040 - MIST - Mega ST - STM - STE - Amiga 600 - Sharp MZ700 - MSX - Amstrad CPC - C64
Re: GEMDOS console functions and termination upon ctrl c
Ah, learn something new everyday. Thanks for the rule.
My Stuff: FB/Falcon CT63 CTPCI ATI RTL8139 USB 512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list
Re: GEMDOS console functions and termination upon ctrl c
That was my intention to ask this question. But if there is no chance to disable that by setting a bit in a system variable or something like that, I will switch over to BIOS functions. The RAWCON device is no option since I need the VT52 sequences.joska wrote:As a general rule you should not use BIOS functions when writing a GEMDOS program.
Re: GEMDOS console functions and termination upon ctrl c
If you’re writing C code, just catch the appropriera signal iirc.
Ain't no space like PeP-space.
Re: GEMDOS console functions and termination upon ctrl c
When a ctrl-c is received gemdos calls Pterm() but before it terminates the process it call the etv_term vector to give the process a chance to clean up. Setexc() can set the etv_term vector.
Where does Pterm() lead to? Probably the previous Pexec(). You can call Pexec() youself and when you get that Pterm() execution will return to just after the Pexec() you called.
Where does Pterm() lead to? Probably the previous Pexec(). You can call Pexec() youself and when you get that Pterm() execution will return to just after the Pexec() you called.