class documentation

class Screen:

Constructor: Screen(keypad)

View In Hierarchy

Low-level screen management for curses applications.

Provides a wrapper around curses screen operations including initialization, input handling, and display management.

Method __init__ Initialize the screen.
Method draw_text Draw text at the specified position.
Method get_key Get the next key from the input buffer.
Method refresh Refresh the screen to display pending changes.
Instance Variable _stdscr Undocumented
def __init__(self, *, keypad: bool = False):

Initialize the screen.

Parameters
keypad:boolWhether to enable arrow keys and function keys (default: False).
def draw_text(self, y: int, x: int, text: str, *, bold: bool = False, underline: bool = False):

Draw text at the specified position.

Parameters
y:intRow position.
x:intColumn position.
text:strText to draw.
bold:boolWhether to draw in bold style (default: False).
underline:boolWhether to draw in underline style (default: False).
def get_key(self) -> int:

Get the next key from the input buffer.

Returns
intThe key code, or -1 if no key is available.
def refresh(self):

Refresh the screen to display pending changes.

_stdscr =

Undocumented