ASCII characters

new topic     » topic index » view thread      » older message » newer message

If I want ASCII character #185, what is the easiest way to print that to the
screen? I should mention I am working in DOS 32 in an 80x25 graphics mode.

I tried using put_screen_char, but I keep getting the error:

"Slice ends past end of sequence (142 > 2)"

Not sure what I was doing wrong or if I am not allowed to use that func in
80x25 text mode. Some help, please?

Also when using that func, what is the formula for determining the attribute
number for a character? For instance, the example from the documentation:

put_screen_char(1, 1, {'A', 152, 'Z', 131})

How do you arrive at 152 and 131 in the above? It said something about being
platform dependent? What are the correct attributes for DOS, for instance?

Thanks a bunch,

Scott

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu