Subject: ksh emacs editing mode and screen
To: None <current-users@netbsd.org>
From: Jukka Salmi <j+nbsd@2005.salmi.ch>
List: current-users
Date: 04/22/2005 12:00:47
Hi,

on a current i386 system, I'm having problems using ksh emacs line editing
mode in screen (4.0.2nb1 from pkgsrc/misc/screen).

Typing a long (i.e. more than $COLUMN characters) command, jumping to the
beginning of the line using ^Aa (since we're in screen), moving forward at
least two characters using e.g. ^F, and then issuing ^W shows strange
behaviour: the cursor is moved to the top, and the screen filled with
characters from the command just edited. Example:

$ screen
$ ps -ax # fill the screen
$ echo 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789

Before executing the last command, do:

^Aa
^F
^F
^W

Now my screen looks like this:

$ ho 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456>
$ ho 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456>
$ ho 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456>
$ ho 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456>
$ ho 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456>
$ ho 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456>
$ ho 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456>
$ ho 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456>
$ ho 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456>
$ ho 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456>
$ ho 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456>
$ ho 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456>
$ ho 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456>
$ ho 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456>
$ ho 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456>
$ ho 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456>
$ ho 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456>
$ ho 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456>
$ ho 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456>
$ ho 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456>
$ ho 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456>
$ ho 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456>
$ ho 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456>
$ ho 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456>

Seems I'm unable to find the problem. Any hints?


TIA, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~