From owner-cvs-all Wed Sep 19 8:43:15 2001 Delivered-To: cvs-all@freebsd.org Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by hub.freebsd.org (Postfix) with ESMTP id EC91437B40C; Wed, 19 Sep 2001 08:43:05 -0700 (PDT) Received: from aldan.algebra.com (localhost [127.0.0.1]) by aldan.algebra.com (8.11.5/8.11.5) with ESMTP id f8JFelE94039; Wed, 19 Sep 2001 11:40:54 -0400 (EDT) (envelope-from mi@aldan.algebra.com) Message-Id: <200109191540.f8JFelE94039@aldan.algebra.com> Date: Wed, 19 Sep 2001 11:40:44 -0400 (EDT) From: Mikhail Teterin Subject: Re: cvs commit: ports/x11/xtattr Makefile ports/x11/xtattr/files Makefile.bsd To: brian@freebsd-services.com Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, sheldonh@starjuice.net In-Reply-To: <200109191530.f8JFUJR22661@hak.lan.Awfulhak.org> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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