Thread: Putch - conio

  1. #1
    Registered User
    Join Date
    May 2006

    Putch - conio


    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
    The edge of the known universe
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. conio linux and decisions
    By curlious in forum A Brief History of
    Replies: 15
    Last Post: 09-09-2005, 01:49 PM
  2. I need to get the conio library
    By zergdeath1 in forum C++ Programming
    Replies: 6
    Last Post: 10-25-2004, 11:45 AM
  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, 01:38 PM
  5. putch(''); ??????
    By bluehead in forum C++ Programming
    Replies: 3
    Last Post: 11-06-2001, 09:43 PM