summaryrefslogtreecommitdiff
path: root/usr/src/boot
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2022-07-24 01:14:11 +0300
committerToomas Soome <tsoome@me.com>2022-07-27 00:12:12 +0300
commitcbce81458212807de7a4731e284017eda3f97a65 (patch)
tree5850b0f3c150a843088372435ee04d42d33d038d /usr/src/boot
parent519c7dc997514f86d3105ff6bae95bb94e255e48 (diff)
downloadillumos-gate-cbce81458212807de7a4731e284017eda3f97a65.tar.gz
14748 loader: support for hiding the cursor on the console (fix autoboot)
Reviewed by: Andy Fiddaman <andy@omnios.org> Approved by: Dan McDonald <danmcd@mnx.io>
Diffstat (limited to 'usr/src/boot')
-rw-r--r--usr/src/boot/forth/menu.4th5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/src/boot/forth/menu.4th b/usr/src/boot/forth/menu.4th
index 407dc8b578..1fd20811c6 100644
--- a/usr/src/boot/forth/menu.4th
+++ b/usr/src/boot/forth/menu.4th
@@ -995,7 +995,12 @@ also menu-namespace
begin \ Loop forever
at-bl
+ \ restore cursor for case the getkey ends up in
+ \ booting the kernel. This does restore cursor for
+ \ serial terminals.
+ cursor-normal cursor-set
getkey \ Block here, waiting for a key to be pressed
+ cursor-invisible cursor-set
dup -1 = if
cursor-normal cursor-set