C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 01-29-2006, 11:53 PM   #1
Registered User
 
Join Date: Jan 2006
Posts: 6
scroll up with ncurses ? plz help

Hi every1. I am writing a small console progy here using ncurses libraries. What i would liked to know is how to scroll upward using any of ncurses functions. Basically what i have is a window. And i want to write at the very bottom of it, and whenever i change to a new line i need the previous line to go up by 1. So, can anyone share his knowledge as to how it coulbe de done? And if someone could provide a small snippet it would be great.

Thanks, appriciate in advance.
dimaash is offline   Reply With Quote
Old 01-30-2006, 05:17 AM   #2
Just kidding....
 
fnoyan's Avatar
 
Join Date: Jun 2003
Posts: 223
Hi

Once I used ncurses in a program but never mentioned about scrolling! One of the best programs that uses ncurses is links (a consol based www browser). Even It has no scrolling option, since to read something you have to press "space" or "up/down arrow" and then the screnn moves "one page" upward!

This makes me think so that, you have to move the whole screen at a time. So, if you want to scroll just one line, create a new window and then write the lines in previous windows staring from line number 2 and then add the new line at the bottom. So, the user thinks that when he presses "down arrow" the page just moves one line.
fnoyan is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to scroll a message across an LED display souldoutt C Programming 5 11-27-2008 10:39 PM
Need help with edit box and vert scroll AndewWood Windows Programming 11 01-08-2008 02:00 AM
Scroll Bars Are Scrolling Me Crazy Iyouboushi C# Programming 6 03-03-2006 01:43 PM
Scroll Bars and Focus Thantos Windows Programming 1 08-21-2003 11:57 AM
Horizontal Scroll Bars with CListBox Malek Windows Programming 1 04-10-2003 09:58 PM


All times are GMT -6. The time now is 02:17 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22