Date: Wed, 19 Sep 2001 11:40:44 -0400 (EDT) From: Mikhail Teterin <mi@aldan.algebra.com> To: brian@freebsd-services.com Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, sheldonh@starjuice.net Subject: Re: cvs commit: ports/x11/xtattr Makefile ports/x11/xtattr/files Makefile.bsd Message-ID: <200109191540.f8JFelE94039@aldan.algebra.com> In-Reply-To: <200109191530.f8JFUJR22661@hak.lan.Awfulhak.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 19 Sep, Brian Somers wrote:
> if [ ."$TERM" = .xterm ]
> then
> case "$SHELL" in
> *bash) PS1="\[^[]2;\u@\H:\w^G\]\h:\w \\$ ";;
> *zsh) PS1="%{^[]2;%n@%M:%3.^G%}%m:%3. %(#.#.$) ";;
> esac
> fi
So?
On 19 Sep, Sheldon Hearn wrote:
> You've _got_ to be joking! This qualifies as a port?! Hell, all you
> need is shell script:
>
> #!/bin/sh
[...]
Gentlemen! Your objections/wondering are misplaced. This program was
released in 1991 (or earlier). The FreeBSD port was added in 1997.
Personally, I find it better than the above quoted hacks. It is not just
the title, but plenty of other parameters that can be changed with this
little utility:
Window Attributes
-name 1 Change title and icon name
-icon 1 Change icon name
-title 1 Change window title
-display 0 echo DISPLAY as keyboard input
-displayfile 1 Write DISPLAY name to file
-hostname 0 echo hostname as keyboard input
-hostnamefile 1 Write hostname to file
-logfile 1 Change log file name
-scinv 0 Use inverse video
-noscinv 0 Don't use inverse video
-scalt 0 Use alternate screen
-noscalt 0 Use normal screen
Scrolling and Scroll Bars
-jump 0 Jump scroll
-ooze 0 Slow scroll
Character Attributes
-normal 0 Normal characters
-blink 0 Blink (bold) characters
-ul 0 Underlined characters
-bold 0 Bold characters
-inv 0 Inverse video characters
Miscellaneous
-verb 1 Copy arg to window
-font 1 Change normal font
-fontb 1 Change bold font
-fonts 2 Change normal & bold fonts
Yes, this can be written as a script. No, I think _an already written_
utility is better. Yours,
--
|\__-----__/|
_____/ ::::: :::\_____
'__--( ::::::::..::)--__` -mi
If you have a / _- \/ :::::::\/ -_
serious knowledge / / :. .::::\ \
about computers -- | ::::::::::::| Ok, let's say you broke
keep it in a secret! _|/ ::::____::\|_ the wall with your head
"Rules of dating", / /:::::/:_::\::\:.\ What are you going to
'Playboy', ? 1994 | :| ..:(_/ \::|::|::| do in the next cell?
| :|:::::. ::|: |::|.:| Stanislaw J. Lec
\ |:: :::_/::/: :|:/
((___\____\____/___/___))
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109191540.f8JFelE94039>
