From 3eaffe64f9e5d38e7ef29426aca51488c0374cad Mon Sep 17 00:00:00 2001 From: Dominique FOURNIER Date: Mon, 14 Mar 2022 20:56:22 +0100 Subject: [PATCH] Console : Allow to delete char with \b too (ASCII 0x08) --- src/Console.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Console.php b/src/Console.php index bc01ead..306db3d 100644 --- a/src/Console.php +++ b/src/Console.php @@ -473,7 +473,7 @@ class Console $this->moveCursor ($cursorPos); } // }}} - elseif (ord($char) === 127) + elseif (ord($char) === 127 || ord($char) === 8) // Remove the previous char (Backspace) // {{{ {