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: console question


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"

> 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 ;)


Unsubscribe info:
Problem reports:

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