Unix Programming - Re: Get current screen location

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > October 2007 > Re: Get current screen location





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Get current screen location
Thomas Dickey

2007-10-26, 7:34 am

Stephane CHAZELAS <this.address@is.invalid> wrote:
> 2007-10-25, 11:47(-00), Thomas Dickey:
[vbcol=seagreen]
> Thanks Thomas,


> So, how much can you rely on tput u7, then?


It's in ncurses - but not in other implementations.

> I can see u7 is often set to \e[6n, but terminfo(5) manpage,
> only describes u7 as "user string #7". Is there any sort of
> standard that says that u7 should contain the "request cursor
> position" escape sequence when available?


There is no _standard_, but the comments in ncurses' terminfo.src note
this use. The tack program (which I understand to be the origin of
this) assumes these strings are set up, and will use them. Since the
example is from vt100, then most of the currently-used terminals should
support this.

Some other applications may use them, but I do not have a list.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com