How Can I Back To Previous Line While My Program Is Running? | Sololearn: Learn to code for FREE!
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).

13th Dec 2017, 10:34 PM
Yusuf
Yusuf - avatar
3 odpowiedzi
+ 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
14th Dec 2017, 5:31 AM
Yusuf
Yusuf - avatar
+ 1
I will share the code of my program. And everybody can understand what I mean, inshaAllah.
14th Dec 2017, 7:33 AM
Yusuf
Yusuf - avatar
+ 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.
14th Dec 2017, 9:38 AM
Yusuf
Yusuf - avatar