Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>No, not really easily, for that you'd have to use something like the <a href="http://docs.python.org/library/curses.html" rel="nofollow">curses library</a>, especially if you want to have more control over cursor placement and do more things programatically.</p> <p>Here's a link for the Python docs on <a href="http://docs.python.org/howto/curses.html" rel="nofollow">Programming with Curses</a>, and this short <a href="http://www.dev-explorer.com/articles/python-with-curses" rel="nofollow">tutorial/example</a> might be of interest too.</p> <p>I just found this note in the <a href="http://docs.python.org/howto/curses.html" rel="nofollow">docs</a> in case you are using Windows:</p> <blockquote> <p>No one has made a Windows port of the curses module. On a Windows platform, try the Console module written by Fredrik Lundh. The Console module provides cursor-addressable text output, plus full support for mouse and keyboard input, and is available from <a href="http://effbot.org/zone/console-index.htm" rel="nofollow">http://effbot.org/zone/console-index.htm</a>.</p> </blockquote> <p>I believe for C++ there is the <a href="http://hughm.cs.ukzn.ac.za/~murrellh/os/notes/ncurses.html" rel="nofollow">NCurses</a> library, the linked page has a section on <a href="http://hughm.cs.ukzn.ac.za/~murrellh/os/notes/ncurses.html#cursor" rel="nofollow">moving the cursor</a> if you want to poke around with C++. Also there's the <a href="http://www.bigwebmaster.com/General/Howtos/NCURSES-Programming-HOWTO/" rel="nofollow">NCurses Programming HowTo</a>.</p> <p><em>Long</em> time ago I used the curses library with C quite successfully.</p> <p><strong>Update</strong>:</p> <p>I missed the part about running this on a terminal/serially, for that the ANSI escape sequence, especially for a simple task like yours, will be easiest and I agree with @SvenMarnach solution for this.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload