home bbs files messages ]

Just a sample of the Echomail archive

Cooperative anarchy at its finest, still active today. Darkrealms is the Zone 1 Hub.

   LINUX_BBS      Linux BBSing      935 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 512 of 935   
   Kevin Lamonte to Joseph Larsen   
   Ncurses and extended ASCI   
   18 Jul 19 14:48:00   
   
   TZUTC: -0700   
   MSGID: 5836.linux_bb@1:103/705 21961a97   
   REPLY: 1:340/800.0 0000014b   
   PID: Synchronet 3.17c-Win32  Jul 16 2019 MSC 1921   
   TID: SBBSecho 3.07-Linux r3.117 Jul 16 2019 GCC 6.3.0   
   -=> Joseph Larsen wrote to All <=-   
      
    JL> Hi,   
      
    JL> After some time in the hospital, i've started work on igTerm again.   
    JL> I'm having problems with it (igTerm) not displaying extended ASCII   
    JL> characters as it should, in ncurses. Rather than the actual character,   
    JL> it'll display ^B for example. I'm not sure how to go about solving   
    JL> this. This is in the C programming language. I've made some progress...   
    JL> however, this problem remains. Any and all help is appreciated.   
      
   If you are trying to get CP437 glyphs on the screen, your best modern   
   solution with ncurses is to use Unicode.  I've got some ncurses   
   pointers over at https://gitlab.com/klamonte/terminal-snippets.  This   
   one might help you:   
      
   Screen: How Do I Output Unicode?   
   --------------------------------   
      
   Use setcchar(), mvwadd_wch(), and wadd_wch().  For lines, use   
   mvwhline_set() and mvwvline_set().  Example code:   
      
   ```   
       cchar_t ncurses_ch;   
       wchar_t wch[2];   
       wch[0] = ch;   
       wch[1] = 0;   
       setcchar(&ncurses_ch, wch, A_NORMAL, 0, NULL);   
       mvwadd_wch(stdscr, y, x, &ncurses_ch);   
   ```   
      
   This example just spits one code point to screen.  It is possible to   
   add more code points for the same cell (e.g. accents), just make wch[]   
   bigger and put more code points in the array.   
      
   ....   
      
   Best of luck.   
      
      
   ... MultiMail, the new multi-platform, multi-format offline reader!   
   --- MultiMail/Linux v0.49   
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)   
   SEEN-BY: 1/123 15/2 103/705 154/10 203/0 218/700 221/0 226/17 227/114   
   SEEN-BY: 229/275 354 426 452 616 981 1014 240/5832 249/206 317 400   
   SEEN-BY: 280/464 5003 292/854 310/31 317/3 322/757 342/200 396/45   
   SEEN-BY: 423/120 633/280 712/848 770/1 2452/250 3828/7   
   PATH: 103/705 280/464 229/426   
      

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca