Thread: scroll up with ncurses ? plz help

  1. #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.

  2. #2
    Just kidding.... fnoyan's Avatar
    Join Date
    Jun 2003
    Location
    Still in the egg
    Posts
    275
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

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