Subject: bug#811: 23.0.60; emacsclient -t inserts one char when pressing an arrow key

From: Chong Yidong <[email-masked]>
Date: Fri, 29 Aug 2008 18:39:52 -0400

Anyone have any idea what causes this bug?  I noticed that if you switch
to the X frame, then switch back to the terminal frame, the first arrow
key you enter into the terminal then behaves correctly.  Very strange.

> 1. Start emacs -Q
> 2. eval (server-start)
> 3. from a terminal, invoke emacsclient -t some-file
> 4. Press <left>, <right>, <up> or <down>
>
> The first keypress of an arrow key after the emacsclient invokation
> inserts one D, C, A or B.  The next press moves point as expected.  With
> emacsclient -c this does not happen.