Categories
Unix Notes

Terminal Window Names

Make this file in your home directory – call it “term_banner”

#!/bin/sh
echo -ne “33]0;$107”

make sure that the file is protected by a
chmod +x term_banner

now add this alias to your .bash_profile –

alias termb=~/term_banner

now invoke it like this

termb “Some Title”

Here’s the VMS command procedure that you want…

$ esc[0,8]=27
$ bell[0,8]=7
$ write sys$output “”esc’]0;”p1”’bell'”

Remember the first argument to the command is used – enclose it in quotes.
so like this

@term_banner “”F$getjpi(0,”USERNAME”)’ – ”F$TRNLNM(“SYS$NODE”)'”