test(terminal): keep restore sentinel on one row

This commit is contained in:
OrcaWin
2026-07-30 02:22:59 -07:00
parent a70235e2d9
commit 7ec69f46b4
+3 -3
View File
@@ -89,7 +89,7 @@ await writeStdout('LONG_TABLE_SCROLL_RESTORE_${runId}\\n')
export function emojiFixtureMarkdownTableScript(table: string, runId: string): string {
const marker = `EMOJI_FIXTURE_TABLE_RESTORE_${runId}`
const widthMarker = `EMOJI_FIXTURE_TABLE_WIDTH_${runId}`
const widthMarker = `${marker} WIDTH`
return `
const table = ${JSON.stringify(table)}
const minimumWidths = [2, 5, 4, 7, 7, 4, 3, 4]
@@ -214,12 +214,12 @@ for (const line of rendered) {
await writeStdout(line + '\\r\\n')
}
await writeStdout('\\x1b[?2026l')
await writeStdout('${widthMarker}:' + generatedTableWidth + '\\r\\n${marker}\\r\\n')
await writeStdout('${widthMarker}:' + generatedTableWidth + '\\r\\n')
`
}
export function emojiFixtureTableWidthMarker(runId: string): string {
return `EMOJI_FIXTURE_TABLE_WIDTH_${runId}:`
return `EMOJI_FIXTURE_TABLE_RESTORE_${runId} WIDTH:`
}
export function narrowSignerMarkdownTableScript(runId: string): string {