Message Area
Casually read the BBS message area using an easy to use interface. Messages are categorized exactly like they are on the BBS. You may post new messages or reply to existing messages!

You are not logged in. Login here for full access privileges.

Previous Message | Next Message | Back to Linux BBSing  <--  <--- Return to Home Page
   Networked Database  Linux BBSing   [172 / 189] RSS
 From   To   Subject   Date/Time 
Message   Kevin Lamonte    Joseph Larsen   Ncurses and extended ASCI   July 18, 2019
 2:48 PM *  

-=> 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)
  Show ANSI Codes | Hide BBCodes | Show Color Codes | Hide Encoding | Hide HTML Tags | Show Routing
Previous Message | Next Message | Back to Linux BBSing  <--  <--- Return to Home Page

VADV-PHP
Execution Time: 0.0763 seconds

If you experience any problems with this website or need help, contact the webmaster.
VADV-PHP Copyright © 2002-2024 Steve Winn, Aspect Technologies. All Rights Reserved.
Virtual Advanced Copyright © 1995-1997 Roland De Graaf.
v2.0.140505

Warning: Unknown: open(c:\Sessions\sess_no4fk57dqaogd0o31016v21uc4, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (c:\Sessions) in Unknown on line 0 PHP Warning: session_start(): open(c:\Sessions\sess_no4fk57dqaogd0o31016v21uc4, O_RDWR) failed: No such file or directory (2) in D:\wc5\http\public\VADV\include\common.inc.php on line 45 PHP Warning: Unknown: open(c:\Sessions\sess_no4fk57dqaogd0o31016v21uc4, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (c:\Sessions) in Unknown on line 0