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

[RFC] Give unique prompt symbol (>>>) to Nim #27

Closed
AndreiRegiani opened this issue Jul 15, 2018 · 2 comments
Closed

[RFC] Give unique prompt symbol (>>>) to Nim #27

AndreiRegiani opened this issue Jul 15, 2018 · 2 comments
Labels

Comments

@AndreiRegiani
Copy link
Member

Whether to keep >>> or come up with something unique for Nim? The issue was raised in the Telegram group, causing confusion when comparing Python and Nim code, copying & pasting from REPL.

Suggested:

  • Nim>
  • nim>
  • nim =}>
@timotheecour
Copy link
Contributor

timotheecour commented Jul 18, 2018

inim> echo 1+1

TODO:

  • we could have good defaults, and furthermore, could be customizable by user, via a proc that gets called each time prompt is displayed (just as zsh is).
    So allow user to pass an arbitrary lambda:
# could be (re-)defined at runtime via, say, an import
# defines proc prompt():string = ...
import my_shell_config
# calls prompt() each time the prompt is drawn

=> user can make prompt colored, add a timestamp, duration of last command, number of such prompts etc

@AndreiRegiani
Copy link
Member Author

  • v0.3.1 changed prompt symbol to inim>

@0atman 0atman closed this as completed Apr 7, 2020
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

3 participants