开发者

GNU Screen: weird keyboard movements in zsh

开发者 https://www.devze.com 2023-01-20 07:12 出处:网络
If I type End in non-screen environment of my zsh console - it will move me to the end of line. But if I do the same in zsh behind screen then it will just upper case following word..

If I type End in non-screen environment of my zsh console - it will move me to the end of line. But if I do the same in zsh behind screen then it will just upper case following word..

How can I make those movem开发者_Python百科ents behave the same in screen environment too?


In your ~/.screenrc file add one of the following lines:

bindkey "\eOF" end-of-line
bindkey "\e[8~" end-of-line
bindkey "\eOw" end-of-line

depending on what you get when you press Ctrl-v End at a shell prompt. Escape is represented by ^[.

Alternatively, you can try setting TERM while you're in screen to the same thing it is outside screen.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号