Screen

class consolemenu.screen.Screen[source]

Class representing a console screen.

static clear()[source]

Clear the screen.

static flush()[source]

Flush any buffered standard output to screen.

input(prompt='')[source]

Prompt the end user for input.

Parameters:prompt (str, optional) – The message to display as the prompt.
Returns:The input provided by the user.
static printf(*args)[source]

Print the specified arguments to the screen.

Parameters:*args – Variable length argument list.
static println(*args)[source]

Print the specified arguments to the screen, including an appended newline character.

Parameters:*args – Variable length argument list.
screen_height

The screen height in rows.

Type:int
screen_width

The screen width in columns.

Type:int