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

Interesting idea: a demo shell to set and inspect features. #103

Open
rocky opened this issue May 25, 2014 · 0 comments
Open

Interesting idea: a demo shell to set and inspect features. #103

rocky opened this issue May 25, 2014 · 0 comments
Labels

Comments

@rocky
Copy link
Collaborator

rocky commented May 25, 2014

In working on the Perl equivalent of this, I had an A-ha! moment. One could write a little demo shell that handles readline-like commands like commands. For example,

  • interpret commands .inputrc to bind keys to a readline function.
  • run an .inputrc
  • run commands set the modes (insert/overwrite, emacs/vi)
  • provide commands to see status and modes.

Of course, changes entered would be directly apparent in subsequent editing, and the demo gives a sense of what's available and what's not.

It could have its own completion routine to show off that aspect as well. (I've started that on the Perl side too.) Programmers can then look at that code to understand how to customize for their own needs.

Of course, could be done outside of the package, but having it inside is kind of neat to start out inside.

pp
Finally, looking at the demo code, a programmer has a real sense of how to work.

@rocky rocky added the feature label May 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant