X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=bin%2Fl;h=73a04584a95cbb51493e8ba1048c4eb29c2a99a1;hb=HEAD;hp=c8baf8f0a74b0464d2cf5c79898dd0925a839f78;hpb=f46bd4d41cc7f243bc8a321effee5200aa69e709;p=dotfiles.git diff --git a/bin/l b/bin/l index c8baf8f..193d6b4 100755 --- a/bin/l +++ b/bin/l @@ -1,14 +1,14 @@ #! /bin/sh case "$TERM" in - *term*|*rxvt*|vt100|screen*) - TERM=xterm - export TERM + *rxvt*|screen*|*term*|vt100) - xtitle "links@${HOSTNAME}" - exec links2 "$@" - ;; + xtitle "links@${HOSTNAME}" + tput smcup + TERM=xterm links2 "$@" + exec tput rmcup + ;; - *)echo "Wrong TERM" >&2 - ;; + *)echo "Wrong TERM" >&2 + ;; esac