Closed nanoandrew4 closed 7 years ago
Hm, interesting. I'm not sure how we would go about fixing this though... is there a way to delete the previous newline and move the cursor up a line?
I don't think so, no newline character exists because it is the terminal that is wrapping the text, not our program. Which means we have to get creative as to how to solve this...
Hm, ok. I'll look into it.
The problem with this is we do not own the GUI, so we can not determine what the character limit on the terminal window is.
True... Any libraries that could help? I would just really not want to have to implement a GUI.
I am with you on that one, but as far as I know there is no library for this, since it is terminal specific. I'll look into it at some point soon, unless someone else can show us the way...
@nanoandrew4 I have forked the code and uploaded the changes. Can you please take a look?
I think I could handle implementing a GUI. I assume you mean for the GUI to replace running the program in the terminal?
Not to replace, to accompany it. Users should be able to choose, but ideally in windows they would use a GUI in order to circumvent this issue.
Hmm, why not though? Doing it in a GUI gives us much more control.
I think it would also remove the complexity of dealing with Unix vs Windows char codes and other weird behaviors of the windows terminal VS the unix terminal
This also has to work on headless systems, such as servers and such that don't have graphics... That's why we can't just move to a GUI. It is true that the GUI gives us all the control we need but we also have to support all those other systems.
Ah, that's a good point, I hadn't thought of that.
Should I still move forward on the GUI, as an option?
I think it's still a good idea, yes. That way we have that as a stable platform. Ultimately it's up to @Sergix, but I do think we are going to have to implement our own GUI at some point.
Or, as a random suggestion, there could be a command to load a GUI. Somewhat comparable to the DOS windows command.
You could just pass it as an argument too.
Right now, when the cursor reaches the end of the window and moves to a new line, even though it is all being interpreted on the same line, it will not let you backspace on to the previous line.