Skip to content

Handle systemd OSC 3008 spec, otherwise gibberish in the terminal #3075

@whatbh

Description

@whatbh

systemd version 258 introduces OSC 3008 spec recently.

https://github.com/systemd/systemd/blob/main/docs/OSC_CONTEXT.md

https://systemd.io/OSC_CONTEXT/

These escape codes are handled nicely by most terminals and, IMHO, should be kept that way.
Unfortunately, WindTerm fails to handle OSC escape codes in general, leading to gibberish littered all over the prompt.

Quick workaround:

If you are using systemd 258 and observed littering behavior:
Method 1. Remove the file /etc/profile.d/80-systemd-osc-context.sh
Method 2. unset the variable PS0 and PROMPT_COMMAND

Long-term fix required:

Handle these OSC escape codes in WindTerm.

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