Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh in screen - bad erase key ^@ instead of ^H or ^?



Ok, I just did a ^K BS and it output <Nul> instead of <BS>. I can get
around this in vim by mapping <Nul> to <BS> but there's problems sshing
or using any program that uses bs. Anyone know how to change my
backspace key codes? I'm pretty sure that's the problem.  stty erase
blah doesnt seem to work, and I cant force a ttyctl f before running the
screen...
Thanks!



Peter Stephenson wrote:
> Chuck wrote:
>   
>> Unfortunately, bs really is sending ^@ in screen and I cannot change it.
>>     
>
> If that's the case, then bindkey in zsh is your only hope.
>
>   
>> stty erase '^H' or '^?' doesn't change bs at all. It's as if the key
>> mapping at a lower level is screwed up.
>>     
>
> zsh does have the capability to freeze the terminal settings:  make sure
> you have "ttyctl -u" in effect.  "ttyctl" on its own will tell you what
> the current state is.  If it reports "tty is not frozen" I think you've
> run out of things you can do in the shell.
>
>   



Messages sorted by: Reverse Date, Date, Thread, Author