From d0494cb6a2913ef2be277779093bc2e1078dbccd Mon Sep 17 00:00:00 2001 From: zontreck Date: Sat, 31 Aug 2024 01:11:43 -0700 Subject: [PATCH] Disable line 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 4ce38c7..7be2669 100644 --- a/dart/bin/pause.dart +++ b/dart/bin/pause.dart @@ -7,14 +7,14 @@ String getKeyPress() { while (!ret) { // Disable line mode to capture a single key press without requiring Enter //stdin.echoMode = false; - stdin.lineMode = 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.lineMode = true; + //stdin.lineMode = true; // Return the character representation of the byte str = String.fromCharCode(byte);