You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature for consideration: optional prompt character(s). #16
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:
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.
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
philj404 commentedon Jan 5, 2022
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.