-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
terminal weirdness - uparrow at bottom line - doesn't redraw command. #1289
Comments
I am suspecting the problem is in the "dirty check" that's used to decide whether or not there's a need to draw those characters. Note the problem happens the same on the in-game window and in telnet. |
Interesting - it's dumping an exception silently to the output log when this happens. The exception isn't causing it to barf - it's just silently continuing on.
|
I seem to remember a similar error in a recent issue (again related to the line buffer for the terminal) but I can't seem to find it. I want to say that you @Dunbaratu fixed it, maybe you recall? |
I think there was an earlier problem with it throwing an exception in some edge cases of the screen redraw, but it was fixed - this must be being caused by a different set of circumstances. |
Note to self to try when I come back to this: I think the exception is caused by the fact that in Interpreter.cs, in the following lines:
The The problem is I have to solve this chicken-and-egg situation by exploding some of the parts of these out. At the moment, |
…_history Fixes #1289 (buffer overrun in command history)
Closed #730 from this too. |
To reproduce:
The command is invisible but it is in the buffer. If you hit enter it will run again. You can edit it, but you have to edit it blindly - i.e. backspace some and then retype stuff.
The moment you make an edit that will insert a new character into the line, THEN it redraws the line. Before that it does not. Deleting a char doesn't redraw it - only adding a new nonblank character does.
The text was updated successfully, but these errors were encountered: