[gnu.gdb.bug] GDB 3.3 Readline problem, specific to X11 xterm windows

andrewt@watsnew.waterloo.edu (Andrew Thomas) (10/05/89)

I have recently installed GDB 3.3 on a uVax II running Ultrix 2.0.
When running in an xterm window, the readline library inserts an extra
space after every inserted character, but only on the screen (the
readline routines do not see the space).  For example, if I have the
line:

(gdb) This is a test

and I backspace to the word 'is', delete it (which works correctly),
and type the word 'was', I see the following on the screen:

(gdb) This was    a test.

Using ^E to go to the end of the line places the cursor over the 'e'
in 'test'.

If I am editing a previous command, the little star gets placed at the
beginning of the line, and the whole line gets munged. For example, if
I type 'was' in the previous example before deleting 'is' I get:

(gdb) This was  s is  a test

The end of the line is at the space between 'a' and 'test'.

This behaviour does not occur on a standard vt100, vt200, or vt220
terminal.

Has anybody else seen this problem?  Is it an xterm termcap problem,
or something wrong with readline?

--

Andrew Thomas
andrewt@watsnew.waterloo.edu	Systems Design Eng.	University of Waterloo
"If a million people do a stupid thing, it's still a stupid thing." - Opus