How to print pseudographic symbols?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
kzinti
Member
Member
Posts: 898
Joined: Mon Feb 02, 2015 7:11 pm

Re: How to print pseudographic symbols?

Post by kzinti »

Roman wrote:Thanks! I didn't know about the extended set. I always thought ASCII only takes 7 bits.
ASCII is 7 bits. "Extended ASCII" isn't ASCII but is just a misnomer for the full 8 bits character set available on PC.
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re: How to print pseudographic symbols?

Post by Candy »

If you really want to you can disable the blink ability and use it to switch to a 9-bit "ASCII" mode, where 82% of your characters aren't ASCII. ASCII printable is 32 to 126 inclusive - anything outside that range doesn't technically have a graphical representation in ASCII, but you can of course make a font that displays something for it.

Which is the root of this entire thread; you've got some rendering tool that you don't understand and you're sending it arbitrary font character IDs in the hope to find something that you like.

I suggest finding out what the rendering tool actually uses as a font and then to use that knowledge.
User avatar
osdever
Member
Member
Posts: 492
Joined: Fri Apr 03, 2015 9:41 am
Contact:

Re: How to print pseudographic symbols?

Post by osdever »

I've been so stupid... I'm tried to display characters not in signed char range. Now I'm know it.
Developing U365.
Source:
only testing: http://gitlab.com/bps-projs/U365/tree/testing

OSDev newbies can copy any code from my repositories, just leave a notice that this code was written by U365 development team, not by you.
Ready4Dis
Member
Member
Posts: 571
Joined: Sat Nov 18, 2006 9:11 am

Re: How to print pseudographic symbols?

Post by Ready4Dis »

I'm not exactly sure where you got those codes from.
I've always used these extended ascii codes for my window/borders.

179 = │
196 = ─
192 = └
217 = ┘
191 = ┐
218 = ┌

197 = ┼

193 = ┴
194 = ┬

195 = ├

180 = ┤
User avatar
osdever
Member
Member
Posts: 492
Joined: Fri Apr 03, 2015 9:41 am
Contact:

Re: How to print pseudographic symbols?

Post by osdever »

Oh god, I wanna punch myself in the face now.
Developing U365.
Source:
only testing: http://gitlab.com/bps-projs/U365/tree/testing

OSDev newbies can copy any code from my repositories, just leave a notice that this code was written by U365 development team, not by you.
Post Reply