Skip to content

Replace menu with a better command line #69

Open

Description

@thejpster

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.

Activity

  1. thejpster commented on May 26, 2024

    @thejpster
    MemberAuthor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions