zsh-users
 help / color / mirror / code / Atom feed
From: Juhapekka Tolvanen <juhtolv@st.jyu.fi>
To: zsh-user mailing list <zsh-users@sunsite.auc.dk>
Subject: Re: Whatta fsck is this?
Date: Mon, 23 Oct 2000 16:45:10 +0300	[thread overview]
Message-ID: <20001023164510.A2947@verso.st.jyu.fi> (raw)
In-Reply-To: <20001023082922.A25651@verso.st.jyu.fi>; from juhtolv@st.jyu.fi on Mon, Oct 23, 2000 at 08:29:46AM +0300

On Mon, 23 Oct 2000, +08:29:46 EEST (UTC +0300),
Juhapekka Tolvanen <juhtolv@st.jyu.fi> pressed these keys:

> 
> http://www.zsh.org/mla/users/2000/msg00570.html
> 
> >Juhapekka Tolvanen wrote:
> 
> writetitle()
> {
>   export TITLETEXT="${ROOTTEXT}${ROOTTITLEADD}%n@%m:%d | ${COLUMNS}x${LINES} | %l"
> }
> 
> writeexectitle()
> {
>   export EXECTEXT1="${ROOTTEXT}${ROOTTITLEADD}%n@%m:%d : "
>   export EXECTEXT2="$*"
> }
> 
> # TERMINAL TYPES
> 
> case "$TERM" in
> 
> *xterm*|rxvt|(dt|k|E)term)
> precmd()
>   {
>     writetitle
>     print -Pn "\e]0;${TITLETEXT}\a"
>   }
> 
>   preexec()
>   {
>     writeexectitle $*
>     print -Pn '\e]0;'
>     print -Pn "${EXECTEXT1}"
>     print -rn "${EXECTEXT2}"
>     print -Pn '\a'
>   }
> ;;
> 
> And so on...

Argh! It was b0rken! That does not fscking work, when I am rewt.

# {{{ Am I root?

if (( EUID == 0 ))
then
#  export ROOTTEXT='=*[ROOT ZSH]*='
  export ROOTTEXT='-=*[ROOT ZSH]*=-'
#  ROOTTEXT=''
  export ROOTPROMPTADD=' '
  export ROOTTITLEADD=' | '

# ADD THIS TO PROMPT:
# %S$ROOTTEXT%s$ROOTPROMPTADD
# AND THIS TO TITLE:
# $ROOTTEXT$ROOTTITLEADD

#PATH="/usr/local/sbin:/usr/sbin:/sbin:$PATH"
#export PATH

else
  ROOTTEXT=''
  ROOTPROMPTADD=''
  ROOTTITLEADD=''
fi

(MAJOR CLIP)

writeexectitle()
{
#  export EXECTEXT0="${ROOTTEXT}${ROOTTITLEADD}"
#  export EXECTEXT1="%n@%m:%d : "
  export EXECTEXT1="${ROOTTEXT}${ROOTTITLEADD}%n@%m:%d : "
  export EXECTEXT2="$*"
}

# TERMINAL TYPES

case "$TERM" in

*xterm*|rxvt|(dt|k|E)term)
precmd()
  {
    writetitle
    print -Pn "\e]0;${TITLETEXT}\a"
  }

  preexec()
  {
    writeexectitle $*
#    print -Pn '\e]0;'
    print -Pn '\e]0;'"${EXECTEXT1}"
    print -rn "${EXECTEXT2}"
    print -Pn '\a'
  }
;;

(MAJOR CLIP)

In original version that hyphen in the beginning of "-=*[ROOT ZSH]*=-"
makes print-command think that "-=" is yet another option for it.

> I'll upload that config here ASAP:
> 
> http://www.jyu.fi/~juhtolv/configs/shellrc/

Please, wait few hours and then re-download!

BTW, If you have access to Unix b0x0rs with these more or less delicious
flavours of Unix and these terminal-emulators and terminal types, please
test my configurations, both as luser and rewt:

OS, Terminal emulator and $TERM :

IRIX:
- wsh
- xwsh
- winterm
        - iris-ansi

AIX
- aixterm
        - aixterm

HP-UX
- HPterm
        - hpterm

Especially try these:

- What you see in titlebar of terminal window and title of icon?
- How aforementioned things change, if you give for exaple this command?:
  ls ; sleep 20

Additional information is here:

http://www.giccs.georgetown.edu/~ric/howto/Xterm-Title/

> P.S: I don't subscribe to these lists, but I am smart enough to read
> Mailing List Archive and you can Cc: to me, i you want.


-- 
Juhapekka "naula" Tolvanen * * * U of Jyväskylä * * * juhtolv@st.jyu.fi
http://www.cc.jyu.fi/~juhtolv/index.html * * "STRAIGHT BUT NOT NARROW!"
-----------------------------------------------------------------------
"Rakasta mua, tai vihaa mua. Hei, kuinka vaan. Kai sillä sitten voit
jotain uutta saavuttaa. Kai mä ansaitsen uuden tilaisuuden. Kai mä
ansaitsen. Hei, mä tiedän sen. Olen liikaa. Minä olen liikaa." Apulanta


  reply	other threads:[~2000-10-23 13:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-23  5:29 Juhapekka Tolvanen
2000-10-23 13:45 ` Juhapekka Tolvanen [this message]
2000-10-23 14:18   ` Philip Kizer
  -- strict thread matches above, loose matches on Subject: below --
2000-08-25  7:54 Sven Wischnowsky
     [not found] <200008250743.JAA11058@beta.informatik.hu-berlin.de>
2000-08-25  7:51 ` Juhapekka Tolvanen
2000-08-25  6:51 Juhapekka Tolvanen
2000-08-25  6:47 Juhapekka Tolvanen
2000-08-08 12:22 Sven Wischnowsky
2000-08-08 15:04 ` Bart Schaefer
2000-08-08  5:12 Juhapekka Tolvanen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20001023164510.A2947@verso.st.jyu.fi \
    --to=juhtolv@st.jyu.fi \
    --cc=zsh-users@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).