Explorar el Código

Move welcome text to shell

Weiyi Lou hace 10 años
padre
commit
c8dfb11025
Se han modificado 2 ficheros con 9 adiciones y 10 borrados
  1. 1 9
      index.html
  2. 8 1
      js/pgsh.js

+ 1 - 9
index.html

@@ -13,14 +13,6 @@
     <script>riot.mount('terminal')</script>
   </head>
   <body>
-    <terminal shell='pgsh' welcome='
-    Linux parsleygardens.net 3.4.5-6-7-i286 #8 PGS Vimputer 3.4.56-7 i286
-
-    ~ Welcome to Parsley Gardens! ~
-    "He maketh me to lie down in green pa..."
-
-    Enter "help" for list of commands
-
-    '></terminal>
+    <terminal shell='pgsh'></terminal>
   </body>
 </html>

+ 8 - 1
js/pgsh.js

@@ -1,6 +1,13 @@
 function pgsh() {
   this.prompt = '<span style="color:purple">pgs </span><span style="color:green">$ </span>'
-  this.welcome = ''
+  this.welcome = '\
+Linux parsleygardens.net 3.4.5-6-7-i286 #8 PGS Vimputer 3.4.56-7 i286 \n\
+\n\
+~ Welcome to Parsley Gardens! ~\n\
+"He maketh me to lie down in green pa..."\n\
+\n\
+Enter "help" for list of commands\n\
+\n'
   this.commands = {
     'about': {
       'help': 'Author Information\nUsage: about',