Browse Source

when using this file, label and ilabel set the term 'title' and icon labels.

they do this by sending to stdout. commands like: 'ftp -o - ftp://blah/foo>foo'
do not like having data added to the output stream.
since we only define these two functions in an environment where /dev/tty
exists, send output to /dev/tty to make sure it does not corrupt the output
stream of commands.
OPENBSD_3_3
todd 22 years ago
parent
commit
03c100e65d
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/etc/ksh.kshrc

+ 3
- 3
src/etc/ksh.kshrc View File

@ -1,5 +1,5 @@
:
# $OpenBSD: ksh.kshrc,v 1.9 2002/05/30 06:44:07 deraadt Exp $
# $OpenBSD: ksh.kshrc,v 1.10 2002/10/16 15:39:10 todd Exp $
#
# NAME:
# ksh.kshrc - global initialization for ksh
@ -92,8 +92,8 @@ case "$-" in
esac
# do we want window decorations?
if [ "$ILS" ]; then
ilabel () { print -n "${ILS}$*${ILE}"; }
label () { print -n "${WLS}$*${WLE}"; }
ilabel () { print -n "${ILS}$*${ILE}">/dev/tty; }
label () { print -n "${WLS}$*${WLE}">/dev/tty; }
alias stripe='label "$USER@$HOST ($tty) - $PWD"'
alias istripe='ilabel "$USER@$HOST ($tty)"'


Loading…
Cancel
Save