Fixes #17. The issue was introduced by #15, which started to call Console.SetCursorPosition(0, 20) after printing the bottom-right character. That position is just outside the buffer area. I changed the code to call Console.SetCursorPosition(0, ...) at the beginning of each line instead. That fixed the crash; however, I started to see the window scrolled up one line after the bottom-right character is printed. It seems the simplest fix to avoid scrolling is to add an extra (unused) line at the bottom of the window.
Fixes #17. The issue was introduced by #15, which started to call
Console.SetCursorPosition(0, 20)
after printing the bottom-right character. That position is just outside the buffer area. I changed the code to callConsole.SetCursorPosition(0, ...)
at the beginning of each line instead. That fixed the crash; however, I started to see the window scrolled up one line after the bottom-right character is printed. It seems the simplest fix to avoid scrolling is to add an extra (unused) line at the bottom of the window.