[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: some tcsh questions



>>>>> "Jonas" == Jonas Moberg <jonas@chello.se> writes:

    Jonas> I've (after many years of use..) been looking up what my
    Jonas> shell actually can do for me to make my life easier. I've
    Jonas> been going thru the features of tcsh (first shell I ever
    Jonas> used, but I'm determined to go thru bash and zsh or ksh
    Jonas> (when time permits that is..)).

<plug subject=zsh> Do yourself a favor and try zsh first... even
before tcsh (in other words: get rid of that), but certainly before
bash.  Go with the package in potato, or better yet, with 3.1.9* in
woody.  I'd bet you will *not* regret it...  </plug>

    Jonas> This is something I've been looking for a long time, being
    Jonas> able to print the current process in the xterm-title (be it
    Jonas> "top" or "joe" or whatever). Not that this example works of
    Jonas> course ;).. But why? Is it depending on the window-manager?

If you tell us what WM you use... but think about it, the title bar is
decoration, which is done by the WM (if you start without a valid WM,
you get borderless windows... not window title).  So it might well be.

Though I don't know of any WM that doesn't... at least both Window
Maker and Sawfish are confirmed to be able to.  (I ran WMaker and do
full GNOME now (Helix got me ;-))

    Jonas> I've read the xterm-title mini-howto and it simply says
    Jonas> it's "hard" to do it in any other shell than zsh (the
    Jonas> author welcomes any suggestions).

Another reason for choosing zsh ;-)

    Jonas> Just for your info, I can't seem to get these other
    Jonas> xterm-titles using cwdcmd to work either. I'm not so good
    Jonas> that I understand what ^[]2; and ^G does.

Stupid question: you know that those ^ thingies are control codes,
right?  Now I don't know whether tcsh understand ^[ (two ascii chars)
to be ESC automagically or not...  make sure those are one char (in
Emacs or jed, type ctrl-q and then the char (esc or ctrl-g).  vi?  I
don't even have one one this system ;-)

I have this construct in my zsh PROMPT: ]2;%M:%~

Note how ^[ and ^G are not two characters each, but one.  Works
perfectly... even when closing an ssh connection, the host got
restored.

[...]

    Jonas> Of course, if you got any solutions or suggestions for bash
    Jonas> or other shells feel free to share them.. ;)

I'm glad I did. ;-)  HTHS.

    Jonas> While I'm at it, I'll get another tcsh issue of my
    Jonas> chest. Is there any possibility to get TAB to do the the
    Jonas> tcsh list-glob function (lists global patterns) aswell as
    Jonas> the commands-, dir-, var-, env-completion that it does by
    Jonas> default?

Don't know what this means... I only know <plug subject=zsh>zsh's
completion system <cool>r0x</cool></plug>. ;-))

    Jonas> Thanks!

What for? ;-)

Bye, J

-- 
Jürgen A. Erhard      eMail: jae@ilk.de      phone: (GERMANY) 0721 27326
     MARS: http://members.tripod.com/Juergen_Erhard/mars_index.html
           "Outside of a dog, a man's best friend is a book;
           inside of a dog, it's very dark." --  Groucho Marx

Attachment: pgpMSoGwZFwvi.pgp
Description: PGP signature


Reply to: