summaryrefslogtreecommitdiff
path: root/usr/src/boot/forth/brand-smartos.4th
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/boot/forth/brand-smartos.4th')
-rw-r--r--usr/src/boot/forth/brand-smartos.4th38
1 files changed, 38 insertions, 0 deletions
diff --git a/usr/src/boot/forth/brand-smartos.4th b/usr/src/boot/forth/brand-smartos.4th
new file mode 100644
index 0000000000..acdbcf13af
--- /dev/null
+++ b/usr/src/boot/forth/brand-smartos.4th
@@ -0,0 +1,38 @@
+\
+\ This file and its contents are supplied under the terms of the
+\ Common Development and Distribution License ("CDDL"), version 1.0.
+\ You may only use this file in accordance with the terms of version
+\ 1.0 of the CDDL.
+\
+\ A full copy of the text of the CDDL should have accompanied this
+\ source. A copy of the CDDL is also available via the Internet at
+\ http://www.illumos.org/license/CDDL.
+\
+
+\
+\ Copyright 2019 Joyent, Inc.
+\ Copyright 2022 MNX Cloud, Inc.
+\
+
+2 brandX ! 1 brandY ! \ Initialize brand placement defaults
+
+: brand+ ( x y c-addr/u -- x y' )
+ 2swap 2dup at-xy 2swap \ position the cursor
+ type \ print to the screen
+ 1+ \ increase y for next time we're called
+;
+
+: brand ( x y -- ) \ "triton" [wide] logo in B/W (7 rows x 42 columns)
+
+ 0 1 1 0 0 s" /boot/triton-logo.png" fb-putimage if 2drop exit then
+
+ s" " brand+
+ s" ##### #### # ##### ### # # " brand+
+ s" # # # # # # # ## # " brand+
+ s" # #### # # # # # # # " brand+
+ s" # # # # # # # # ## " brand+
+ s" # # # # # # # # ## " brand+
+ s" # # # # # ### # # TM " brand+
+
+ 2drop
+;