Re: change gnome-terminal "title" from cmdline

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

 



On 09/26/2009 10:42 PM, bruce wrote:
hey...

curious question...

how does one go about changing the title of the current gnome-terminal via
the cmdline...

it appears that the escape sequences i've tried aren't working...

thoughts/comments/pointers appreciated...

thanks


Here is a bit of my .tcshrc that does this. The escape codes here should be obvious, and are the same for most terminal emulators, such as xterm and kterm:

        set prompt = "%m {%h} %t %U%~%u "
if ( $TERM == "xterm" || $TERM == "dtterm" || $TERM == "kterm" ) then
#               set color ls
set term_esc = "^[]2;" # escape, right bracket, 2, semi-colon.
                set esc_end = "^G" # Control G
alias precmd 'echo -n "${term_esc} ${HOST}:${cwd} ${esc_end} "'

        endif

This puts the host name and current working directory on my terminal title bar. Even when logged in remotely, which is the point for me. Just hafta to know for sure before typing 'sudo reboot'!

Good luck!

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux