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???
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 ...
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???
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.