- Interprets control codes to adjust the color of the displayed text
- Supports designating document links (both internal-tags and external to other documents) that viewers can click on and navigate to those other links using the mouse. Between each "page worth" of text shown, the viewing is paused and a "menu" appears. Users can move the mouse to select links, the target of the link appears next to the menu word. Users can also just press SPACE (or right click) to proceed or ESCAPE to exit the viewer.
- Will word wrap the document based on the current text-mode screen resolution (so the same document input file can be conveniently viewed on both VGA/flat panel type displays and also CRTs).
The input files are expected to be on-system tutorial type files, "how to" documents, or helpful supporting info for a PRG. As a convention, the XINFO "standard file extension" is .NFO (but they are regular text files, intended to normally have been created on a Mac/PC, or using X16EDIT). [apologies that the old screenshots are showing .x16 extension instead of the preferred .nfo]
In addition to colors (using the standard PETSCII color codes), several other special control codes are supported:
Code: Select all
FF = disable word wrap for the current line (useful during code examples or bulleted listings)
FE = place a line divider across the current row (useful for making dividers that work across any text mode resolution)
FD = "force menu" causes a pause, so users can make a link choice without revealing the rest of the document just yet (allows a cleaner presentation of choices, especially at 80x60 text mode)
FC = center the content of the current row
8E = enter PETSCII mode (upper/grx, this is the X16 startup default)
0F = enter ISO mode (cc65 defaults to this, but if enter a PETSCII mode this is a way to come back to ISO mode)
0E = enter PETSCII mode (lower/upper chars)
0D = newline ("hard return")
01 = inverse text
- default margin of 2 spaces on all sides, but each top/bottom left/right margin can be user adjusted (so if you want to overlay your own content on the screen, you could then "steer" XINFO into a smaller sub-region of the text mode screen)
- file parameters are also user adjustable (default is index.nfo in the CWD as FN #1 on DEVICE 8 / SUB 6).
- ESC to exit
- F1 for some brief help/reminders
- 1-9 and 0,-,= change screen modes (quick jump for when you know exactly what mode you want)
- [ or ] cycle through the screen modes
- HOME to go back to the top
- TAB to cycle through links
- RETURN to select a link (or mouse button click)
- SPACE to go to next page (or right mouse button)
These parameters are adjustable either on command line when running XINFO, or can be read from the "free memory area" by a structure defined at address $0400.
Example:
Code: Select all
LOAD "XINFO.PRG"
RUN:REM INDEX.NFO 2 2 2 2 1 8 6
This is a cc65-based project and it may take a while for me to figure out a way to make it ROMable. But long filenames are supported as link targets.
See the github project link for more details about how to use XINFO.
https://github.com/voidstar78/XINFO
NOTE the TryNow.zip is good for TRYING, but it is not the newest version of PRG. The V1.6.ZIP is more complete examples.
Try It Now!
VERSION 1.8 updates:
- some bug fixes related to word wrapping
- improved exiting ISO mode when transition to the PETSCII modes
- restores SHIFT+ALT PETSCII mode swapping when you exit
- updates to the F1 help