VOGONS


First post, by nxgtrturbo

User metadata
Rank Newbie
Rank
Newbie

Hello everybody, hope you can help me in this one, I am working on a project with old IDE TurboC but I need to input special ascii characters like ALT+219 to get a █ for example.

I have not found yet a way to input this characters, it just don’t work.
(To programmers, putchar(ascii value) is not an option)

Thanks in advance.

Environment:
Kubuntu 9.10
Laptop with English keyboard and layout.

Reply 1 of 6, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

alt-219 should work in dosbox. be sure to use the numeric keyboard when inputting the numbers

Water flows down the stream
How to ask questions the smart way!

Reply 2 of 6, by nxgtrturbo

User metadata
Rank Newbie
Rank
Newbie

Hi, thanks for reply, but… there’s only one way to input number in most laptops, mine is the case, since it does not have a separated numeric pad.

Reply 3 of 6, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

The laptops, I used did have a Fn key combination to use some of the right keys as numpad. Might not work on linux AND is probably annoying to work with 🙁

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 4 of 6, by taiken7

User metadata
Rank Member
Rank
Member

You could also access the characters using
chr(index); Returns a char/string(1)
eg,

printf( chr(219)+chr(219)+"  Hello "+chr(219)+chr(219));

etc

Reply 5 of 6, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author
\xXX

where XX is the heximal presentation should work as well.

Water flows down the stream
How to ask questions the smart way!

Reply 6 of 6, by nxgtrturbo

User metadata
Rank Newbie
Rank
Newbie

Thanks everyone for the help, now I am able to continue the project without a VirtualMachine.