Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Sep 2014 20:23:18 +0700
From:      Victor Sudakov <>
Subject:   xterm, screen and the "Home" and "End" keys
Message-ID:  <>

Next in thread | Raw E-Mail | Index | Archive | Help

Could you please help me solve the problem with screen or xterm?

 From a FreeBSD 9.3 xterm I ssh to a remote host. The "Home" key sends
(and the remote application receives) "0x1B 0x5B 0x48" (ESC [ H) 
which is correct.

However, if I start screen on the remote host, the application within
the screen's virtual terminal receives "0x1B 0x4F 0x48" for "Home"
which is "ESC O H". It results im the "Home" and key not working
correctly in vim etc.

The "End" key has the same problem.

Could someone with a knowledge of screen and termcap in general help
me figure out why the keys are so mangled and what I could do to fix

Victor Sudakov,  VAS4-RIPE, VAS47-RIPN

Want to link to this message? Use this URL: <>