Log In  

was messing around with having █ and ▒ being written to a file with printh()
But then it wasn't working when I tried to read them...
Then I looked at the chr list and █▒ (48,50) arn't on there and instead 0,2 are 48,50...?
How would I use chr() to give me █/▒? is it possible?

P#80221 2020-08-02 01:45

The former one is possible to obtain using chr(), and the number is 18/19 depending on what you need. ▒ is also possible, but won't show up in a file. The number is 129. If you want here is a list: https://www.lexaloffle.com/bbs/files/62268/testing.txt. It isn't pretty, but each line number corresponds with the chr() number.

P#134284 2023-09-13 18:37 ( Edited 2023-09-13 18:49)

Thanks for the advice with chr and ord, I don't entirely remember but I think my problem was writing unicode values to file and then trying to read them back was their pico8 values which wouldn't work of course...
I think... it's been a while ;\
(I'm not sure if my computer is reading the file correctly or if I pasted it right but I tried reading out your file with

cls()
function _update()
 if stat(120) then
  serial(0x800,0,1)
  ?chr(@0)
 end
end

and it still returned weird values like "ヌ❎え" so not sure...?)

P#134289 2023-09-13 21:42 ( Edited 2023-09-13 21:55)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 12:06:35 | 0.005s | Q:9