VOGONS

Common searches


First post, by lucky7456969

User metadata
Rank Oldbie
Rank
Oldbie

I would like to know what the working principles of blinking and underlined characters in original hercules hardware are? They just superimpose underline pixels on the original characters or they just use different character sets?

Do you think it is possible to add these features to dosbox?
Thanks
Jack

Reply 2 of 7, by lucky7456969

User metadata
Rank Oldbie
Rank
Oldbie

Hello Davros,
You mean I have to use a booted image to achieve that?
Actually, at first blush, I don't want to use a booted image.

I am especially interested in how the hardware renders the underlined and blinking characters.
Thanks
Jack

Reply 3 of 7, by lucky7456969

User metadata
Rank Oldbie
Rank
Oldbie

It seems like we can only imitate it
I can see that ykhwong build has implemented blinking characters, not underlined characters, yet?

Last edited by lucky7456969 on 2012-12-07, 09:31. Edited 1 time in total.

Reply 5 of 7, by VileR

User metadata
Rank l33t
Rank
l33t
lucky7456969 wrote:
I would like to know what the working principles of blinking and underlined characters in original hercules hardware are? They j […]
Show full quote

I would like to know what the working principles of blinking and underlined characters in original hercules hardware are? They just superimpose underline pixels on the original characters or they just use different character sets?

Do you think it is possible to add these features to dosbox?
Thanks
Jack

Pretty sure the original Hercules had just one 9x14 character set in ROM, so for underlined characters it superimposed a row of pixels, just like an IBM MDA.

DOSBox 0.74 supports both blinking and underlined text just fine... where exactly is the problem?

Attachments

  • gwbasic_002.png
    Filename
    gwbasic_002.png
    File size
    5.35 KiB
    Views
    1833 views
    File license
    Fair use/fair dealing exception

[ WEB ] - [ BLOG ] - [ TUBE ] - [ CODE ]

Reply 6 of 7, by lucky7456969

User metadata
Rank Oldbie
Rank
Oldbie

dev_con.h

		case 'm':               /* SGR */
for(i=0;i<=ansi.numberofarg;i++){
ansi.enabled=true;
switch(ansi.data[i]){
case 0: /* normal */
ansi.attr=0x07;//Real ansi does this as well. (should do current defaults)
ansi.enabled=false;
break;
case 1: /* bold mode on*/
ansi.attr|=0x08;
break;
case 4: /* underline */
LOG(LOG_IOCTL,LOG_NORMAL)("ANSI:no support for underline yet");
break;

I just saw this line yesterday. So how can I test the underlining work? I mean what program can test the characters for viewing?
Thanks
Jack

Reply 7 of 7, by VileR

User metadata
Rank l33t
Rank
l33t
lucky7456969 wrote:

So how can I test the underlining work? I mean what program can test the characters for viewing?

Maybe an old DOS word processor?

in GWbasic / QuickBasic you can use the "COLOR a,b" statement to get normal, intense, reverse, underline, blinking, and various combinations in monochrome text - see http://support.microsoft.com/kb/35148 (love the fact that MS still has this stuff up on the web).

This BASIC program will display a chart of all possible combinations, as in the screenshot above:

10 CLS : DEF SEG=&HB000 : LOCATE 18,1
20 FOR ROW=&H0 TO &HF
30 FOR COL=&H0 TO &HF
40 FOR I=0 TO 3 : POKE ROW*160+COL*8+I*2+1, 16*ROW+COL : NEXT I
50 POKE ROW*160+COL*8+2, ASC(HEX$(ROW))
60 POKE ROW*160+COL*8+4, ASC(HEX$(COL))
70 NEXT COL
80 NEXT ROW

Hercules was based on MDA, and a similar chart for MDA is here... there are a few differences from what DOSBox shows (maybe DOSBox is correct and Hercules really differed from MDA here, I don't know).

[ WEB ] - [ BLOG ] - [ TUBE ] - [ CODE ]