Putch - conio

This is a discussion on Putch - conio within the Linux Programming forums, part of the Platform Specific Boards category; Hello I have a problem, I want to put the cursor on top left everytime my loop ends. With conio.h ...

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    4

    Putch - conio

    Hello

    I have a problem, I want to put the cursor on top left everytime my loop ends.

    With conio.h I did "putch('\b');"

    But in Linux there is no conio.h

    Is there an alternative???

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,855
    1. Use a library like ncurses.

    2. Use an escape sequence. I'll leave you to type in "ansi escape sequence" into google.
    Save to say that escape in C is "\033"
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. conio linux and decisions
    By curlious in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 09-09-2005, 02:49 PM
  2. I need to get the conio library
    By zergdeath1 in forum C++ Programming
    Replies: 6
    Last Post: 10-25-2004, 12:45 PM
  3. Replies: 0
    Last Post: 11-01-2002, 11:56 AM
  4. conio tutorial
    By aym_7 in forum C++ Programming
    Replies: 6
    Last Post: 08-10-2002, 02:38 PM
  5. putch(''); ??????
    By bluehead in forum C++ Programming
    Replies: 3
    Last Post: 11-06-2001, 09:43 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21