Changes in uspace/app/bdsh/cmds/modules/help/help.c [25c1b2c:4deb8b5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/help/help.c
r25c1b2c r4deb8b5 1 /* 2 * Copyright (c) 2008 Tim Post 3 * Copyright (c) 2011 Martin Sucha 1 /* Copyright (c) 2008, Tim Post <tinkertim@gmail.com> 4 2 * All rights reserved. 5 3 * 6 4 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: 5 * modification, are permitted provided that the following conditions are met: 9 6 * 10 * - Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * - Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * - The name of the author may not be used to endorse or promote products 16 * derived from this software without specific prior written permission. 7 * Redistributions of source code must retain the above copyright notice, this 8 * list of conditions and the following disclaimer. 17 9 * 18 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 19 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 20 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 21 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 10 * Redistributions in binary form must reproduce the above copyright notice, 11 * this list of conditions and the following disclaimer in the documentation 12 * and/or other materials provided with the distribution. 13 * 14 * Neither the name of the original program's authors nor the names of its 15 * contributors may be used to endorse or promote products derived from this 16 * software without specific prior written permission. 17 * 18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 19 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 22 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28 * POSSIBILITY OF SUCH DAMAGE. 28 29 */ 29 30 … … 31 32 #include <stdlib.h> 32 33 #include <str.h> 33 #include <fmtutil.h>34 34 35 35 #include "config.h" … … 130 130 static void help_survival(void) 131 131 { 132 print_wrapped_console( 133 "Don't panic!\n\n" 132 printf("Don't panic!\n\n"); 134 133 135 134 printf("This is Bdsh, the Brain dead shell, currently " 136 135 "the primary user interface to HelenOS. Bdsh allows you to enter " 137 136 "commands and supports history (Up, Down arrow keys), " 138 137 "line editing (Left Arrow, Right Arrow, Home, End, Backspace), " 139 138 "selection (Shift + movement keys), copy and paste (Ctrl-C, " 140 "Ctrl-V), similar to common desktop environments.\n\n" 139 "Ctrl-V), similar to common desktop environments.\n\n"); 141 140 142 141 printf("The most basic filesystem commands are Bdsh builtins. Type " 143 142 "'help commands' [Enter] to see the list of Bdsh builtin commands. " 144 143 "Other commands are external executables located in the /app and " 145 144 "/srv directories. Type 'ls /app' [Enter] and 'ls /srv' [Enter] " 146 145 "to see their list. You can execute an external command simply " 147 "by entering its name (e.g. type 'tetris' [Enter]).\n\n" 146 "by entering its name (e.g. type 'tetris' [Enter]).\n\n"); 148 147 149 150 "these using the F1-F11 keys.\n\n" 148 printf("HelenOS has virtual consoles (VCs). You can switch between " 149 "these using the F1-F11 keys.\n\n"); 151 150 152 151 printf("This is but a small glimpse of what you can do with HelenOS. " 153 152 "To learn more please point your browser to the HelenOS User's " 154 "Guide: http://trac.helenos.org/wiki/UsersGuide\n\n", 155 ALIGN_LEFT); 153 "Guide: http://trac.helenos.org/trac.fcgi/wiki/UsersGuide\n\n"); 156 154 } 157 155
Note:
See TracChangeset
for help on using the changeset viewer.