Files
Retro68/Console
programmingkidx 017f80ad50 Reduce high CPU when sitting idle at the console. (#288)
* Reduce high CPU when sitting idle at the console.

* Update ConsoleWindow.cc

Add include for Patches.h. This is where OSTrap and ToolTrap are defined.

* Update ConsoleWindow.cc

Define OSTrap and ToolTrap instead of relying on a header file to do it.

* Update ConsoleWindow.cc

Added two different routineAvailable() functions.

* Update ConsoleWindow.cc

Implement changes suggested by the maintainer.
- Declare new functions as static.
2025-03-31 10:21:01 +02:00
..
2020-01-13 00:10:49 +01:00

    Console

This library provides a simple console library, offering a limited support for ANSI control sequences.

Here is a list of the supported sequences and their meaning:

ESC[0m              Reset all text style
ESC[1m              Bold font (*)
ESC[3m              Italic font
ESC[4m              Underline font

ESC]0;NewnameBEL    Set the window title to "Newname" (**)

NOTES:
(*) Obtained with bold + condense style together, so that the character grid
remains regular (this way, the width of bold characters remains the same as 
regular ones).
(**) BEL is ASCII character 7.