From 9e70bdea045d8c9ed88b81d939661894471b54b9 Mon Sep 17 00:00:00 2001 From: Naoum Hankache Date: Tue, 15 Oct 2019 20:07:08 +0300 Subject: [PATCH] On Windows EOF is ^Z --- src/core.c/REPL.pm6 | 2 +- t/02-rakudo/repl.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core.c/REPL.pm6 b/src/core.c/REPL.pm6 index 40433de64b5..0ff1800fb14 100644 --- a/src/core.c/REPL.pm6 +++ b/src/core.c/REPL.pm6 @@ -305,7 +305,7 @@ do { method repl-loop(*%adverbs) { if $*DISTRO.is-win { - say "To exit type 'exit' or '^C'"; + say "To exit type 'exit' or '^Z'"; } else { say "To exit type 'exit' or '^D'"; } diff --git a/t/02-rakudo/repl.t b/t/02-rakudo/repl.t index 5c13e99aa33..879f217f257 100644 --- a/t/02-rakudo/repl.t +++ b/t/02-rakudo/repl.t @@ -9,7 +9,7 @@ my $*REPL-SCRUBBER = -> $_ is copy { if $*DISTRO.is-win { s/^^ "You may want to `zef install Readline` or `zef install Linenoise`" " or use rlwrap for a line editor\n\n"//; - s/^^ "To exit type 'exit' or '^C'\n"//; + s/^^ "To exit type 'exit' or '^Z'\n"//; s:g/ ^^ "> " //; # Strip out the prompts s:g/ ">" $ //; # Strip out the final prompt s:g/ ^^ "* "+ //; # Strip out the continuation-prompts