==== Console Output ====
Console output (via BDOS functions) uses TXT OUTPUT so executes firmware control codes and displays CPC firmware characters. However, BDOS function 2 (Console output) looks for some specific characters and will perform specific processing regardless of whether it is part of a control character sequence or not. One of these is TAB (&09). Therefore use BDOS function 6 (Direct console input/output) to avoid this processing. Therefore you can use the control codes to define windows, change modes, change colours etc.
==== Serial number ====