user80805
user80805

Reputation: 6508

GNU Screen: weird keyboard movements in zsh

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 movements behave the same in screen environment too?

Upvotes: 1

Views: 328

Answers (1)

Dennis Williamson
Dennis Williamson

Reputation: 359855

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.

Upvotes: 1

Related Questions