| 
     
       |  |  |  | 
            
              | 
             
               | 
               
                 |  | UGU: Unix Guru Universe - Unix Tip #4456- May 24, 2025
 -  Home : Help
 : Today's Tip Unix Tip #4456- May 24, 2025
 
 
PROGRESS STATUS IN XTERM TITLEBAR 
Sometimes it is handy to be able
 to show some information in the
 xterms title bar, for example
 if you download a set of large
 files (thereby producing lots
 of meaningless information on
 the terminal) and you want to
 know which file is actually
 beeing downloaded.
 
 For this purpose, I hacked a few
 lines of shell code that would
 put any information into the
 xterms title bar. I called the
 script ttshow.
 
 #!/bin/sh
 if [ -z $DISPLAY ]; then
 echo "ESC]0; $* ^G"
 fi
 
 In this little script, the
 string ESC has to be replaced
 by one real escape character
 (ascii 0x1b), the string "^G"
 has to be replaced by a bel
 character (ascii 0x07).
 
 Now I can make my scripts like
 this:
 
 for file in in `cat filenames`; do
 ttshow "downloading $file"
 wget $file
 done
 
 ..and it will tell me on the
 first glance what it's doing.
 
 For more information about
 this, unpack the X distribution
 and search for the file
 ctlseqs.ms - this file belongs
 to the xterm distribution and
 contains all the escape
 sequences xterm knows about.
 
 
 This tip generously supported
 by: ulinzen+ugu@sendmail.com
 
 NOTE: All tips provided are USE AT YOUR OWN RISK. Tips are submitted
by various unix admins around the globe. UGU suggest you read and
test each tip in a non-volitile environment before placing into
production.
 
 LAST 5 TIPS
 4455
 - HP-UX REMOVE UNUSED SPACE
 4454
 - FILE SYSTEM CAPACITY ALERT 
 4453
 - Tru64 STTY DEC
 4452
 - ELIMINATING MULTIPLE SPACES
 4451
 - FINDING PCI DEVICES
 I want to 
 SUBSCRIBE
 and get a UGU Tip everyday.
 I want to 
 UNSUBSCRIBE
 and NOT get a UGU Tip everyday.
 If you have a UNIX TIP let us know, we just may use it:
(All tips become the property of the Unix Guru Universe)
 |  |  
                 |  |  
                 |   Copyright 1994-2024 Unix Guru Universe 
 |  |  |  |  |