Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-xxxfer.readnews.com!news-out.readnews.com!transit3.readnews.com!panix!not-for-mail From: Grant Edwards Newsgroups: comp.os.linux.development.apps Subject: Re: Set/get console cursor position without use ncurses Date: Mon, 19 Nov 2012 22:43:23 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 41 Message-ID: References: NNTP-Posting-Host: dsl.comtrol.com X-Trace: reader1.panix.com 1353365003 3662 64.122.56.22 (19 Nov 2012 22:43:23 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Mon, 19 Nov 2012 22:43:23 +0000 (UTC) User-Agent: slrn/pre1.0.0-18 (Linux) Xref: csiph.com comp.os.linux.development.apps:517 On 2012-11-19, Chris Cox wrote: > On 11/19/2012 10:13 AM, Grant Edwards wrote: >> On 2012-11-19, Max wrote: >>> Tauno Voipio wrote: >>> >>>> Please think twice: You're saying 'I need the services of ncurses, >>>> but do not want to use it'. You need to code much of the functionality >>>> of ncurses. >>> >>> Since looking around it seem no one thought to find a way to move the >>> cursor without the help of ncourses move() >> >> Nonsense. >> >> Just send the escape sequence yourself. > > Not quite right, I was responding to the statement that nobody has found a way to move the cursor without using ncurses move(). > but ok in many cases nowadays... but the more correct answer is to > query the capability from the current term database and use the codes > that it wants you to use for that terminal. That way, the > implementation will be terminal independent. If terminal independence is a requirement, then that's definitely the way to go. However, the requirement was for "linux console" only. _If_ that requirement is correct, then I doubt the linux console codes are going to change much over the years. They certainly haven't in the first 20 years. Are there any popular terminal emulators that won't work with the ANSI cursor-movement sequence that's used by the Linux console? On the third hand, given that ncurses is ubiquitous and rather small, trying to avoid it would seem to be a false economy. -- Grant Edwards grant.b.edwards Yow! I am having FUN... at I wonder if it's NET FUN or gmail.com GROSS FUN?