Thread: How to move the cursor to write in a different position of the screen?

  1. #1
    Registered User
    Join Date
    Sep 2004
    Posts
    13

    How to move the cursor to write in a different position of the screen?

    Hi guys,

    How can I move the actual cursor position for writting in a different place of the screen? Is there some kind of movexy()
    function for writting in a different place?

    Thanx in advance!

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    I'll assume that you didn't intend to double post since it's against forum guidelines.

    NCURSES

    gg

  3. #3
    .
    Join Date
    Nov 2003
    Posts
    307
    IF you are in console mode use ANSI escape sequences. If your terminal is set up as one that will respond to them... like vt100.

    http://www.delmar.edu/Courses/CIS415L/ANSIsys.htm

  4. #4
    Registered User
    Join Date
    Sep 2004
    Posts
    13
    Thanx guys. So there's no chance to do it cleanly without curses?

    Of course it wasn't my intention to post twice. Is just that first time my browser got blocked, so I thought that it wasn't posted.
    Sorry anyway and thanks a lot!

  5. #5
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    >> So there's no chance to do it cleanly without curses?
    Depends on what you mean by "cleanly". If you don't care about terminal portability, then you can use your terminal's explicit escape sequences using printf(). For VT100/ANSI terminals, use the reference that jim posted. Here's another reference as well.

    [N]Curses is a library that allows you to perform most of those functions in a terminal independent manner (with some extra functionality to boot).

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. i really need help here
    By Unregistered in forum C Programming
    Replies: 4
    Last Post: 04-09-2002, 10:47 PM
  2. so if you want to move something around screen...
    By Unregistered in forum C++ Programming
    Replies: 3
    Last Post: 02-26-2002, 02:02 PM
  3. Write directly to the screen?
    By SMurf in forum Windows Programming
    Replies: 0
    Last Post: 01-24-2002, 07:40 AM
  4. Shut off DOS screen automatically to Windows
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 11-08-2001, 07:14 PM
  5. position output on clear screen
    By ghettoman in forum C++ Programming
    Replies: 1
    Last Post: 11-02-2001, 01:34 AM