Skip to content

Preserve xterm version#1460

Merged
debarshiray merged 1 commit intocontainers:mainfrom
notfirefox:preserve-xterm-version
Feb 27, 2024
Merged

Preserve xterm version#1460
debarshiray merged 1 commit intocontainers:mainfrom
notfirefox:preserve-xterm-version

Conversation

@notfirefox
Copy link
Contributor

As discussed here.

  • Adds XTERM_VERSION to the list of preserved environment variables

@softwarefactory-project-zuul
Copy link

Build succeeded.
https://softwarefactory-project.io/zuul/t/local/buildset/168d6f0b683844589d243240214827e2

✔️ unit-test SUCCESS in 6m 09s
✔️ unit-test-migration-path-for-coreos-toolbox SUCCESS in 4m 40s
✔️ unit-test-restricted SUCCESS in 4m 18s
✔️ system-test-fedora-rawhide SUCCESS in 35m 11s
✔️ system-test-fedora-39 SUCCESS in 33m 46s
✔️ system-test-fedora-38 SUCCESS in 34m 22s

XTerm injects its version into the process running inside it through the
XTERM_VERSION environment variable [1].  This is used by programs like
Neovim to detect the terminal features supported by xterm [2,3,4].

The XTERM_VERSION environment variable is not meant to be set by the
shell's start-up scripts, but directly by xterm, and hence needs to be
preserved across the host operating system and Toolbx container.

[1] https://invisible-island.net/xterm/manpage/xterm.html

[2] Neovim commit 3d8e0594e495c42d
    neovim/neovim@3d8e0594e495c42d

[3] Neovim commit 16300d02c7fbe953
    neovim/neovim@16300d02c7fbe953

[4] Neovim commit ab7da4c53138768f
    neovim/neovim@ab7da4c53138768f
    neovim/neovim#8644

#1449

Signed-off-by: Dominique Polek <dominique.polek@mailbox.org>
Copy link
Member

@debarshiray debarshiray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, that was fast! Thanks, @notfirefox

@debarshiray
Copy link
Member

Rebased against main. Let's wait for the CI to finish.

I took the liberty to squash the two commits. They are relatively straightforward and there isn't much to say separately about them.

@debarshiray debarshiray merged commit e270078 into containers:main Feb 27, 2024
@debarshiray
Copy link
Member

Thank you for your contributions so far, @notfirefox !

@notfirefox notfirefox deleted the preserve-xterm-version branch February 27, 2024 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants