Hello,

In reference to the OSC CONTEXT (OSC 3008) documented here...

  https://github.com/systemd/systemd/blob/main/docs/OSC-CONTEXT.md

...when attempting to send an OSC CONTEXT, the related profile.d script is
using OSC 8003, rather than OSC 3008:


https://github.com/systemd/systemd/blame/main/profile.d/80-systemd-osc-context.sh

======

*Line #17:*
    # Escape according to the OSC 8003 spec. Since this requires shelling
out

*Line #36:*
            printf "\033]8003;end=%s;exit=interrupt;signal=%s\033\\"
"$systemd_osc_context_cmd_id" $((systemd_exitstatus-127))

*Line #38:*
            printf "\033]8003;end=%s;exit=failure;status=%s\033\\"
"$systemd_osc_context_cmd_id" $((systemd_exitstatus))

*Line #40:*
            printf "\033]8003;end=%s;exit=success\033\\"
"$systemd_osc_context_cmd_id"

*Line #50:*
    printf "\033]8003;start=%s%s;type=shell;cwd=%s\033\\"
"$systemd_osc_context_shell_id" "$(__systemd_osc_context_common)"
"$(__systemd_osc_context_escape "$PWD")"

*Line #61:*
    
PS0='\033]8003;start=$systemd_osc_context_cmd_id$(__systemd_osc_context_common);type=command;cwd=$(__systemd_osc_context_escape
"$PWD")\033\\'"${PS0:-}"

======

Was the "8003" intended originally to be "3008", but it got
transpositioned/reversed on accident, or is there a new OSC 8003
specification which someone can point me to?

Thank you!
--Jake

Reply via email to