Thread: Making text scroll downwards

  1. #1
    Registered User
    Join Date
    Oct 2007
    Posts
    4

    Making text scroll downwards

    I was trying to make text scroll downward, like in the matrix, does anyone have some kind of idea of how to do this?

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Well, it would depend on the environment you are doing it in.

    It is of course on the basic level trivial: You just have to draw letters on various Y coordinates on the screen. But that involves "moving the cursor" and knowing what's where on the screen. You may find that libraries such as "ncurses" will help you.

    [This doesn't include the "afterglow" that you see in the Matrix, where the letters leave a trail of "glow" behind - that would definitely require some graphical mechanism, as monitors these days are designed for fast refresh, and not like old times when the manufacturers relied on afterglow to avoid flickering displays].

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 0
    Last Post: 07-02-2007, 12:32 AM
  2. Removing text between /* */ in a file
    By 0rion in forum C Programming
    Replies: 2
    Last Post: 04-05-2004, 08:54 AM
  3. Ok, Structs, I need help I am not familiar with them
    By incognito in forum C++ Programming
    Replies: 7
    Last Post: 06-29-2002, 09:45 PM
  4. Making text adventures (begginer)
    By funkydude9 in forum C++ Programming
    Replies: 6
    Last Post: 03-08-2002, 03:28 AM
  5. Making a text editor
    By neandrake in forum C++ Programming
    Replies: 5
    Last Post: 02-26-2002, 11:43 PM