open
https://gitlab.synchro.net/main/sbbs/-/work_items/1386
## Summary
When a user presses Ctrl-C at a Yes/No prompt, the prompt shows the answer "No", the same as if they had pressed N. Show "Aborted" instead, so the user can see that the question (and usually the command) was aborted rather than answered.
## Current behavior
`sbbs_t::yesno()` and `sbbs_t::noyes()` (`src/sbbs3/getkey.cpp`) treat a set abort flag as the No key: they print `text[No]` (561) and return the same value as a real "No". The abort flag stays set, which is how callers such as `exec/load/shell_lib.js` `send_netmail()` tell the two apart afterwards (`console.aborted`).
With the stock prompts (`YesNoQuestion` / `NoYesQuestion` = `@EXEC:yesnobar@` / `@EXEC:noyesbar@`), the lightbar module erases its "[No] Yes" bar and exits without answering when the user presses Ctrl-C; the C++ prompt then prints "No".
Example, in the SDOS shell, pressing Ctrl-C at the first question:
```
C:\MAIL>netmail
someone@example.com
Attach a file? No
C:\MAIL>
```
The command ends right after an apparent "No", which reads as if answering No cancelled it.
## Proposal
In both functions, when the abort flag is set, print a new text string instead of `text[No]`:
```
"\1r\1hAborted" 992 YesNoAborted
```
- A new string rather than the existing `Aborted` (030): that one begins with `\1?` (new line unless at column 0) and ends with a CR/LF, so it would print below the question instead of as its answer. The new one follows `Yes`/`No`: the bare word, with the prompt adding the line break (honoring `P_NOCRLF`) and restoring the attribute as it does now.
- Return values and the abort flag are unchanged, so no caller behaves differently; only the displayed answer changes. It applies to every C++ prompt and to JavaScript's `console.yesno()` / `console.noyes()`.
- A prompt shown while the abort flag is already set answers itself at once and today prints "No"; it would print "Aborted", which describes what happened.
Adding the string means the usual text.dat steps: regenerate `text.h`, `text_id.c`, `text_defaults.c` and `exec/load/text.js`, rebuild the library and programs together, and add a line to `docs/v322_new.md`.
Related: #1316 (Ctrl-C while the pause prompt is printed is lost).
- *Authored by Claude (Claude Code), on behalf of @rswindell*
--- SBBSecho 3.38-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)