|
I'm not sure if this is a bug, or I'm just doing something wrong, but I couldn't get the I'm testing via a telnet connection into a Linux host, so the title initially starts out as something like "ip.address:port - Kermit 95". From looking at the code, I got the impression that this might be the So I tried Alt+X, and then |
Replies: 2 comments 5 replies
|
It's a bug! I'm kind of amazed I didn't notice before; I must have been doing all of my testing using the VT320 terminal type when I implemented the various xterm OSCs as it turns out VT320 effectively the only terminal type that was getting OSC support! Glad someone else is poking at K95 or that one might have slipped through. I've pushed a fix for this so it should be working properly now. |
|
Gave those two a test on the VT520, but there wasn't any character set translation. Plus it seems to clear the 8th bit:
A little bit surprising really - I can't think of a good reason for it to treat the title specially. As for what K95 is doing... I had to step through in the debugger to figure out. UTF-8 to UCS-2 happens first, then when sees that it is processing an escape sequence it proceeds to process it as ASCII throwing away all but the lower 7 or 8 bits (depending on byte size setting). Doing this to the first character happens to result in CAN. I think this is probably a bug - I'm not sure why you'd expect throwing away all but the lower 8 bits of a UCS-2 character to produce a sensible result. It should in this case perhaps explicitly insert a CAN into the stream to get back to normal mode rather than convert the stream into garbage. I've added a ticket to deal with DECSWT, etc, specifically as K95 really ought to handle UTF-8 there though there are some details that will make it a bit more complicated to implement than it should be - #556 |

It's a bug! I'm kind of amazed I didn't notice before; I must have been doing all of my testing using the VT320 terminal type when I implemented the various xterm OSCs as it turns out VT320 effectively the only terminal type that was getting OSC support! Glad someone else is poking at K95 or that one might have slipped through.
I've pushed a fix for this so it should be working properly now.