Originally Posted by
rwigle
I have tried to change the terminal title a number of times in a (bash) shell script and I can't get it to work.
I run a program that generates a lot of screen output and I'd like to see what stage the processing is at. In a Windows batch file I used to do:
title "Solving the baseline"
gams baseline
title "Solving the first experiment"
gams first
I tried the following in a shell script, but it seems to do nothing.
PS1="\[\033]2; Solving baseline $sc\007\] \h: "
What you're trying to do depends, if possible, on which terminal emulator you're using. In any case, based on what you posted, doing
Code:
echo "\[\033]2; Solving baseline $sc\007\] \h: "
will probably work.
Bookmarks