Skip to content

Feature for consideration: optional prompt character(s). #16

Closed

Description

@brucemack

Would it be reasonable to add the ability to define a prompt string that would be displayed whenever the shell was waiting for user input? I would typically install something like "> " or "$ ".

Why? Two reasons:

  1. It makes the shell a bit more user-friendly, since it lets the user know when the system is ready to accept input (as opposed to still crunching on the previous command). This pattern is used by the standard UNIX shells.
  2. Makes it easier to write a parser for serial automation of a device that uses the shell. The prompt would serve as a delimiter that indicates that the output of the previous command is finished and that a new command can be sent. This would be helpful for high-level system tests where a device is being controlled via its serial port.

I'll submit a PR for this if the idea is acceptable, but I want to check this first.

Activity

  1. philj404 commented on Jan 5, 2022

    @philj404
    Owner

    This seems like a straightforward, low overhead and low risk change.

    For some reason I was happy with just the "OK" response.

    Is it really necessary to allow customization? The more customization, the harder it is to find the SIMPLE part.

  2. Repository owner locked and limited conversation to collaborators on Jan 5, 2022
  3. converted this issue into a discussion #17 on Jan 5, 2022
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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions