crossterm how to print text without jumping and move cursor without text moving
so i’ve been trying to implement and simple terminal text editor using rust crossterm crate and i’m be able to create the screen and implement the cursor movements for basic j,k,h,l keys and i’m be able to print text to the screen. however the issue i’m having is when i read some text files and print it to terminal the lines are jumping like 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.