Terminal title height jumps depending on the prompt characters

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

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 :
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers