aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2018-09-04 03:08:10 -0400
committerB. Watson <yalhcru@gmail.com>2018-09-04 03:08:10 -0400
commit0b10890863409f39c9b8b8d9f0f721ffbb4b2312 (patch)
tree42ad59bfd7f74b625d35e392c4cd463af40a7f0a
parentb5d2db7e452c6463ff7629e9d0fb8525c881bce4 (diff)
downloadmisc-scripts-0b10890863409f39c9b8b8d9f0f721ffbb4b2312.tar.gz
fixterm: add the other G* character set codes
-rwxr-xr-xfixterm15
1 files changed, 13 insertions, 2 deletions
diff --git a/fixterm b/fixterm
index e9fd832..cf77868 100755
--- a/fixterm
+++ b/fixterm
@@ -24,5 +24,16 @@
# Reference:
# http://ascii-table.com/ansi-escape-sequences-vt-100.php
-print chr(27).")B";
-print chr(27)."(B";
+# urxvt and IIRC xterm actually support 4 character sets, G0 thru
+# G3, any of which can be switched between various types. So fix
+# all 4 here.
+
+# This script seems to work OK for urxvt but not for xterm.
+# For either, it fixes your shell... but on xterm, links is
+# sometimes still messed up (and sometimes it isn't, I dunno
+# what's different).
+
+print chr(27).')B';
+print chr(27).'(B';
+print chr(27).'*B';
+print chr(27).'+B';