Log In  

Hi,

Playing with custom fonts, I found that the \n escape sequence cannot be followed by an a in the string (probably an issue also with 0-9 and a-f). This doesn't occur in the default font mode (works as expected)...

poke(0x5600,8,8,8,0,0) -- setup 8x8 font

-- Char 97 'a'
poke(0x5600+(8* 97),
  12,108,99,3,48,54,198,192)

-- Works with "\n a"
?"\014 a\n a"

-- Missing character with "\na"
?"\014 a\na"

Possible bug: \na shouldn't be treated as an escape code for custom fonts (just \n).

P#116974 2022-09-06 16:40


[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-18 16:30:28 | 0.004s | Q:7