You can escape character map codes in a string to get the desired character printed in the screen.
C64 skin style character map
For example, let str = "this is an horizontal rule: \64"
the \64
refers to the character # 64 in the character map (starting in zero).
You need to escape codes only to get “special” characters, the usual ones are mapped to the correspondent character map, like A
or %
E.g.
Result for c64 charmap:
Warning
- String operations doesn’t work correctly with escaped characters. E.g.
len("a\233")
results to5
, not to the expected2
- The
inverted
parameter in the string doesn’t work for special characters (like you can see in the previous example)
This program prints the character map on screen:
ZX Charmap
C64 charmap
Note
You can change the
system-skin
for the configuration cabinet using the AGE configuration using files to get access to a different character map.