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

Exiting from shen-scheme? #17

Open
doug719 opened this issue Apr 28, 2021 · 8 comments
Open

Exiting from shen-scheme? #17

doug719 opened this issue Apr 28, 2021 · 8 comments

Comments

@doug719
Copy link

doug719 commented Apr 28, 2021

chez scheme allows an exit with CTRL-d. I have tried this, (cl.exit) (scheme.exit) (exit) and (chez.exit), but none worked. Using CTRL-c to exit does not seem graceful or correct.

@tizoc
Copy link
Owner

tizoc commented Apr 28, 2021

@doug719 (scm.exit). Btw, you can access all Chez functions by using the scm. prefix.

@doug719
Copy link
Author

doug719 commented Apr 28, 2021 via email

@doug719
Copy link
Author

doug719 commented Apr 28, 2021 via email

@doug719
Copy link
Author

doug719 commented Apr 28, 2021 via email

@doug719
Copy link
Author

doug719 commented Apr 28, 2021 via email

@tizoc
Copy link
Owner

tizoc commented Apr 29, 2021

I agree about the ctrl-d issue, will look into it when I have time.

Regarding rlwrap, not sure why %N doesn't work (not even sure what it does internally). The Shen REPL provides !3 to repeat the command at prompt 3, although it is not exactly what you want (if I understood you right, the rlwrap version lets you edit the command).

@doug719
Copy link
Author

doug719 commented Apr 29, 2021 via email

@felixr
Copy link

felixr commented Jan 9, 2022

FYI, if you use rlwrap you can specific key bindings fro shen-scheme in your .inputrc. eg.:

$if shen-scheme 
  "\C-e": '(scm.exit)\C-m'
$endif

This will let you exit with Ctrl-e. I don't think you can re-bind Ctrl-d though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants