diff --git a/lib/MUGS/App/CLI.rakumod b/lib/MUGS/App/CLI.rakumod index 63fcf74..06aa06e 100644 --- a/lib/MUGS/App/CLI.rakumod +++ b/lib/MUGS/App/CLI.rakumod @@ -56,11 +56,11 @@ class MUGS::App::CLI is MUGS::App::LocalUI { } method prompt-for-password(Str:D $prompt = 'Password') { - $!input.prompt(self.styled-prompt("$prompt: "), :mask<*>); + $!input.prompt(self.styled-prompt("$prompt:"), :mask<*>); } method text-input(Str:D $label, Str :$default) { - my $styled = self.styled-prompt($default ?? "$label [$default]: " !! "$label: "); + my $styled = self.styled-prompt($default ?? "$label [$default]:" !! "$label:"); my $input; until $input { my $raw = $!input.prompt($styled); @@ -82,7 +82,7 @@ class MUGS::App::CLI is MUGS::App::LocalUI { my $option; until $option { - my $new-option = $!input.prompt(self.styled-prompt("Selection: ")); + my $new-option = $!input.prompt(self.styled-prompt("Selection:")); return unless $new-option.defined; $new-option .= trim; if $new-option ~~ /^ \d+ $/ && 1 <= $new-option <= @options { diff --git a/lib/MUGS/UI/CLI.rakumod b/lib/MUGS/UI/CLI.rakumod index 3a5c22a..19e8858 100644 --- a/lib/MUGS/UI/CLI.rakumod +++ b/lib/MUGS/UI/CLI.rakumod @@ -21,7 +21,7 @@ class Game is MUGS::UI::Game { has Bool $.screen-reader; #= Tune output for screen readers method ui-type() { 'CLI' } - method prompt-string() { '> ' } + method prompt-string() { '>' } method is-lobby() { False } method game-help() { ... } diff --git a/lib/MUGS/UI/CLI/Game/Echo.rakumod b/lib/MUGS/UI/CLI/Game/Echo.rakumod index 67db669..5c1901b 100644 --- a/lib/MUGS/UI/CLI/Game/Echo.rakumod +++ b/lib/MUGS/UI/CLI/Game/Echo.rakumod @@ -8,7 +8,7 @@ use MUGS::UI::CLI::Genre::Test; #| UI for echo test class MUGS::UI::CLI::Game::Echo is MUGS::UI::CLI::Genre::Test { method game-type() { 'echo' } - method prompt-string() { 'Enter a message > ' } + method prompt-string() { 'Enter a message >' } method show-initial-state(::?CLASS:D:) { } method show-echo($response) { $.app-ui.put-sanitized($response.data) } diff --git a/lib/MUGS/UI/CLI/Game/Lobby.rakumod b/lib/MUGS/UI/CLI/Game/Lobby.rakumod index 4ea65b2..a1dc463 100644 --- a/lib/MUGS/UI/CLI/Game/Lobby.rakumod +++ b/lib/MUGS/UI/CLI/Game/Lobby.rakumod @@ -15,7 +15,7 @@ class MUGS::UI::CLI::Game::Lobby is MUGS::UI::CLI::Game { has State $.state = State(0); method game-type() { 'lobby' } - method prompt-string() { %prompts{$.state} ~ ' > ' } + method prompt-string() { %prompts{$.state} ~ ' >' } method is-lobby() { True } method show-available-game-types(::?CLASS:D: Bool :$all) { diff --git a/lib/MUGS/UI/CLI/Game/NumberGuess.rakumod b/lib/MUGS/UI/CLI/Game/NumberGuess.rakumod index 2014db2..c8912c2 100644 --- a/lib/MUGS/UI/CLI/Game/NumberGuess.rakumod +++ b/lib/MUGS/UI/CLI/Game/NumberGuess.rakumod @@ -10,7 +10,7 @@ class MUGS::UI::CLI::Game::NumberGuess is MUGS::UI::CLI::Genre::Guessing { method prompt-string(::?CLASS:D:) { my ($min, $max) = $.client.initial-state< min max >; - "Enter a natural number between $min and $max > " + "Enter a natural number between $min and $max >" } method guess-status($response) { diff --git a/lib/MUGS/UI/CLI/Game/Snowman.rakumod b/lib/MUGS/UI/CLI/Game/Snowman.rakumod index cd608ca..b380941 100644 --- a/lib/MUGS/UI/CLI/Game/Snowman.rakumod +++ b/lib/MUGS/UI/CLI/Game/Snowman.rakumod @@ -7,7 +7,7 @@ use MUGS::UI::CLI::Genre::Guessing; #| CLI for Snowman word guessing game class MUGS::UI::CLI::Game::Snowman is MUGS::UI::CLI::Genre::Guessing { method game-type() { 'snowman' } - method prompt-string() { 'Enter a letter in this word > ' } + method prompt-string() { 'Enter a letter in this word >' } method guess-status($response) { "Guess {$response.data} was " diff --git a/lib/MUGS/UI/CLI/Genre/Guessing.rakumod b/lib/MUGS/UI/CLI/Genre/Guessing.rakumod index aec07df..ed8ef75 100644 --- a/lib/MUGS/UI/CLI/Genre/Guessing.rakumod +++ b/lib/MUGS/UI/CLI/Genre/Guessing.rakumod @@ -7,7 +7,7 @@ use MUGS::UI::CLI; #| CLI for guessing games class MUGS::UI::CLI::Genre::Guessing is MUGS::UI::CLI::Game { - method prompt-string() { 'Next guess > ' } + method prompt-string() { 'Next guess >' } method guess-status($response) { ... } method game-status($response) { '' } method winloss-status($response) {