Rev 3366 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3366 | Rev 4605 | ||
---|---|---|---|
1 | Commands that need to modify the running user structure defined in scli.h |
1 | Commands that need to modify the running user structure defined in scli.h |
2 | should reside here. They (will) have a slightly different prototype that |
2 | should reside here. They (will) have a slightly different prototype that |
3 | allows passing the user structure to them for ease of modifications. |
3 | allows passing the user structure to them for ease of modifications. |
4 | 4 | ||
5 | Examples of what should be a built-in and not a module would be: |
5 | Examples of what should be a built-in and not a module would be: |
6 | 6 | ||
7 | cd (cliuser_t->cwd needs to be updated) |
7 | cd (cliuser_t->cwd needs to be updated) |
8 | 8 | ||
9 | In the future, more user preferences will be set via built-in commands, |
9 | In the future, more user preferences will be set via built-in commands, |
10 | such as the formatting of the prompt string (HelenOS doesn't yet have |
10 | such as the formatting of the prompt string (HelenOS doesn't yet have |
11 | an environment, much less PS*, even if it did we'd likely do it a little |
11 | an environment, much less PS*, even if it did we'd likely do it a little |
12 | differently). |
12 | differently). |
13 | 13 | ||
14 | .... etc. |
14 | .... etc. |
15 | 15 | ||
16 | Anything that does _not_ need to use this structure should be included |
16 | Anything that does _not_ need to use this structure should be included |
17 | as a module, not a built in. If you want to include a new command, there |
17 | as a module, not a built in. If you want to include a new command, there |
18 | is a 99% chance that you want it to be a module. |
18 | is a 99% chance that you want it to be a module. |
19 | 19 | ||
20 | 20 | ||
21 | 21 | ||
22 | 22 |