https://gitlab.synchro.net/main/sbbs/-/commit/6b9e44ebe6709141507d533d
Modified Files:
ctrl/text.dat docs/v322_new.md exec/load/text.js src/sbbs3/getkey.cpp text.h text_defaults.c text_id.c
Log Message:
Yes/No prompts: show "Aborted", not "No", when aborted with Ctrl-C
yesno() and noyes() take a set abort flag as the No key and printed
text[No], so a prompt aborted with Ctrl-C looked as if the user had
answered No (often followed by the command ending, as if answering No
had cancelled it). They now print the new AbortedAnswer text string
(992, "Aborted") in that case. Return values and the abort flag are
unchanged, so callers behave as before. This covers the stock lightbar
prompts too: yesnobar.js and noyesbar.js leave the answer to the C++
prompt when aborted.
The string ends with a normal-attribute code so its color does not
carry into later output when the caller passes P_SAVEATR (which skips
the prompt's attribute reset).
Fixes #1386
Co-Authored-By: Claude Opus 5.5 <
noreply@anthropic.com>
--- SBBSecho 3.38-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)