ncurses: no wcwidth() #42

Open
opened 2025-11-22 14:19:03 +01:00 by xdelatour · 2 comments
Owner
No description provided.
Author
Owner

Dans tty/tty_updacte.c and tinfo/lib_acs.c, add:

int wcwidth(wchar_t c) {
    if (c < 128) return 1;   // ASCII = largeur 1
    return 1;                // fallback
}
Dans tty/tty_updacte.c and tinfo/lib_acs.c, add: ``` int wcwidth(wchar_t c) { if (c < 128) return 1; // ASCII = largeur 1 return 1; // fallback } ```
Author
Owner

In curses.priv.h, replace: (doesnt work)

  • #define TerminalType(tp) (tp)->type2
  • #define TerminalType(tp) ((tp)->type2)
~In curses.priv.h, replace:~ (doesnt work) - #define TerminalType(tp) (tp)->type2 - #define TerminalType(tp) ((tp)->type2)
Sign in to join this conversation.
No description provided.