From 733e641beb49be509779caa4de52554f6d57f5f9 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Thu, 24 Nov 1994 15:09:30 +0000 Subject: [PATCH] Forget to exit alt charset mode, critical for non-cons25r terminals wits as/ae --- lib/libncurses/lib_vidattr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libncurses/lib_vidattr.c b/lib/libncurses/lib_vidattr.c index a3bd4c7ed526..e3efebb636f2 100644 --- a/lib/libncurses/lib_vidattr.c +++ b/lib/libncurses/lib_vidattr.c @@ -64,6 +64,8 @@ chtype turn_off, turn_on; T(("previous attribute was %s", _traceattr(previous_attr))); if (newmode == A_NORMAL && exit_attribute_mode) { + if((previous_attr & A_ALTCHARSET) && exit_alt_charset_mode) + tputs(exit_alt_charset_mode, 1, outc); tputs(exit_attribute_mode, 1, outc); current_pair = -1; goto set_color;