bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting the character at certain position...


From: ChCarver
Subject: Re: Getting the character at certain position...
Date: Sun, 23 Dec 2007 10:03:01 -0800 (PST)

This question has spawned me to ask. Is there a way to gather the current
terminal contents from the shell when an application starts? When I start my
ncurses application and paint (for the lack of a better term) with a new
window the contents of the terminal are removed and when I exit the contents
of the terminal come back. So it's that shell terminal contents I want.

I'd like to add to Speedy, I use a character buffer that allows me to scroll
through a window. It's the same concept video game developers use in
creating off screen buffers. That way I can create a virtual terminal as
large as I want it, mainly this allows me to scroll left or scroll right
inside a window. Whenever I want to read a character a call into the buffer
returns what I'm looking for. Only a section of the buffer of coarse is
displayed. But then I don't have to keep track of certain aspects. For me I
allow the user to "bookmark" (once again lack of a better term) a row. Then
they can scroll through bookmarks in the buffer and ncurses allows me to
repaint the windows really fast. I don't know if this might help, but it
might give you future ideas. 


Thomas Dickey-2 wrote:
> 
> On Sun, 23 Dec 2007, Speedy wrote:
> 
>>
>> I researched a bit, but I can't to figure out how to get the character
>> from a
>> position I specify. Function mvgetch() doesn't work like this because it
>> waits for user input. Does anyone have any idea about this?
> 
> mvinch() is a good place to look.
> 
> -- 
> Thomas E. Dickey
> http://invisible-island.net
> ftp://invisible-island.net
> 
> 
> _______________________________________________
> Bug-ncurses mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-ncurses
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Getting-the-character-at-certain-position...-tp14478161p14480418.html
Sent from the Gnu - Ncurses mailing list archive at Nabble.com.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]