diff options
author | John Ankarstrom <john@ankarstrom.se> | 2021-06-30 17:57:05 +0200 |
---|---|---|
committer | John Ankarstrom <john@ankarstrom.se> | 2021-06-30 17:57:05 +0200 |
commit | 52459d675081abc13a502d08d35768338d787867 (patch) | |
tree | 0354c138c7073d851e0f658ada31f2c0f3766d6c | |
parent | e6a259ee963d9ccf993c957c0687ea8231f14bf4 (diff) | |
download | xutil-52459d675081abc13a502d08d35768338d787867.tar.gz |
utf8, iso8859-1: Set xterm encoding
-rwxr-xr-x | iso8859-1 | 6 | ||||
-rwxr-xr-x | utf8 | 6 |
2 files changed, 10 insertions, 2 deletions
@@ -1,3 +1,7 @@ #!/bin/sh export LC_ALL=en_US.ISO8859-1 -exec "$@" +case "$XTERM_SHELL" in +$0) echo -n '%@'; exec "$@" ;; +'') exec "$@" ;; +*) echo -n '%@'; "$@"; echo -n '%G' ;; +esac @@ -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 |