Roland Mainz wrote: > Are there any known problems with "multiline" input (e.g. % set -o > multiline #) in ksh93r ? It seems that in some cases the multiline > editing in emacs mode has some problems when a line is longer than the > terminal window is wide and removing chars via the "Backspace" key makes > it again shorter than the window width (=the whole string which is being > edited fits in one single line again). > > Steps to reproduce (for ksh93r in Solaris 10/SPARC): > 1. Resize a terminal window (CDE 1.3 dtterm) to COLUMNS=40 LINES=24 (the > specific sizes does not matter, it's just to make the screenshot below > smaller :-) ) > 2.Start ksh93 with no other environment variables set except than > EDITOR=gmacs and TERM=dtterm > % env - EDITOR=gmacs TERM=dtterm ./arch/sol10.sun4/bin/ksh -o multiline > 3. Enter the string 'echo "large string which does not fit in this small > window"' > 4. Now delete the string char-by-char until the cursor passes the first > character in the current line. > > Result is the following garbage in the terminal window: > -- snip -- > $ env - EDITOR=gmacs TERM=dtterm ./ar> > $ echo "large string which does not fit > E[A > E[Aecho "large string which does not fit > it > -- snip -- > > A screenshot is attached as "ksh93r_multiline_input_problems.gif".
I forgot one question: Is there a way to teach ksh93 to recognize size changes of the terminal window ? Currently it seems to require a manual % eval `resize` # to do the job... ;-( ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) roland.mainz at nrubsig.org \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 7950090 (;O/ \/ \O;)
