![]() |
![]() |
| Home | What's New | Products | Download | Purchase | Support | About Us | Contact |
SUPPORT > TIPS
|
|
|
|
Displaying Text In The SecureCRT Title Bar It can be useful to have the SecureCRT title bar update dynamically, especially when using multiple concurrent SecureCRT sessions. There is an option in your Session Options that allows you to statically set the title bar for a particular SecureCRT window. However, this is not always sufficient. If you need to place information in the SecureCRT title bar dynamically, SecureCRT supports the standard xterm escape sequences for changing the window title bar. These escape sequences can be sent from the remote system by a variety of means, and allow you to change how the SecureCRT title bar is displayed arbitrarily. If the remote system sends the following, SecureCRT places "sometext" in the title bar of the SecureCRT window.
The following Perl script demonstrates this functionality. $esc = "\x1b"; $txt = join(" ", @ARGV); When run from your shell on the remote, it will take any arguments as text to display in the title bar. For example, if run on a Un*x system:
would place something similar to the following in the SecureCRT title bar.
The text would depend, of course, on the values of $user, $host, and the current working directory. There are many possible applications. One common use is to hard-code the escape sequence into your shell prompt, or use a similar mechanism, so that each time you use the cd command on a Un*x host, for example, the title bar is changed to reflect the current working directory, or whatever you want displayed in the title bar. For additional information on xterm escape sequences, refer to the following web links. FAQS.org provides specific instructions on this technique: MIT provides an exhaustive list of escape sequences: http://www.mit.edu/afs/athena/system/x11r4/src/mit/clients/xterm/ctlseq2.txt http://www.vandyke.com/support/tips/vbswin.html Tell us what you think. Did you find this tip useful? Do you have a question you'd like us to answer? Send your comments and questions to VanDyke Software Support.
|
||||||||
|
VShell, SecureCRT, SecureFX, Entunnel, CRT,
and AbsoluteFTP are trademarks or registered trademarks of VanDyke Software, Inc. in the United States and/or other countries. All other trademarks or registered trademarks
are the property of their respective owners.
Site Map | Legal Notices | Privacy
Policy | Refund
Policy |