[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Mar 19 12:25:55 2001 
Subject:Re: vedcharinsert in linux console 
From: 
Volume-ID:1010319.04 

In article <3AB5EA2F.5B72@ed.ac.uk>,
	Stephen Isard <S.IsardDeleteThis@ed.ac.uk> writes:
> I am finding that when I run ved in a linux console - i.e., plain
> black and white screen, no windows - I get extra, spurious, spaces
> echoed to the screen when I insert characters into a line.
> 
> That is, go to the beginning of a line, type a character, say 'a'.
> Do ctrl-a to get back to the beginning of the line and type another
> character, say 'b'.  The line ought now to contain "ba", but instead it
> contains "b a".  The space isn't really there in the ved buffer, because
> it goes away if I do vedrefresh and it doesn't show up if I write the
> file and cat it.
> 
> I get the same effect if instead of typing the 'b' directly, I go to the
> command line and do :vedcharinsert(`b`), so it's something to do with
> vedcharinsert.
> 
> This is happening both with the unchanged pop11 binary that I downloaded
> with poplog15.53 and with one I have recompiled to run under libc5, and
> under both RedHat 6.0 and two mini linuxes.  I haven't knowingly changed
> any ved source files or library files.  It is only happening in the
> linux console, not when I run ved inside an xterm window, or in xved. 
> Is it a familiar symptom to anyone else?  Is there a known cure?

I remember something like that happening ... check to see if the console
has insert mode switched on. Or something like that.

(pause ...) I've just done `man console` and was thusly provoked to do
`man console_codes`. There *is* some kind of insert mode, but I can only
see how to turn it on: it's supposed to be off by default.

You may be able to check my hypothesis by changing to a shell that doesn't
do command-line editing bash-style, typing some characters, using arrows
to go back, type a character, and see if the rest of the line moves right.
On the other hand you may not ...

(pause ...) OK, I shifted to a console and tried it ... looks like that's
the problem, but I don't know off-hand how to fix it. But that may be
enough for you to find the right guru/newsgroup/book/webpage!

-- 
Chris "i t ' s   a   r e a l  p a i n , i s n ' t  i t ." Dollin
C FAQs at: http://www.faqs.org/faqs/by-newsgroup/comp/comp.lang.c.html