[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

changing default handling of line graphics mode

From: Mike Frysinger
Subject: changing default handling of line graphics mode
Date: Thu, 18 Jan 2018 22:56:29 -0500

currently ncurses treats terminals that don't support line drawing
modes as the degenerate case.  but with the world moving to UTF-8
everywhere as the normal, can't we can flip this logic on its head?
specifically, if we detect that the current encoding supports UTF-8,
we simply use standard Unicode codepoints.

terminals like mosh only run in UTF-8, and some are starting to
support DOCS to transition to a UTF-8-only mode on the fly:

--- a/ncurses/tinfo/lib_setup.c
+++ b/ncurses/tinfo/lib_setup.c
@@ -611,8 +611,10 @@ _nc_locale_breaks_acs(TERMINAL *termp)
                CONTROL_O(set_attributes)) {
                result = 1;
-       }
-    }
+       } else if (_nc_unicode_locale())
+           result = 1;
+    } else if (_nc_unicode_locale())
+       result = 1;

Attachment: signature.asc
Description: Digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]