Navigation and Viewing Framework
Configurable navigation and viewing setups for various display types in the VR lab
 All Classes Namespaces Files Functions Variables Pages
Functions | Variables
lib-server.ConsoleIO Namespace Reference

Functions

def print_warning
 Prints a colored warning message on the console. More...
 
def print_error
 Prints a colored error message on the console and ends the application optionally. More...
 
def print_message
 Prints a colored information message on the console. More...
 
def print_headline
 Prints a colored headline on the console. More...
 
def print_subheadline
 Prints a subheadline on the console. More...
 
def get_calling_filename
 Gets the filename from which one of the print functions was called. More...
 

Variables

string color_reset = '\033[0m'
 
string color_warning = '\033[1;93m'
 
string color_error = '\033[1;91m'
 
string color_message = '\033[1;92m'
 
string color_headline = '\033[1;94m'
 

Function Documentation

def lib-server.ConsoleIO.get_calling_filename ( )

Gets the filename from which one of the print functions was called.

def lib-server.ConsoleIO.print_error (   MESSAGE,
  TERMINATE 
)

Prints a colored error message on the console and ends the application optionally.

Parameters
MESSAGEThe message to be printed.
TERMINATEBoolean saying if the application is to be terminated.
def lib-server.ConsoleIO.print_headline (   MESSAGE)

Prints a colored headline on the console.

Parameters
MESSAGEThe message to be printed.
def lib-server.ConsoleIO.print_message (   MESSAGE)

Prints a colored information message on the console.

Parameters
MESSAGEThe message to be printed.
def lib-server.ConsoleIO.print_subheadline (   MESSAGE)

Prints a subheadline on the console.

Parameters
MESSAGEThe message to be printed.
def lib-server.ConsoleIO.print_warning (   MESSAGE)

Prints a colored warning message on the console.

Parameters
MESSAGEThe message to be printed.

Variable Documentation

string lib-server.ConsoleIO.color_error = '\033[1;91m'
string lib-server.ConsoleIO.color_headline = '\033[1;94m'
string lib-server.ConsoleIO.color_message = '\033[1;92m'
string lib-server.ConsoleIO.color_reset = '\033[0m'
string lib-server.ConsoleIO.color_warning = '\033[1;93m'