Neotron-Compute / Neotron-OS

Common OS for all Neotron systems
GNU General Public License v3.0
109 stars 8 forks source link

Replace menu with a better command line #69

Open thejpster opened 1 year ago

thejpster commented 1 year ago

We want:

The shell will steal ram from the top of the tpa, while still allowing programs to run in what is left. Will need some kind of heap allocator that can do that.

Built in commands:

CLS
DIR [/W] [<pathspec>]
CD [<dir>]
PWD
MKDIR <dir>
RMDIR <pathspec>
DEL <pathspec>
COPY <pathspec> <dir>|<path>
MOVE <pathspec> <dir>|<path>
RENAME <pathspec> <name>
SET [<varname> [= <value>]
HELP [<topic>]
MODE [<sub-commands>]
DATETIME [<iso-8601>]
TYPE [/P] [<pathspec>]

Maybe check back to an MS-DOS 5.0 reference guide.

thejpster commented 5 months ago

MS-DOS pipes (at least in PC-DOS 3.0) work by writing temporary files.

DIR | MORE

seems to be the same as

DIR > {digits}
MORE < {digits}

This means a disk is required for | to work, which is fine because MS-DOS requires a disk to work. Neotron OS could store the output in RAM, or we could implement a RAMDISK and let people use that if they have no actual disk drive.