As an excercice on #plan9 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 #plan9 way of coding. Any suggestions?