Subversion Repositories HelenOS

Rev

Rev 3269 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3269 Rev 3275
Line 123... Line 123...
123
    int i = 0;
123
    int i = 0;
124
 
124
 
125
    if (cli_init(&usr))
125
    if (cli_init(&usr))
126
        exit(EXIT_FAILURE);
126
        exit(EXIT_FAILURE);
127
 
127
 
-
 
128
    printf("Welcome to %s - %s\nType `help' at any time for usage information.\n",
-
 
129
        progname, PACKAGE_STRING);
-
 
130
 
128
    while (!cli_quit) {
131
    while (!cli_quit) {
129
        cli_set_prompt(&usr);
132
        cli_set_prompt(&usr);
130
        get_input(&usr);
133
        get_input(&usr);
131
        if (NULL != usr.line) {
134
        if (NULL != usr.line) {
132
            cli_verbose("Sending %s to tokenizer", usr.line);
-
 
133
            ret = tok_input(&usr);
135
            ret = tok_input(&usr);
134
            usr.lasterr = ret;
136
            usr.lasterr = ret;
135
        }
137
        }
136
        i++;
138
        i++;
137
    }
139
    }