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

REPL exit instructions don't work on Windows #1677

Closed
zoffixznet opened this issue Mar 31, 2018 · 5 comments · Fixed by #3230
Closed

REPL exit instructions don't work on Windows #1677

zoffixznet opened this issue Mar 31, 2018 · 5 comments · Fixed by #3230

Comments

@zoffixznet
Copy link
Contributor

zoffixznet commented Mar 31, 2018

It says to press ^D to exit but that don't do nothing on cmd.exe on Win10:

C:\rakudo>perl6

To exit type 'exit' or '^D'
> ^D^D^D^D^D^D^D^D^D^D
===SORRY!=== Error while compiling:
Bogus statement
------> <BOL><HERE>����������
    expecting any of:
        prefix
        term
> ^D
===SORRY!=== Error while compiling:
Bogus statement
------> <BOL><HERE>�
    expecting any of:
        prefix
        term
> ^CTerminate batch job (Y/N)? y

C:\rakudo>perl6 -v
This is Rakudo version 2018.03-107-ge31dd96 built on MoarVM version 2018.03-31-gfdb5e4d
implementing Perl 6.c.

(partly related #1674 )

@zoffixznet zoffixznet changed the title REPL instructions don't work on Windows REPL exit instructions don't work on Windows Mar 31, 2018
@Kaiepi
Copy link
Contributor

Kaiepi commented Apr 1, 2018

Looks like it'd be better to use ^C instead of ^D to exit because of this. Which line editor are you using?

@zoffixznet
Copy link
Contributor Author

The default one. The "terminate batch job" message in the ^C option is unwanted. ^Z works, but you have to press ENTER after pressing CTRL+Z to send it.

@Kaiepi
Copy link
Contributor

Kaiepi commented Apr 1, 2018

^Z gives me a similar error to yours with ^D when I test it on OpenBSD. I think ^C would be more preferable for now

Edit: ^C and ^Z don't work with Readline, just ^D

@zoffixznet
Copy link
Contributor Author

^D when I test it on OpenBSD

We can customize the message based on the OS.

@Kaiepi
Copy link
Contributor

Kaiepi commented Apr 1, 2018

We can customize the message based on the OS.

You're right. I'm getting too caught up in trying to keep them equivalent across OSes when that wouldn't work

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

Successfully merging a pull request may close this issue.

3 participants