Attributes of inserted blank character
@egmontkob
Submitted by Egmont Koblinger Link to original bug (#779817)
Description
Emit the "CSI num @" (insert blank character(s)) escape sequence with nondefault current attributes. E.g.:
echo -e '\e[4;7;9;33;44mAB\e[D\e[@'
This prints "A B" where the space between is inserted by this escape sequence.
VTE's behavior: The inserted character gets all the attributes (fg+bg colors; bold, underline, inverse, strikethrough) of the current context, that is, the same as the A and B letters in our example.
xterm and most other emulators: The inserted character gets the fg+bg colors of the current context, but not the non-color attributes, those are all switched off.
(The fg color can be seen if you highlight the cell with the mouse. The bold attribute (or lack thereof) can be seen if you enable bold (1) but not reverse (7) and then highlight with mouse: in xterm the background becomes the non-bright variant of the color, as opposed to the surrounding cells. I'm lazy to test the hardly ever used dim (aka half) attribute. I've no clue how to test italic and other attributes, they probably don't matter at all, and I think it's fair to assume that all the non-color attributes are handled the same way.)
(I discovered this bug while wondering whether inserted characters should be hyperlinked in the feature request at bug 779734.)
Version: git master