PCjr Telnet Server Test

Dave McGuire mcguire at neurotica.com
Mon Sep 15 10:20:18 CDT 2008


On Sep 14, 2008, at 10:49 PM, Sean Conner wrote:
>> Oh, what is the deal with backspace/delete? Backspace does  
>> nothing, whilst
>> delete echos some form of control code to the screen. ctrl-H seems  
>> to work
>> as the erase character, though (and genuinely does erase from the  
>> string
>> that gets sent to the server upon <return>).  Is the PCjr doing  
>> something
>> non-standard with the handling of such keys, or is it just that other
>> telnet servers generally hack such keypress processing to accommodate
>> modern clients?
>
>   Well, the Linux kernel expects the erase key to be ASCII 127, and  
> has the
> backspace key generate said character.  The default xterm expects  
> the erase
> key to be ASCII 8 and doesn't know how to handle ASCII 127 that the
> backspace key under Linux sends.  And it drives me nuts!

   That has nothing at all to do with the kernel; it's in the  
terminal driver.  You can control all of those special character  
interpretations using stty.  You can make the "erase" character  
anything you want, even a regular alpha character, like 'X':

$ stty erase X

            -Dave

-- 
Dave McGuire
Port Charlotte, FL





More information about the cctalk mailing list