vi turns off vt220 line wrap.... curses problem?

vi turns off vt220 line wrap.... curses problem?

Post by Rob Yampolsk » Sat, 21 Sep 2002 01:44:03



On AIX4.2.1 systems, when I run vi, the line wrap option in my vt220
emulator gets turned off (using Van*'s CRT).  So once you run vi,
all your compiler errors get truncated until you manually turn line wrap
back on.

This does not happen on AIX3.2 or AIX5L.  It also does not happen even
on AIX4.2.1 when I run a curses program of mine, so there must be some
obscure curses feature that vi's using.

What's up here?  Is it an AIX4 bug?  Can I work around it by modifying
my terminfo file?  How about replacing the vi execuatble or curses library?

Thanks,

Rob Yampolsky

 
 
 

vi turns off vt220 line wrap.... curses problem?

Post by Uwe Aue » Sat, 21 Sep 2002 01:57:58


Rob Yampolsky schrieb:
> On AIX4.2.1 systems, when I run vi, the line wrap option in my vt220
> emulator gets turned off (using Van*'s CRT).  So once you run vi,
> all your compiler errors get truncated until you manually turn line wrap
> back on.

> This does not happen on AIX3.2 or AIX5L.  It also does not happen even
> on AIX4.2.1 when I run a curses program of mine, so there must be some
> obscure curses feature that vi's using.

> What's up here?  Is it an AIX4 bug?  Can I work around it by modifying
> my terminfo file?  How about replacing the vi execuatble or curses library?

> Thanks,

> Rob Yampolsky


Hi,

did you check .exrc on your AIX4 system ?

Regards,
Uwe

 
 
 

vi turns off vt220 line wrap.... curses problem?

Post by Rob Yampolsk » Sat, 21 Sep 2002 02:43:38



> Hi,

> did you check .exrc on your AIX4 system ?

> Regards,
> Uwe

There's no global .exrc, and my personal one doesn't do anything funny.

It really looks like vi is turning off line wrap and forgetting to put
it back on when it exits.

I found a workaround.  I just copied the vi executable from an AIX3.2
system to my AIX4.2 system, and it works fine.

I also tried loading vim on my 4.2 system, and that works too - except
it doesn't use the AIX terminfo database, so it's a pain to use.

One other curses question.  I have a curses program that does line
drawing.  On AIX3.2 and AIX5L it works fine, but on 4.2 the lines show
up as dashes and pipe symbols.  Is curses in AIX 4 known to be broken?

-Rob

 
 
 

vi turns off vt220 line wrap.... curses problem?

Post by Thomas Dicke » Sat, 21 Sep 2002 08:43:38



> One other curses question.  I have a curses program that does line
> drawing.  On AIX3.2 and AIX5L it works fine, but on 4.2 the lines show
> up as dashes and pipe symbols.  Is curses in AIX 4 known to be broken?

perhaps - but the first place to look is your terminal description.
Assuming that vi is linked with curses, what is $TERM set to, and what
does infocmp say?

--

http://dickey.his.com
ftp://dickey.his.com