aboutsummaryrefslogtreecommitdiff
path: root/utf8
diff options
context:
space:
mode:
authorJohn Ankarstrom <john@ankarstrom.se>2021-06-30 17:57:05 +0200
committerJohn Ankarstrom <john@ankarstrom.se>2021-06-30 17:57:05 +0200
commit52459d675081abc13a502d08d35768338d787867 (patch)
tree0354c138c7073d851e0f658ada31f2c0f3766d6c /utf8
parente6a259ee963d9ccf993c957c0687ea8231f14bf4 (diff)
downloadxutil-52459d675081abc13a502d08d35768338d787867.tar.gz
utf8, iso8859-1: Set xterm encoding
Diffstat (limited to 'utf8')
-rwxr-xr-xutf86
1 files changed, 5 insertions, 1 deletions
diff --git a/utf8 b/utf8
index 21598b3..58460bd 100755
--- a/utf8
+++ b/utf8
@@ -1,3 +1,7 @@
#!/bin/sh
export LC_ALL=en_US.UTF-8
-exec "$@"
+case "$XTERM_SHELL" in
+$0) echo -n '%G'; exec "$@" ;;
+'') exec "$@" ;;
+*) echo -n '%G'; "$@"; echo -n '%@' ;;
+esac