screen-users
[Top][All Lists]
Advanced

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

Re: question regarding the detection of ssh connections with screen


From: Thomas Köhler
Subject: Re: question regarding the detection of ssh connections with screen
Date: Sat, 5 Nov 2005 21:54:34 +0100
User-agent: Mutt/1.5.4i

Hello Martin,

Martin Hauser wrote:
[...]
> > Or even better:
> > Use 
> >    ssh address@hidden -all -other -options
> > and
> > function ssh() {
> >    echo -n -e "\033k$1\033\\"
> >    /usr/bin/ssh "$@"

Of course, changing that line to
   command ssh "$@"
also works when ssh is elsewhere in $PATH...

> >    echo -n -e "\033kzsh\033\\"
> > }
> 
> that is neat. Couldn't we use a similiar escape sequence to put it into
> a certain point of the hardstatus line? Just of curiousity, this thing
> does the job.

I am not aware of another escape sequence to change the
hardstatus line directly. Maybe it could be possible to emulate
it via backtick somehow, but that would not be very elegant...

Ciao,
Thomas

-- 
 Thomas Köhler       Email:       address@hidden
     <><             WWW:              http://gott-gehabt.de
                     IRC:                           tkoehler
                     PGP public key available from Homepage!

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]