Answer the question
In order to leave comments, you need to log in
How to implement movement in the terminal?
The task is this: I want to make a snake in C. I realized that you can move the cursor (in the terminal) through escape sequences. But the problem is that I don't understand how to move the cursor to a straight line. like I press the up arrow and the cursor goes up, to the right - goes to the right, etc. How can this be done?
And an additional question, how to find out the size of the terminal through an escape sequence?
PS ncurses.h do not offer =)
Answer the question
In order to leave comments, you need to log in
I don’t remember all the details of the implementation of the class for working with the console, but I can accurately indicate the directions for searching for the following:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question