Sorry David, I didn't realise the
significance of a function named
'fish_title', I thought you were just
showing me an arbitrary function that
output to stdout.
(For posterity, search for 'fish_title'
in the docs,
http://fishshell.com/user_doc/index.html).
Many thanks
On 13/01/2011 10:17, David Frascone wrote:
The way you set the tab is outputting
codes to standard out. But, fish
controls the title, which is why it
works in bash, but not in fish. If
you use the script changes I sent, you
can get your intention w/o writing
directly to standard out.
The -e option to echo enables the
backslashes for the escape codes you
were using. That works identically in
fish.
So, again, this has nothing to do with
standard out, or -e, but has to do
with the fact that fish controls the
terminal.
-Dave
On Thu, Jan 13, 2011 at 1:57 AM,
i...@whywouldwe.com
<mailto:i...@whywouldwe.com>
<i...@whywouldwe.com
<mailto:i...@whywouldwe.com>> wrote:
Hi David
I want to set the title of my
terminal tab, not output to
stdout. I think the problem is
that fish doesn't interpret the -e
option the same way bash does.
Thanks
On 12/01/2011 21:50, David
Frascone wrote:
From
http://fishshell.com/user_doc/index.html
function fish_title
echo "foo"
end
or, if you wanted to make it more
dynamic, you could do something
like this:
function fish_title
echo $my_title
end
Then just set $my_title in your
script:
set my_title Foo
-Dave
On Wed, Jan 12, 2011 at 2:14 AM,
i...@whywouldwe.com
<mailto:i...@whywouldwe.com>
<i...@whywouldwe.com
<mailto:i...@whywouldwe.com>> wrote:
Using bash this puts 'Foo' as
the title
of the current terminal tab
in OS X
echo -n -e "\033]0;Foo\007"
but it doesn't work with fish
('-e
\033]0;Foo\007' gets output
instead),
anyone know why or how to
achieve this?
Thanks
------------------------------------------------------------------------------
Protect Your Site and
Customers from Malware Attacks
Learn about various malware
tactics and how to avoid
them. Understand
malware threats, the impact
they can have on your
business, and how you
can protect your company and
customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
<mailto:Fish-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/fish-users
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users