Advertisement
devinteske

logo-tribute.4th

Mar 11th, 2018
1,263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.93 KB | None | 0 0
  1. \ Copyright (c) 2013-2015 Devin Teske <dteske@FreeBSD.org>
  2. \ All rights reserved.
  3. \
  4. \ Redistribution and use in source and binary forms, with or without
  5. \ modification, are permitted provided that the following conditions
  6. \ are met:
  7. \ 1. Redistributions of source code must retain the above copyright
  8. \ notice, this list of conditions and the following disclaimer.
  9. \ 2. Redistributions in binary form must reproduce the above copyright
  10. \ notice, this list of conditions and the following disclaimer in the
  11. \ documentation and/or other materials provided with the distribution.
  12. \
  13. \ THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  14. \ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  15. \ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  16. \ ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  17. \ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  18. \ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  19. \ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  20. \ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  21. \ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  22. \ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. \ SUCH DAMAGE.
  24. \
  25. \ $FreeBSD$
  26.  
  27. 7 logoX ! 2 logoY ! \ Initialize logo placement defaults
  28.  
  29. \ Disable the brand art (we're going to use that space)
  30. set loader_brand="none"
  31.  
  32. \ Blank out the frame of the menu and move the title to left
  33. set loader_menu_title=""
  34. set loader_menu_frame="none"
  35.  
  36. \ Move the menu to the center of the screen
  37. set loader_menu_x="26"
  38. set loader_menu_y="12"
  39. set loader_menu_timeout_x="21"
  40. set loader_menu_timeout_y="24"
  41.  
  42. : qc! ( c-addr/u c -- c-addr/u )
  43. 2 pick 2 pick
  44. begin dup 0> while
  45. over c@ 3 pick = if over [char] " swap c! then
  46. 1- swap 1+ swap
  47. repeat
  48. 2drop drop
  49. ;
  50.  
  51. : logo+ ( x y c-addr/u -- x y' )
  52. 2swap 2dup at-xy 2swap \ position the cursor
  53. [char] @ qc! \ replace @ with "
  54. type \ print to the screen
  55. 1+ \ increase y for next time we're called
  56. ;
  57.  
  58. : logo ( x y -- ) \ color BSD mascot (19 rows x 34 columns)
  59.  
  60. 2 fg b \ bright green
  61. s" ,d b." logo+
  62. s" ,d88] [88b." logo+
  63. s" ,d888P@ ,d88b. @Y888b." logo+
  64. s" , <888P@ ,dP@,db.@Yb. @Y888> ," logo+
  65. s" <88b.~ ,d888 @YP@ 888b. ~,d88>" logo+
  66. s" ,@Y888888P@,db.,db.@Y888888P@," logo+
  67. s" <88b.@YP@ _ @YP@@YP@ _ @YP@,d88>" logo+
  68. s" @Y88b.,dP Yb.,d88P@" logo+
  69. s" @YP@ @YP@" logo+
  70. me
  71.  
  72. 2drop logoX @ logoY @ 2 + swap 35 + swap
  73.  
  74. 2 fg \ green
  75. s" CEO Workstation" logo+
  76. 1+
  77. s" Nakatomi Socrates FreeBSD Tribute" logo+
  78. s" Z-Level Central Core" logo+
  79. 1+
  80. s" Preliminary Clearance Approved." logo+
  81. me
  82.  
  83. \ Distinguish the ``Free'' in ``FreeBSD''
  84. 4 - swap 18 + swap at-xy ." Free"
  85.  
  86. 2drop 0 25 at-xy
  87. ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement