2

I have something like this:

 ______________________
/\                     \
\_| 1. Menu entry one  |
  | 2. Menu entry two  |
  | The user's choice:X|
  |   _________________|_
   \_/___________________/

I'm working on Linux so I can't use the conio.h to move the cursor to the X position. Besides that writing my own gotoXY function would be pointless because resizing the terminal emulator would screw everything up. How can achieve my goal?

Tomasz Kasperczyk
  • 1,991
  • 3
  • 22
  • 43

1 Answers1

0

http://en.wikipedia.org/wiki/ANSI_escape_code

Try messing around with the CSI n B and CSI n D options.

NaCl
  • 2,683
  • 2
  • 23
  • 37