mirror of
https://github.com/tmux/tmux.git
synced 2026-10-12 21:54:23 +00:00
Prepare collapsible OSC 133 output for review
Use the parent output-range implementation and preserve source rows and columns when output is folded or wrapped. Clear stale exit-status presence on repeated D markers. Apply the requested coding style and add regressions for folded output selections and prompt properties.
This commit is contained in:
@@ -37,5 +37,20 @@ check_raw_matches osc133-status \
|
||||
'L 4 \(4\) flags=START_OUTPUT,END_OUTPUT\[[0-9a-f]+\].* osc133=0,0,0,1,0' \
|
||||
'L 5 \(5\) flags=START_OUTPUT,END_OUTPUT\[[0-9a-f]+\].* osc133=0,0,0,1,0'
|
||||
|
||||
# A later D without a status must clear the earlier status-present flag.
|
||||
start_pane osc133-repeated-status 20 3 \
|
||||
'\033]133;C\007out\033]133;D;7\007\033]133;D\007\n'
|
||||
check_raw_matches osc133-repeated-status \
|
||||
'L 0 \(0\) flags=START_OUTPUT,END_OUTPUT\[[0-9a-f]+\].* osc133=0,0,0,3,0'
|
||||
|
||||
# Prompt properties may repeat or appear in any order; values must end.
|
||||
start_pane osc133-properties 20 6 \
|
||||
'\033]133;A;foo=bar;k=s;id=1\007secondary\n\033]133;P;k=x;foo=bar;k=c\007continuation\n\033]133;A;k=second\007primary\n\033]133;P;k=continued\007primary\n'
|
||||
check_raw_matches osc133-properties \
|
||||
'L 0 \(0\) flags=SECOND_PROMPT\[[0-9a-f]+\].* osc133=0,0,0,0,0' \
|
||||
'L 1 \(1\) flags=SECOND_PROMPT\[[0-9a-f]+\].* osc133=0,0,0,0,0' \
|
||||
'L 2 \(2\) flags=START_PROMPT\[[0-9a-f]+\].* osc133=0,0,0,0,0' \
|
||||
'L 3 \(3\) flags=START_PROMPT\[[0-9a-f]+\].* osc133=0,0,0,0,0'
|
||||
|
||||
$TMUX kill-server 2>/dev/null
|
||||
exit $exit_status
|
||||
|
||||
Reference in New Issue
Block a user