bug-ncurses
[Top][All Lists]
Advanced

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

Re: Ncurses : scrollback functionality


From: azzareld
Subject: Re: Ncurses : scrollback functionality
Date: Fri, 23 Jul 2010 02:55:18 -0700 (PDT)

Thanks for information. i tried following code but I don't understand the
reason for wich I don't see any change in display.

stdscr = initscr();
scrollok(stdscr, TRUE);
cbreak();
keypad(stdscr, TRUE);
pad = newpad(500, 120);
waddstr(pad, "test");
prefresh(pad, 0, 0, 0, 0, 500, 120);
getch();
endwin();

I expected to see printed on terminal the string "test"; what is it the
error?

Many thanks once again.
Bye


Thomas Dickey-2 wrote:
> 
> On Thu, 22 Jul 2010, azzareld wrote:
> 
>>
>> I have not a greate experience in developing under Linux. I'm developing
>> an
>> application wich writes by ncurses a menu on a terminal giving to an user
>> the possibility to make a choiche. I enabled the scrolling and effectivly
>> when the printing (made by printw) reaches the end of the window
>> automatically it scrolls. Then I tried to see the part of text not more
>> visible on the window executing a scroll manually by scrl (-1) but I see
>> only white rows as if there weren't a scrollback functionality. is it a
>> my
>> error or it isn't supported. Any suggest for me? Please it is important
>> for
>> me and any help will be very aprecied. I thank you in advantage.
> 
> There are basically two approaches:
> 
> a) make the application store the data which is scrolled out of sight,
>     and restore it when scrolling into view, or
> 
> b) store the data in a "pad", which is like a window, that can be much
>     larger than the terminal.  Manage that by changing the viewport.
> 
> -- 
> 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://old.nabble.com/Ncurses-%3A-scrollback-functionality-tp29239195p29245771.html
Sent from the Gnu - Ncurses mailing list archive at Nabble.com.




reply via email to

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