0
How Can I Back To Previous Line While My Program Is Running?
How can I back to previous line while my program that is written in C is running? Are there a way of doing that?Actually, I want to make my own text editor in C. But I don't know how to go previous line. I can send lots of sentence to a file with pressing enter key for now(I am using fgets and a 2d array).
5 Réponses
+ 1
I mean when my program starts to run, I can enter one line. When I press enter key, my program goes to the next line and I can't back to the previous line. I can just go to the next line.When I want to stop execution of my program I enter ctrl+d. @kurwius
+ 1
I will share the code of my program. And everybody can understand what I mean, inshaAllah.
+ 1
I don't have any special thing about my project. I am working on linux, and yes, I am talking about changing position of the console cursor....I will share my program when I come to home inshAllah.