console question

Samuel Thibault samuel.thibault@ens-lyon.org
Tue May 16 14:05:00 GMT 2006


Hi,

Jeff Lange, le Tue 16 May 2006 09:50:41 -0400, a écrit :
> I've come across an anomaly with the standard cygwin console regarding
> cursor advancement.

What you call "standard cygwin console" is the _windows_ console.

> If I have a console 80 chars wide, and echo the following text:
> 
> ^[[H12345678901234567890123456789012345678901234567890123456789012345678901234567890^Mxxxxxxxx
> 
> I would expect to see the following output (as I do in Linux or rxvt):
> xxxxxxxx901234567890123456789012345678901234567890123456789012345678901234567890

That depends on the terminal type.  Some do wrap at the right side,
others don't, see the "am" capability in man 5 terminfo.  In addition to
that, some do wrap as soon as the 80th position is filled, see the "sam"
capability.

> The cursor is being advanced to the second line when the 80th
> character is written to the screen, this shouldn't be the default
> behavior.

That's the way the windows console behaves.  Not much can be changed
here.  Just run rxvt ;)

Samuel

--
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/



More information about the Cygwin mailing list