GameConsole

Summary

Manages a curses terminal window for a Pyxil console application. The console initializes curses in keypad mode and restores the terminal to its previous state when close() is called.

Definition

Namespace Pyxil.Framework
Syntax class GameConsole(object)

Constructors

Name Description
GameConsole() Initializes curses, disables terminal echo and line buffering, enables keypad mode, and clears and refreshes the standard screen.

Methods

Name Description
get_stdscr() Returns the initialized curses standard screen used by the console. The return type is curses.window.
close() Disables keypad mode, restores normal terminal buffering and echo, calls the curses shutdown routine, and marks the console as closed. Repeated calls have no additional effect.