REPL.pm6 (rakudo-2020.09) | : | REPL.pm6 (rakudo-2020.10) | ||
---|---|---|---|---|
skipping to change at line 250 | skipping to change at line 250 | |||
} | } | |||
elsif !$*DISTRO.is-win and !( %*ENV<_>:exists and %*ENV<_>.ends-with : 'rlwrap' ) { | elsif !$*DISTRO.is-win and !( %*ENV<_>:exists and %*ENV<_>.ends-with : 'rlwrap' ) { | |||
say 'You may want to `zef install Readline` or `zef install Line noise` or use rlwrap for a line editor'; | say 'You may want to `zef install Readline` or `zef install Line noise` or use rlwrap for a line editor'; | |||
} | } | |||
say ''; | say ''; | |||
$self but FallbackBehavior | $self but FallbackBehavior | |||
} | } | |||
method new(Mu \compiler, Mu \adverbs) { | method new(Mu \compiler, Mu \adverbs) { | |||
say compiler.version_string(:shorten-versions); | ||||
say ''; | ||||
my $multi-line-enabled = !%*ENV<RAKUDO_DISABLE_MULTILINE>; | my $multi-line-enabled = !%*ENV<RAKUDO_DISABLE_MULTILINE>; | |||
my $self = self.bless(); | my $self = self.bless(); | |||
$self.init(compiler, $multi-line-enabled); | $self.init(compiler, $multi-line-enabled); | |||
$self = mixin-line-editor($self); | $self = mixin-line-editor($self); | |||
$self | $self | |||
} | } | |||
method init(Mu \compiler, $multi-line-enabled --> Nil) { | method init(Mu \compiler, $multi-line-enabled --> Nil) { | |||
$!compiler := compiler; | $!compiler := compiler; | |||
$!multi-line-enabled = $multi-line-enabled; | $!multi-line-enabled = $multi-line-enabled; | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 3 lines changed or added |