원클릭으로
pending-wrap-resolution
Pattern for resolving PendingWrap before forward cursor movement in the terminal Writer
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Pattern for resolving PendingWrap before forward cursor movement in the terminal Writer
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
{what this skill teaches agents}
{what this skill teaches agents}
Coordinating work across multiple Squad instances
Team initialization flow (Phase 1 proposal + Phase 2 creation)
Step-by-step release checklist for Squad — prevents v0.8.22-style disasters
Cross-platform path handling and command patterns
| name | pending-wrap-resolution |
| description | Pattern for resolving PendingWrap before forward cursor movement in the terminal Writer |
| domain | terminal-writer |
| confidence | high |
| source | audit |
The SadConsole terminal Writer uses a deferred-wrap model (PendingWrap flag) per ECMA-48 §7.1. When the cursor reaches the right margin, the wrap is deferred until the next printable character. Cursor-movement handlers must decide whether to just clear the flag (most handlers) or resolve the wrap first (advance to next line, col 0).
Any handler that moves the cursor forward along the line (increasing column) must resolve PendingWrap, not just clear it. Without resolution, forward movement from the right margin is clamped to width-1 → a no-op.
A handler is AT RISK if:
width - 1case 'X': // Forward-moving handler
if (State.PendingWrap && State.AutoWrap)
{
State.PendingWrap = false;
State.CursorColumn = 0;
LineFeed();
}
else
{
State.PendingWrap = false;
}
ApplyForwardMovement(Param(parameters, 0, 1));
break;
See Writer.cs CUF handler (case 'C'), CHT handler (case 'I'), and C0 HT in OnC0Control for the canonical implementations.