From c79f2b51a1f22c21bd99b87c0afeeed588d4082f Mon Sep 17 00:00:00 2001 From: zontreck Date: Sat, 31 Aug 2024 01:07:03 -0700 Subject: [PATCH] Dont set echo mode --- dart/bin/pause.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dart/bin/pause.dart b/dart/bin/pause.dart index 0e7ee79..4ce38c7 100644 --- a/dart/bin/pause.dart +++ b/dart/bin/pause.dart @@ -6,14 +6,14 @@ String getKeyPress() { String str = ""; while (!ret) { // Disable line mode to capture a single key press without requiring Enter - stdin.echoMode = false; + //stdin.echoMode = false; stdin.lineMode = false; // Read a single byte from stdin int byte = stdin.readByteSync(); // Restore line mode and echo mode to default settings - stdin.echoMode = true; + //stdin.echoMode = true; stdin.lineMode = true; // Return the character representation of the byte