[Tutor] Why does using "window.addchr()" to place a character at the lower right corner raise an exception?

Malcolm Herbert mjch at mjch.net
Wed Feb 27 20:56:59 EST 2019


yes - usually that was the prompt for the terminal to insert a new line ... on some terminals this is a behaviour you can't control as it's implemented in hardware, so curses fakes things by moving the cursor back to where it "should" be afterward.

If you try and to something when the cursor is at the extreme bottom right of the window/region and the terminal is hard-coded to do $magic immediately after, then your screen will be all messed up.

-- 
Malcolm Herbert
mjch at mjch.net


More information about the Tutor mailing list