aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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';