| |
Sasq
Registered: Apr 2004 Posts: 156 |
The quirks of the petscci screen
I am writing a telnet server for petscii terminals and need to work around the petscii quirks, and just want to make sure I know about them.
* Entering a char at column 39 (wrapping) ties those two lines together, so that Shift-enter on the first line will actually go down 2 lines
* Entering a double quote captures all special keys until a closing quote
...meaning that I have to use INSERT and push chars into the last column instead of going there, and always print 2 double quotes after each other and delete the last to keep a synchronized state between the server and the c64 remote screen...
(cgterm on PC does not have these quirks of course, but all term progs I've tried on the C64 uses the ROM-routines to output text so they inherit them). |
|
| |
doynax Account closed
Registered: Oct 2004 Posts: 212 |
A quick web search didn't turn anything up but I would have thought that someone would at least have tried to create a termcap/info definition for it at some point, which you might base your work on.
Or is PETSCII just too far gone from ASCII for that sort of thing to even be contemplated? |
| |
Bitbreaker
Registered: Oct 2002 Posts: 508 |
Why not just implementing your own output methods onto the screen as quite some petscii-editors do as well? |
| |
Sasq
Registered: Apr 2004 Posts: 156 |
I am not going to write my own terminal program, I want it to work with existing ones like guruterm and the Turbo Action cart. |
| |
chatGPZ
Registered: Dec 2001 Posts: 11386 |
someone created proper termcap/info, comes with kipperterm if i recall correctly... or caterm? or whatever it was called :=)
one other "quirk" - the duplicated petscii codes (your input routines must be able to handle both sets, just like the kernal does.) |