Re: A dos character problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Ok, but it should not be displayed exactly as the normal vertical bar
|? It has to have it's own uniqe representation?

it's a line drawing character; the ASCII | is sometimes used as
approximation but does not extend far enough. Many DOS applications
(and also Linux ones such as mc) use it to draw boxes.

Is there other things to try?

Yes, run
dosemu -D+v
and send the contents of ~/.dosemu/boot.log
it contains the DOS to Linux character set translation table.

There could also be a problem with BRLTTY and the box drawing
characters... we may be able to work around that but first please
check the output of the program below (save as line.c, compile using
gcc -lncurses line.c -o line, run as ./line)

Bart

#include <stdio.h>
#include <locale.h>
#include <langinfo.h>
#include <term.h>

int main(void)
{
 int i;

 setlocale(LC_ALL, "");
 if (strcmp(nl_langinfo(CODESET), "UTF-8") == 0) {
   printf("Terminal supports UTF-8\n");
   printf("Vertical bar: \xe2\x94\x82\n");
   return 0;
 }
 setupterm((char *)0, 1, (int *)0);
 if (enter_pc_charset_mode) {
   printf("Terminal supports PC charset mode\n");
   printf("Vertical bar: ");
   printf("%s", enter_pc_charset_mode);
   putchar(0xb3);
   if (exit_pc_charset_mode)
     printf("%s", exit_pc_charset_mode);
   printf("\n");
 }
 if (acs_chars) {
   printf("Terminal supports alternate charset mode\n");
   printf("Vertical bar: ");
   if (enter_alt_charset_mode)
     printf("%s", enter_alt_charset_mode);
   for (i = 0; acs_chars[i]; i += 2) {
     if (acs_chars[i] == 'x') {
       putchar(acs_chars[i+1]);
       break;
     }
   }
   if (exit_alt_charset_mode)
     printf("%s", exit_alt_charset_mode);
   printf("\n");
 }
 return 0;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Console]     [Linux Audio]     [Linux for Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite Camping]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Samba]     [Linux Media]     [Fedora Users]

  Powered by Linux