projects
/
grml-scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
33cd9cf
)
fix for X braindeadness
author
Michael Gebetsroither
<michael.geb@gmx.at>
Tue, 13 Nov 2007 10:27:53 +0000
(11:27 +0100)
committer
Michael Gebetsroither
<michael.geb@gmx.at>
Tue, 13 Nov 2007 10:27:53 +0000
(11:27 +0100)
usr_sbin/grml-quickconfig
patch
|
blob
|
history
diff --git
a/usr_sbin/grml-quickconfig
b/usr_sbin/grml-quickconfig
index
a8a0df0
..
e3293f7
100755
(executable)
--- a/
usr_sbin/grml-quickconfig
+++ b/
usr_sbin/grml-quickconfig
@@
-99,6
+99,8
@@
while(1) {
EOF
print "Press a key: ".$M;
ReadMode 4; # Turn off controls keys
EOF
print "Press a key: ".$M;
ReadMode 4; # Turn off controls keys
+ $flags = fcntl(STDIN, F_GETFL, 0) or die "Can't get flags for STDIN: $!\n";
+ $flags = fcntl(STDIN, F_SETFL, $flags & ~O_NONBLOCK) or die "Can't set flags for STDIN: $!\n";
while (not defined ($x = ReadKey(0))) {}
ReadMode 0; # Reset tty mode before exiting
while (not defined ($x = ReadKey(0))) {}
ReadMode 0; # Reset tty mode before exiting
@@
-122,6
+124,8
@@
EOF
EOF
print "Press a key: ".$M;
ReadMode 4; # Turn off controls keys
EOF
print "Press a key: ".$M;
ReadMode 4; # Turn off controls keys
+ $flags = fcntl(STDIN, F_GETFL, 0) or die "Can't get flags for STDIN: $!\n";
+ $flags = fcntl(STDIN, F_SETFL, $flags & ~O_NONBLOCK) or die "Can't set flags for STDIN: $!\n";
while (not defined ($x = ReadKey(0))) {}
ReadMode 0; # Reset tty mode before exiting
while (not defined ($x = ReadKey(0))) {}
ReadMode 0; # Reset tty mode before exiting