[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#305849: xterm: Xterm sends broken Ctrl-Left/Right/Up/Down sequences



On Fri, Apr 22, 2005 at 04:00:19PM +0200, Paul Evans wrote:
> Package: xterm
> Version: 4.3.0.dfsg.1-12
> Severity: normal
> 
> 
> Since nearly a year ago now, Ctrl-arrow keys have not sent a control
> sequence that vim / bash / etc... can properly recognise as such.
> 
> E.g. in bash/vim, Ctrl+Left/Right is supposed to move a whole word in

"supposed to" sounds like a user configuration issue (in this case it is).

> the indicated direction. Running this from a Linux VC works, as does
> gnome-terminal. But running it in a real xterm causes bash(readline) to
> print ;5D rather than move the cursor, and causes vim all variety of
> bugs, depending on what sort of machine is running that vim. Linux's
> vim simply returns to normal mode. Solaris' vim deletes the line above
> the current one.

See xterm's manpage where it documents modifyCursorKeys.

(ignoring the misleading comment about Linux console, the
issue with gnome-terminal is that it copied xterm's behavior some
time ago and did not incorporate this particular fix).

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

Attachment: pgpPl7Q8aGUVO.pgp
Description: PGP signature


Reply to: