Skip to content

Commit

Permalink
Disable READ_CHAR echoing
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivar Rummelhoff committed Sep 12, 2023
1 parent 9f9924e commit 6a538c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Machine/Executor.fs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ type private Machine
bytes <- uint8 (m.Pop ()) :: bytes
| READ_CHAR ->
if Console.IsInputRedirected then Console.Read () |> Convert.ToChar
else Console.ReadKey () |> keyChar
else Console.ReadKey (true) |> keyChar
|> fun c -> [| c |]
|> Text.Encoding.UTF32.GetBytes
|> fromBytes
Expand Down

0 comments on commit 6a538c5

Please sign in to comment.