I have come so far with my file viewer so It's time to make an an editor out of it.
I use ncurses in linux TTY, but i create my own window routines.( which means - I do NOT use the pre-fabricatd structs)
So far - I have one main window where I print my array of strings- but before they are displayed I shop them to proper length so they don't wrap (to avoid problems with scrolling)
It seems that they are wrapping, but it just my routines that show them that way,.
I have two alternative methods to choice from when decide how to put data back to my array of strings (wchar_t).
Either I can write the data directly to the screen - and read it back whole strings from the window..
OR I could write directly to the screen and also one char at the time to the right place in the string .
Is the one method more preferable before the other one.?
I have implanted methods for both, Just need to decide which route to go.
I suppose that the second method (both to screen and the array of strings), is more portable. But which is faster.?
Do I need to say that I am not an very experienced programmer. :-D