• For #1371: When calling console.getxy(), call it 3 times in case it fa

    From Rob Swindell@VERT to GitLab note in main/sbbs on Tuesday, November 24, 2026 13:00:11
    https://gitlab.synchro.net/main/sbbs/-/merge_requests/749#note_11437

    The retries make #1371 less likely but don't fix it.

    **1. `false` still reaches the callers.** `getConsoleXYMultipleTimes()` returns `false` when every try fails, and no caller checks for it:
    - `slyedit_dct_stuff.js:658` (the line in #1371) still runs `console.gotoxy(originalCurpos)` with `false`, which throws the same "invalid argument type" error. Line 653 computes `boxY - originalCurpos.y` as `NaN` before that.
    - `promptForGraphicsChar()`: `curPos.x-1` throws a TypeError when `curPos` is `false`.
    - The other callers that restore the cursor (`listTextReplacements`, `doCrossPosting`, the `AreYouThere` handler, the ICE-style `promptYesNo`) have the same problem.

    Each caller needs a fallback for `false`: skip putting the cursor back, or use the position SlyEdit already tracks itself (`gEditTop`, the current edit line index, etc.).

    **2. Retrying makes a failure slower.** `ANSI_Terminal::getxy()` (`src/sbbs3/ansi_terminal.cpp`) returns `false` only after waiting `TIMEOUT_ANSI_GETXY` (5 seconds) for the cursor-position reply. A terminal that didn't answer once usually won't answer the next time, so a failure now makes the user wait 20 seconds instead of 5, and the result is still `false`.

    **3. Off-by-one.** The code calls `getxy()` once and then loops up to `numTries` more times, so the default is 4 tries, not the 3 the comment says.

    **4. Trailing whitespace added back.** 8257dbeced removed trailing whitespace from `exec/load/`. This MR adds trailing tabs/spaces again in `slyedit_dct_stuff.js` (3 lines) and `slyedit_misc.js` (3 lines, including the one after `"use strict";`). Please drop those changes from the diff.

    **5. Minor:**
    - The comment says `console.xy()` where it means `console.getxy()`, and "in which" should be "in which case".
    - In `redrawScreen_IceStyle`, `getxy()` is used only to pad with spaces up to a fixed column. Printing a computed number of spaces would avoid the terminal round trip there.

    — *Authored by Claude (Claude Code), on behalf of @rswindell*

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net