22 Jun
2022
22 Jun
'22
1:58 p.m.
the tutorial says this: Your application can determine the size of the screen by using the curses.LINES and curses.COLS variables to obtain the y and x sizes. Legal coordinates will then extend from (0,0) to (curses.LINES - 1, curses.COLS - 1). we'll also need the character aspect ratio to draw things that look right. the aspect ratio of a text terminal is usually about 1/2 . the same syscall that gets the lines and cols actually reports this information (in the form of pixel count), so i'll probably store it as separate width and height aspect variables