Thread: setting cursor position

  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    3

    Question setting cursor position

    hello,
    I need a function that set the curser position.
    Preferably something platform independant, but if there is no such thing, then i mainly use linux.

    any help is appreciated

  2. #2
    Registered User
    Join Date
    Sep 2007
    Posts
    1,012
    There's no completely platform-independent way to do that, but there's a way to do it that'll be portable to most, if not all modern unix systems as well as others; and that's curses.

    Since you're on Linux, try typing "man ncurses" to get an overview of how curses works. As for your specific question, the curses move() function will do what you want, but you have to properly initialize curses first.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 48
    Last Post: 09-26-2008, 03:45 AM
  2. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 01:30 PM
  3. Your favourite fantasy game setting?
    By fry in forum Game Programming
    Replies: 4
    Last Post: 10-16-2002, 06:26 AM
  4. Setting the background color of my main window
    By Garfield in forum Windows Programming
    Replies: 5
    Last Post: 07-06-2002, 11:25 PM