Ignore:
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>
    42 * All rights reserved.
    53 *
    64 * 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:
    96 *
    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.
    179 *
    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.
    2829 */
    2930
     
    3132#include <stdlib.h>
    3233#include <str.h>
    33 #include <fmtutil.h>
    3434
    3535#include "config.h"
     
    130130static void help_survival(void)
    131131{
    132         print_wrapped_console(
    133             "Don't panic!\n\n"
     132        printf("Don't panic!\n\n");
    134133
    135             "This is Bdsh, the Brain dead shell, currently "
     134        printf("This is Bdsh, the Brain dead shell, currently "
    136135            "the primary user interface to HelenOS. Bdsh allows you to enter "
    137136            "commands and supports history (Up, Down arrow keys), "
    138137            "line editing (Left Arrow, Right Arrow, Home, End, Backspace), "
    139138            "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");
    141140
    142             "The most basic filesystem commands are Bdsh builtins. Type "
     141        printf("The most basic filesystem commands are Bdsh builtins. Type "
    143142            "'help commands' [Enter] to see the list of Bdsh builtin commands. "
    144143            "Other commands are external executables located in the /app and "
    145144            "/srv directories. Type 'ls /app' [Enter] and 'ls /srv' [Enter] "
    146145            "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");
    148147
    149             "HelenOS has virtual consoles (VCs). You can switch between "
    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");
    151150
    152             "This is but a small glimpse of what you can do with HelenOS. "
     151        printf("This is but a small glimpse of what you can do with HelenOS. "
    153152            "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");
    156154}
    157155
Note: See TracChangeset for help on using the changeset viewer.