Home | History | Annotate | Download | only in doc

Lines Matching full:command

251 wanted a fast way to interact. As a result, I chose a simple command line
335 Now EXT2ED contained basically three command line operations:
381 Command line analyzing was primitive back then - A simple switch, as far as
495 A list of command names.
501 A list of pointers to functions, which binds each command to its
515 <Literal remap="tt">struct&lowbar;command</Literal>:
553 I redesigned the program flow control. Up to now, I analyzed the user command
578 <Literal remap="tt">general command</Literal>, selectable from a list of general commands which was
579 always available, or a <Literal remap="tt">type specific command</Literal>, selectable from a list of
581 user was editing. The special <Literal remap="tt">type specific command</Literal> "knew" how to
600 Ask the user for a command line.
606 Analyze the user command - Separate it into <Literal remap="tt">command</Literal> and
613 Trace the list of known objects to match the command name to a type.
621 If the command is not type specific, try to find it in the general
628 If the command is not found, issue a short error message, and return
635 Note the <Literal remap="tt">order</Literal> of the above steps. In particular, note that a command
636 is first assumed to be a type-specific command and only if this fails, a
637 general command is searched. The "<Literal remap="tt">side-effect</Literal>" (main effect, actually)
639 type specific command, and one that is a general command, the dispatching
640 algorithm will call the <Literal remap="tt">type specific command</Literal>. This allows
641 <Literal remap="tt">overriding</Literal> of a command to provide <Literal remap="tt">fine-tuned</Literal> operation.
642 For example, the <Literal remap="tt">show</Literal> command is overridden nearly everywhere,
659 char command [80];
661 parse_word (command_line,command);
663 if (strcmp (command,"quit")==0) return (1);
665 /* 1. Search for type specific commands FIRST - Allows overriding of a general command */
669 if (strcmp (command,current_type-&#62;type_commands.names [i])==0) {
679 if (strcmp (command,ext2_commands.names [i])==0) {
690 if (strcmp (command,general_commands.names [i])==0) {
697 wprintw (command_win,"Error: Unknown command\n");
912 The user interaction is command line based - The user enters a command
913 line, which consists of a <Literal remap="tt">command</Literal> and of <Literal remap="tt">arguments</Literal>. This fits
914 nicely with the program flow control described earlier - The <Literal remap="tt">command</Literal>
983 Command window.
997 The user interaction is done in the <Literal remap="tt">command window</Literal>. The user enters a
998 <Literal remap="tt">command line</Literal>, feedback is usually displayed there, and then relevant
1013 command. Then an explicit refresh command is required. As explained before,
1015 the command window, <Literal remap="tt">refresh&lowbar;command&lowbar;win ()</Literal> is used.
1026 command line interface. It provides a nice package of <Literal remap="tt">command line editing
1031 <Literal remap="tt">command history</Literal>, and can be called later by whatever means that the
1032 readline package provides. Command completion is also supported - When the
1033 user enters a partial command name, EXT2ED will provide the readline library
1121 Sometimes, however, I call the explicit command directly, without passing
1128 This is used, for example, in the interaction between the global cd command
1129 and the dir object specific cd command. You will see there that in order
1130 to implement the "entire" cd command, the type specific cd command uses both
1153 inode is needed - The file command is available only when editing an
1154 inode. When the file command is issued, the handling function (found,
1160 command will fail - The above data structure will not be initialized
1168 <Title>A very simplified overview of a typical command handling function</Title>
1187 The prototype of the handling function of the command <Literal remap="tt">next</Literal> of
1205 general command <Literal remap="tt">super</Literal> results in calling:
1235 command is handled differently, but the following frame is typical:
1241 Parse command line arguments and analyze them. Return with an error
1262 Sometimes <Literal remap="tt">dispatch</Literal> to the object's <Literal remap="tt">show</Literal> command to
1395 using a user command, to prevent accidental user mistakes.
1401 When <Literal remap="tt">init</Literal> is finished, it dispatches the <Literal remap="tt">help</Literal> command in order
1467 Addition of a user command is done through the <Literal remap="tt">add&lowbar;user&lowbar;command</Literal>
1476 <Literal remap="tt">struct&lowbar;commands</Literal>, a desired name for the command which will be used by
1477 the user to identify the command, a short description which is utilized by the
1479 <Literal remap="tt">dispatch</Literal> decides that this command was requested.
1483 The <Literal remap="tt">add&lowbar;user&lowbar;command</Literal> is a <Literal remap="tt">low level function</Literal> used in the three
1550 When the general command <Literal remap="tt">setdevice</Literal> is used to open a device, some
1652 The <Literal remap="tt">parser</Literal> function, which reads the command line from the
1654 last-command buffer.
1668 The <Literal remap="tt">complete&lowbar;command</Literal> function, which is used by the readline
1669 library for command completion. It scans the available commands at
1685 <XRef LinkEnd="flow-control">. Its task is to pass control to the proper command
1686 handling function, based on the command line's command.
1743 <Literal remap="tt">refresh&lowbar;command&lowbar;win</Literal>.
1748 <Literal remap="tt">ncurses refresh command</Literal>. In order to provide to <Literal remap="tt">scrolling</Literal> in
1865 command should be issued to make the changes active in the disk.
1990 The help command is handled by the function <Literal remap="tt">help</Literal>. The algorithm is as
2000 Check the command line arguments. If there is an argument, pass
2002 help on the specific command.
2031 <Title>The setdevice command</Title>
2044 Parse the command line argument. If it isn't available report the
2110 command.
2157 The general command version of <Literal remap="tt">show</Literal> is handled by the <Literal remap="tt">show</Literal>
2158 function. This command is overridden by various objects to provide a display
2163 The general show command will format the data in <Literal remap="tt">type&lowbar;data</Literal> according
2190 explicit <Literal remap="tt">writedata</Literal> command to the disk. The <Literal remap="tt">write&lowbar;data</Literal>
2195 The <Literal remap="tt">set</Literal> command is used for changing the data.
2222 If the current type is not NULL, the The <Literal remap="tt">next</Literal> and <Literal remap="tt">prev</Literal> command
2247 <Title>The super command</Title>
2250 The super command just "brings the user" to the main superblock and set the
2269 copy, dispatching a <Literal remap="tt">setoffset</Literal> command to reach the superblock, and
2271 This last command will also call the <Literal remap="tt">show</Literal> command of the
2272 <Literal remap="tt">ext2&lowbar;super&lowbar;block</Literal> type, through dispatching at the general command
2279 <Title>The group command</Title>
2282 The group command will bring the user to the specified group descriptor in
2307 the use of the <Literal remap="tt">entry</Literal> command, which is a command of the
2314 <Title>The cd command</Title>
2317 The <Literal remap="tt">cd</Literal> command performs the usual cd function. The path to the global
2318 cd command is a path from <Literal remap="tt">/</Literal>.
2364 blocks inode. A <Literal remap="tt">next</Literal> is command to pass to the root directory inode,
2365 a <Literal remap="tt">dir</Literal> command "enters" the directory, and then we let the <Literal remap="tt">object
2366 specific cd command</Literal> to take us from there (The object is <Literal remap="tt">dir</Literal>, so
2367 that <Literal remap="tt">dispatch</Literal> will call the <Literal remap="tt">cd</Literal> command of the <Literal remap="tt">dir</Literal> type).
2468 <Title>The show command</Title>
2471 The <Literal remap="tt">show</Literal> command is overridden here in order to provide more
2472 information than just the list of variables. A <Literal remap="tt">show</Literal> command will end
2477 The first thing that we do is calling the <Literal remap="tt">general show command</Literal> in
2502 was initialized in the ext2 command <Literal remap="tt">super</Literal>, and is used by the various
2598 general commands of the same name. The <Literal remap="tt">next and prev</Literal> command are just
2631 <Title>The show command</Title>
2634 As usual, the <Literal remap="tt">show</Literal> command is overridden. The implementation is
2636 show command, and add some information in the status window - The contents of
2664 For example, here is the implementation of the <Literal remap="tt">blockbitmap</Literal> command:
2781 The <Literal remap="tt">show</Literal> command is overridden here, and provides a lot of additional
2823 Follows the implementation of the inode's <Literal remap="tt">file</Literal> command:
2899 <Literal remap="tt">setoffset</Literal> command is not internally used. The <Literal remap="tt">buffer</Literal>
3030 The <Literal remap="tt">remember</Literal> command is overridden here and in the <Literal remap="tt">dir</Literal> type -
3041 The <Literal remap="tt">set</Literal> command is overridden, and provides the same functionality
3042 like the usage of the <Literal remap="tt">general set</Literal> command with no type declared. The
3136 <Title>The cd command</Title>
3139 The <Literal remap="tt">cd</Literal> command accepts a relative path, and moves there ...
3182 command to insert the current <Literal remap="tt">inode</Literal> into the object memory.
3193 We then dispatch a <Literal remap="tt">followinode</Literal> command to reach the inode
3194 pointed by the required entry. This command will automatically
3203 dispatch a <Literal remap="tt">dir</Literal> command to "enter the directory", and
3205 dispatching a <Literal remap="tt">cd</Literal> command, with the rest of the path as an
3255 The <Literal remap="tt">show</Literal> command is overridden, and will show the block as a series of