Thread: How can I enable a vertical scroll bar in my c program?

  1. #1
    Registered User
    Join Date
    Oct 2011
    Posts
    13

    How can I enable a vertical scroll bar in my c program?

    My program has muliple lines which will output various status information. But currently it won't output beyond 24 rows, which is the default VT100 terminal size, I guess that's why.

    Anyone know of a way to force my c program to use a vertical scroll bar instead?

    I am using ncurses as well.

    Thanks!


    How can I enable a vertical scroll bar in my c program?-stat_high-jpg

  2. #2
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    I can't help you with the vt buffer and scroll bars, but if you re-arranged how your output is printing, you could see a lot more of it before it scrolled off the screen.

    Your terminal should be 80 char's wide, so fit as many fields as you can with a space or two between each field, and go across the screen, using that horizontal space that is currently empty.

    If you make it so the total of fields width and spaces between them, adds up to 80 chars wide, you will have perfectly aligned columns, and no newlines required, on most hardware.

  3. #3
    Registered User
    Join Date
    Oct 2011
    Posts
    13
    Oh, each row has much more info to it. I just used that screen shot for example purposes.
    I won't be able to fit more info into columns.
    Still need to figure out how to enable a scroll bar.

  4. #4
    spaghetticode
    Guest

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Vertical Scroll Bar
    By csonx_p in forum Windows Programming
    Replies: 2
    Last Post: 07-01-2008, 12:33 AM
  2. Pls debug my scroll program
    By Raison in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2004, 07:30 PM
  3. Vertical scroll????
    By Unregistered in forum Windows Programming
    Replies: 0
    Last Post: 02-14-2002, 12:14 PM
  4. I need help with my vertical bar graph program.
    By smokedragon in forum C++ Programming
    Replies: 2
    Last Post: 10-30-2001, 05:01 PM
  5. vertical scroll bars..
    By ober in forum Windows Programming
    Replies: 11
    Last Post: 10-04-2001, 08:04 AM