As an excercice on I am trying to write a basic text editor in C. Sofar I can open a file and read it into a biobuffer, then print it to the console by writing to /dev/cons file. That works fine. Now I am struggling to clear the console before writing, so that I have only the intended text, which I can edit and then save by reading /dev/cons and saving it to the original text file. Not sure if this makes send nor if this is the way of coding. Any suggestions?

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.sdf.org/users/icoon/statuses/114773246095282432 on your instance and quote it. (Note that quoting is not supported in Mastodon.)