Re: exec/filearea-lb.js
By: nightfox to CVS commit on Sat Mar 10 2018 12:23 pm
exec filearea-lb.js 1.1 1.2
Update of /cvsroot/sbbs/exec
In directory cvs:/tmp/cvs-serv12685
Modified Files:
filearea-lb.js
Log Message:
Added a V command to the file directory list to allow viewing a file. This is done by reading ctrl/file.cnf (based on the read_file_config function in src/sbbs3/scfglib2.c), matching the filename extension in the list, and if found, it runs the file view command using bbs.exec().
Forgot to mention, I also added a command-line parameter to specify an internal directory code so this script can optionally start up listing files in a directory rather than from the file library chooser. That way, it can be added to a command shell's file menu for listing files in the current directory.
Nightfox
---
■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)