• Ncurses and extended ASCII.

    From Joseph Larsen@1:340/800 to All on Sat Jul 13 22:55:45 2019
    Hi,

    After some time in the hospital, i've started work on igTerm again.
    I'm having problems with it (igTerm) not displaying extended ASCII characters as it should, in ncurses. Rather than the actual character, it'll display ^B for example. I'm not sure how to go about solving this. This is in the C programming language. I've made some progress... however, this problem
    remains. Any and all help is appreciated.

    Thanks.
    Josep

    --- DayDream BBS/UNIX (Linux) 2.15a
    * Origin: catch22.zapto.org:26 >>> >> > (1:340/800)
  • From Joseph Larsen@1:340/800 to Joseph Larsen on Sat Jul 13 23:05:49 2019
    Hi,

    After some time in the hospital, i've started work on igTerm again.
    I'm having problems with it (igTerm) not displaying extended ASCII char
    as it should, in ncurses. Rather than the actual character, it'll displ
    for example. I'm not sure how to go about solving this. This is in the programming language. I've made some progress... however, this problem remains. Any and all help is appreciated.

    Thanks.
    Josep

    --- DayDream BBS/UNIX (Linux) 2.15a
    * Origin: catch22.zapto.org:26 >>> >> > (1:340/800)




    Bleh. What I meant to say, was that, it doesn't display SOME extended ASCII characters as it should. Sorry for the mixup.


    --- DayDream BBS/UNIX (Linux) 2.15a
    * Origin: catch22.zapto.org:26 >>> >> > (1:340/800)
  • From Kevin Lamonte@1:103/705 to Joseph Larsen on Thu Jul 18 14:48:00 2019
    Joseph Larsen wrote to All <=-

    Hi,

    After some time in the hospital, i've started work on igTerm again.
    I'm having problems with it (igTerm) not displaying extended ASCII characters as it should, in ncurses. Rather than the actual character, it'll display ^B for example. I'm not sure how to go about solving
    this. This is in the C programming language. I've made some progress... 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)
  • From Charles Stephenson@1:226/17 to Joseph Larsen on Tue Jul 16 19:15:01 2019
    Re: Ncurses and extended ASCII.
    By: Joseph Larsen to Joseph Larsen on Sat Jul 13 2019 11:05 pm

    I'd suggest asking maybe in the Synchronet and/or Mystic Echoes. The authors of Netrunner (Mystic Echo) and Synchterm (Synchronet) they frequent those echoes. Actually, Netrunner, you might have better luck on FSXnet...

    Hope that helps
    Regards,
    KrUpTiOn
    --- SBBSecho 3.07-Linux
    * Origin: The New Frontier ][ BBS(frontierbbs.net) - [Ohio] (1:226/17)
  • From Andrew Alt@1:261/38 to Joseph Larsen on Sun Aug 4 19:10:48 2019
    After some time in the hospital, i've started work on igTerm again.
    I'm having problems with it (igTerm) not displaying extended ASCII characters as it should, in ncurses. Rather than the actual character, it'll display ^B for example. I'm not sure how to go about solving
    this. This is in the C programming language. I've made some progress... however, this problem remains. Any and all help is appreciated.

    Hi Joseph. Have you tried linking against libcursesw (note the w at the end)?

    --- BBBS/Li6 v4.10 Toy-4
    * Origin: Prism bbs (1:261/38)