diff --git a/Window.php b/Window.php
index 90e96b6..2e2fc84 100644
--- a/Window.php
+++ b/Window.php
@@ -423,9 +423,16 @@ public static function getTitle ( ) {
// DECSLPP.
echo "\033[21t";
+ $read = [STDIN];
+ $write = [];
+ $except = [];
+ $out = null;
+
+ if(0 === stream_select($read, $write, $except, 0, 50000))
+ return $out;
+
// Read \033]l
\033\
fread(STDIN, 3); // skip \033, ] and l.
- $out = null;
do {
@@ -462,9 +469,16 @@ public static function getLabel ( ) {
// DECSLPP.
echo "\033[20t";
+ $read = [STDIN];
+ $write = [];
+ $except = [];
+ $out = null;
+
+ if(0 === stream_select($read, $write, $except, 0, 50000))
+ return $out;
+
// Read \033]L