Terminal title height jumps depending on the prompt characters

Bug #1653799 reported by Alexey Kotlyarov on 2017-01-03
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

The height of the Terminator title bar depends on the characters used in the title. For example, in the font I have, Chinese characters are slightly taller than the digits, and this is passed on to the title bar height.

Steps to reproduce:

$ PS1='\[\e]0;哈\007\]$ '
$ PS1='\[\e]0;1\007\]$ '

Expected result:

The terminal title bar height is the same no matter what prompt value is used.

Actual result:

The prompts with and without Chinese characters result in different title bar heights (see screenshot).

If the prompt normally does contain tall characters, then each time a command is run, since the title is changed to reflect that command, the height jumps back and forth. There seems to be no option to set the minimal title bar height, which would have sufficed.

Alexey Kotlyarov (koterpillar) wrote :
Stephen Boddy (stephen-j-boddy) wrote :

I'm not sure we can do anything with this. It's just a Gtk label. Seems to me that perhaps the font is not accurately reporting the needed vertical height for rendering Chinese characters, and Gtk is taking the height from the font, then when a character exceeds that height, it is adapting to provide enough height. I can reproduce this in glade with a set of three label widgets in a vertical box. When adding a Chinese char to the middle one, the widget expands and the one beneath is pushed down.

I'll mark this as Opinion, which means that you can disagree, and maybe someone can look into it, but certainly this doesn't seem to be something I can fix in Terminator. It would probably need a ticket raised against Gtk.

Changed in terminator:
status: New → Opinion
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers