Inner titlebars show window dimension information

Asked by Donald Espinoza

The inner titlebars of my terminator windows are showing: me@mine: ~ 80x24

The me@mine is fine, as is the working directory, but the numbers that follow are wacked.
I'm thinking that the numbers are the dimensions of the window, because the numbers change as the window is resized.

PROMPT_COMMAND is unset (empty)
Ubuntu 10.04
Terminator 0.93

me@mine:~$ echo $PS1
\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w\$

Debugging the set_terminal_title() in terminatorlib.py shows that the function is being called without without those dimensions, so where the heck are they coming from?

Thanks for your help. I really like using terminator.

Question information

Language:
English Edit question
Status:
Solved
For:
Terminator Edit question
Assignee:
No assignee Edit question
Solved by:
Donald Espinoza
Solved:
Last query:
Last reply:
Revision history for this message
Chris Jones (cmsj) said :
#1

Yes, those numbers are the rows/columns of the terminal.

The titlebars are handled by their own class, which is defined in terminatorlib/titlebar.py.

Titlebar::update() is what sets the text, and it combines the title of the terminal (termtext) with the dimensions (termsize).

What about the numbers is "wacked"? :)

Revision history for this message
Donald Espinoza (donald-espinoza) said :
#2

I hope I didn't offend when I said they're wacked, but for me, and I'd assume most people, that info is not very useful and it detracts from the information presented. It's kind of like if you had added the color information there "red", or the font size "courier 10", why have it there?

So having said that, is there a recommended way of removing that information?

Thanks.

Revision history for this message
Donald Espinoza (donald-espinoza) said :
#3

Doh! Nevermind. :)

def update(self, other=None):
        """Update our contents"""
        default_bg = False
        #self.label.set_text("%s %s" % (self.termtext, self.sizetext))
        self.label.set_text("%s" % (self.termtext)) #<-- My change
        ...