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