diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-08-28 12:59:05 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-09-09 18:16:07 +0200 |
commit | 4c6b6814abfc9c022c6ea8d1e23097c2a774fde5 (patch) | |
tree | 26ea9ad6d2777c080c1733b55fc7d30180c335f5 /src/sciteco.h | |
parent | fdc185b8faaae44d67f85d2c5a9b9fa48d3e2859 (diff) | |
download | sciteco-4c6b6814abfc9c022c6ea8d1e23097c2a774fde5.tar.gz |
input and displaying of Unicode characters is now possible (refs #5)
* All non-ASCII characters are inserted as Unicode.
On Curses, this also requires a properly set up locale.
* We still do not need any widechar Curses, as waddch() handles
multibyte characters on ncurses.
We will see whether there is any Curses variant that strictly requires
wadd_wch().
If this will be an exception, we might keep both widechar and non-widechar
support.
* By convention gsize is used exclusively for byte sizes.
Character offsets or lengths use int or long.
Diffstat (limited to 'src/sciteco.h')
-rw-r--r-- | src/sciteco.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sciteco.h b/src/sciteco.h index 55ffd6c..7f420e8 100644 --- a/src/sciteco.h +++ b/src/sciteco.h @@ -69,7 +69,7 @@ teco_is_failure(teco_bool_t x) #endif /** TRUE if C is a control character */ -#define TECO_IS_CTL(C) ((C) < ' ') +#define TECO_IS_CTL(C) ((guchar)(C) < ' ') /** ASCII character to echo control character C */ #define TECO_CTL_ECHO(C) ((C) | 0x40) /** |