How can I print text without jumping and move the cursor without text moving?
I’ve been trying to implement a simple terminal text editor using the crossterm
crate and I’m able to create the screen and implement the cursor movements for basic h,j,k,l keys and I’m able to print text to the screen. However the issue I’m having is when I read some text files and print them to the terminal the lines are jumping like a stairway and with the cursor movement the text is movement. How can I fix this. What should I do if I want to render the text as it in the file and edit the text with the cursor movement and text insertion.
How can Iprint text without jumping and move the cursor without text moving?
I’ve been trying to implement a simple terminal text editor using the crossterm
crate and I’m able to create the screen and implement the cursor movements for basic h,j,k,l keys and I’m able to print text to the screen. However the issue I’m having is when I read some text files and print them to the terminal the lines are jumping like a stairway and with the cursor movement the text is movement. How can I fix this. What should I do if I want to render the text as it in the file and edit the text with the cursor movement and text insertion.