Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace menu with a better command line #69

Open
thejpster opened this issue Sep 23, 2023 · 1 comment
Open

Replace menu with a better command line #69

thejpster opened this issue Sep 23, 2023 · 1 comment

Comments

@thejpster
Copy link
Member

thejpster commented Sep 23, 2023

We want:

  • built in commands
  • executing programs off disk, with arguments
  • environment variables - assignment and expansion
  • batch files / shell scripts
  • redirection to file

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
Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant