https://gitlab.synchro.net/main/sbbs/-/commit/560517b201bb9ee609b88351
Modified Files:
ctrl/text.dat exec/load/text.js src/sbbs3/prntfile.cpp text.h text_defaults.c text_id.c
Log Message:
sbbs3 printfile(): less-style search and help in P_SEEK pager
In P_SEEK mode, add:
- '/' prompts for a search string and finds the first match forward.
- 'n' / 'N' navigate to next / previous match. Search starts from the
line after (or before) the previous match, so matches still visible on
the page above the prompt are reachable.
- '?' shows a help screen listing all keys.
- Q/q quits (case-insensitive).
Behavior fixes:
- The pager no longer exits silently at EOF in P_SEEK mode; instead the
prompt fires one final time so the user can scroll back, search again,
or quit.
- When a search match is in the last page-worth of the file, the screen
is positioned so the last full page of content fills the screen
(rather than a one-line display + EOF prompt with leftover content
above).
- Not-found prints text[FindStringNotFound] and re-prompts in place
(file position and visible content unchanged).
Pager prompt (text[SeekPrompt]) reformatted to show the filename and
'(?=Help)' hint instead of the full key list. Adds new text strings text[FindStringNotFound] and text[SeekHelp]. The K_UPPER flag was
removed from getkey() in the seek prompt so 'n' (next) and 'N' (prev)
are distinguishable.
Co-Authored-By: Claude Opus 4.7 (1M context) <
noreply@anthropic.com>
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net