这是indexloc提供的服务,不要输入任何密码
Skip to content

Garbage left in input buffer on urxvt with transparent background color set #189

@tejing1

Description

@tejing1
  • urxvt -fg white -bg rgba:0000/0000/0000/C000
  • Inside the terminal, run gh --version, or most anything that calls termenv.DefaultOutput().BackgroundColor() I've also personally noticed what seems to be the same issue with https://github.com/numtide/treefmt
  • Garbage characters are left behind and read by your shell, or whatever next reads from the terminal.

Here's the leftover input buffer contents (with 2 ctrl-d's to flush it through hexdump):

$ gh --version; hexdump -C
^[]11;rgba:0000/0000/0000/c000^[^[[114;1Rgh version 2.72.0 (nixpkgs)
https://github.com/cli/cli/releases/tag/v2.72.0
00000000  5b 31 31 34 3b 31 52 1b  5d 31 31 3b 72 67 62 61  |[114;1R.]11;rgba|
00000010  3a 30 30 30 30 2f 30 30  30 30 2f 30 30 30 30 2f  |:0000/0000/0000/|
00000020  63 30 30 30 1b 1b 5b 31  31 34 3b 31 52           |c000..[114;1R|
0000002d

Context: cli/cli#10830

Thanks, @ei-grad for tracking this down.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions