This script enables the user to browse the filesystem and look at ascii/ansi files.
- Copy textbrowse.py to your default script directory.
- Copy textbrowse.ans to your art directory.
- Change the 'startfolder' variable in textbrowse.py to whatever directory you want to use as a starting point for the script.
You can also pass a textfile as an argument to the script.
As the fbrowse.py script is being updated constantly there can't be any precise installation instructions.
-
Add
from x84.bbs import gosub
to the imports section in fbrowse.py -
Search for
if lightbar.selected or inp in (term.KEY_LEFT, term.KEY_RIGHT,):
in fbrowse.py -
Add the following lines of code beneath that line:
if (ext in COLLY_EXTENSIONS and (lightbar.selected or inp is term.KEY_RIGHT)): gosub('textbrowse',filepath,'/',filename) draw_interface(term, lightbar)
Enjoy!