This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re: terminal size problems


On Wed, 4 Feb 2004, Harold Levy wrote:

> Thanks for the response Igor!
>
> >> Hi, when my cygwin terminals are sized to something other than 24 rows
> > I'm assuming you're talking about the command windows running bash.
>
> It happens whether running a command window with bash or running an xterm;
> the fact that it happens in and out of xfree made me wonder if it was a
> cygwin issue.

Hmm, interesting -- certainly doesn't sound like a Cygwin issue.

> >> they don't work correctly with apps like vim/mutt/less when I connect to
> >> a remote unix system; these apps behave like they think the terminal
> >> has 24 rows.  It doesn't matter whether I use the bash shell or an xterm,
> > Huh?
>
> If I open a 32-row xterm and rlogin into a unix machine, then run vim or
> mutt or less, these apps think the bottom of the screen is at row 24 ...
> they don't use the rows beyond that.

Right, now I understand.  Do you have the $TERM set correctly on the
remote machine?  Did you try this over ssh rather than rlogin?

> > FWIW, I'm not seeing any problems running vi on a RedHat 9.0 machine via
> > ssh from a Win2k cmd window sized 120x40.
>
> I'm using WinXP-pro; I get the problem when I rlogin into RedHat 7.2
> or SunOS 5.8 machines.  It doesn't matter if I use an xterm, rxvt, or cmd
> window.

Cygwin's xterm is stock X, so it shouldn't matter which OS you're using.

> Thanks again,
> -Harold

Does your local 'vi' work correctly?  Does your Linux machine even have a
"terminfo" database?  An /etc/termcap file?  Do you get the same problem
if you pop up a remote xterm from the Linux machine and resize it?  I'd
suggest getting it to work with an xterm first, as the cmd window uses the
"cygwin" terminal type which older Linuxes may not be aware of...
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]