Strange prompt behavior in tcsh
epilogue
epilogue at allstream.net
Fri Aug 13 05:23:16 PDT 2004
On Fri, 13 Aug 2004 14:50:28 +0700
Roger Merritt <mcrogerm at stjohn.ac.th> wrote:
> I recently installed the port shells/tcshrc, and ever since I've been
> getting some funny output on the console whenever I change directories:
>
> kepler:/root# echo $SHELL
> /bin/tcsh
> kepler:/root# cd /etc
> \033]2;KEPLER - /etc\007kepler:/etc#
> kepler:/etc# cd
> \033]2;KEPLER - /root\007kepler:/root#
> kepler:/root#
>
> The prompt setting in .tcshrc.set is "%B%m%b:%S%/%s%# ".
given that %B starts boldfacing and %b ends it (ie. where your problem
seems to start and end), my guess would be that your console setting does
not support boldfacing.
> Obviously it's no huge thing, but why am I seeing the \033]2...\007
> string after 'cd'ing? Before I installed the port, my .tcshrc set the
> prompt to "%n@%m:%~%# " and I didn't get the literal string. Now it only
> shows on the first prompt after I 'cd', and after that the prompt seems
> to work right. Obviously the port sets something else, but before I start
> digging, has anyone else solved this?
actually, i think that the preferred order would be to dig first and ask
questions later. ;)
> --
> Roger
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"
>
More information about the freebsd-questions
mailing list