https://gitlab.synchro.net/main/sbbs/-/commit/29213fde9f24d62b7e20bbfa
Modified Files:
ctrl/text.dat exec/load/sbbsdefs.js exec/str_cmds.js src/sbbs3/prntfile.cpp sbbsdefs.h text.h text_defaults.c text_id.c
Log Message:
printfile() reads and uses columns from SAUCE records and supports file seeking
The seeking is actually the bigger change here, and long over due. When viewing a larger file and using the default (line at a time) mode of printfile(), we also support a P_SEEK mode flag that will allow the user to seek/jump around
in the viewed file using home/end/page up/down, arrow keys (and mouse clickable). I'd like to extend this feature to putmsg() (and thus printfile when used with the P_OPENCLOSE mode), but for now, this still a big thing. Mouse scrolling would be cool too (but not done). This doesn't do any fancy ANSI window scrolling, just redisplays all the new lines from the top of the screen after each seek. Adding a text-find feature wouldn't be too hard either.
The SAUCE feature is pretty cool in that if you now display a file that has
a valid SAUCE record that specifies a column width, the display output will automatically be taylored to suit that file (e.g. set the display width and enabel the P_WRAP print mode flag). That should help solve a lot of problems some sysops have with display files (usually ANSI artwork) that uses 80 columns and does undesireable things on wider terminals. Of course, the file has to have the valid SAUCE record (e.g. added by the ANSI editor).
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net