[comp.sys.amiga] UW Bug

denbeste@bbn.COM (Steven Den Beste) (12/08/87)

When UW came over the net (in source form earlier this year) I messed with it
and had problems getting a termcap which would work with VI. I finally did
some low level experimentation and determined that UW had a small bug in it.

Whenever UW receives a LF, it moves the cursor down AND TO THE LEFT COLUMN.
This isn't UW's fault, really, it is just passing the LF through to Amigados,
which is interpreting it as a newline.

I have a patch for it, but not handy. Some time in the next couple of days I'll
try to reproduce what I did and put it on the net, including a new binary with
my fix.

Once this change is made, UW works fine with a standard VT100 termcap, if you
adjust the width and height values correctly.
-- 
Steven C. Den Beste,   Bolt Beranek & Newman, Cambridge MA
denbeste@bbn.com(ARPA/CSNET/UUCP)    harvard!bbn.com!denbeste(UUCP)
        I don't think BBN cares what I think about this stuff.
        And that's probably just as well.

dillon@CORY.BERKELEY.EDU (Matt Dillon) (12/08/87)

>Whenever UW receives a LF, it moves the cursor down AND TO THE LEFT COLUMN.
>This isn't UW's fault, really, it is just passing the LF through to Amigados,
>which is interpreting it as a newline.

	Console windows have the following escape sequences:

	SETMODE:    CSI20h   (9B 32 30 68)   LF = CR LF
	RESETMODE:  CSI20l   (9B 32 30 6C)   LF = LF

	CSI = 0x9B  or ESC open-bracket (^[[) can be used.


	Thus, simply send the proper sequence to the console device .
	
				-Matt