shell: Add an editor to the shell.

This is a small (21K on sparc) editor that provides some powerful
features useful when a file needs editing on an embedded
board. No need to copy files off, edit, copy back.
This commit is contained in:
Chris Johns
2014-10-24 16:06:54 -07:00
parent ea9232d016
commit 42c77e9982
3 changed files with 2266 additions and 1 deletions

View File

@@ -109,7 +109,7 @@ libshell_a_SOURCES = shell/cat_file.c shell/cmds.c shell/internal.h \
shell/main_time.c shell/main_mknod.c \
shell/main_setenv.c shell/main_getenv.c shell/main_unsetenv.c \
shell/main_mkrfs.c shell/main_debugrfs.c shell/main_df.c \
shell/main_lsof.c \
shell/main_lsof.c shell/main_edit.c \
shell/main_blkstats.c \
shell/shell-wait-for-input.c

File diff suppressed because it is too large Load Diff

View File

@@ -39,6 +39,7 @@ extern rtems_shell_cmd_t rtems_shell_MMOVE_Command;
extern rtems_shell_cmd_t rtems_shell_JOEL_Command;
extern rtems_shell_cmd_t rtems_shell_DATE_Command;
extern rtems_shell_cmd_t rtems_shell_ECHO_Command;
extern rtems_shell_cmd_t rtems_shell_EDIT_Command;
extern rtems_shell_cmd_t rtems_shell_SLEEP_Command;
extern rtems_shell_cmd_t rtems_shell_ID_Command;
extern rtems_shell_cmd_t rtems_shell_TTY_Command;
@@ -174,6 +175,11 @@ extern rtems_shell_alias_t *rtems_shell_Initial_aliases[];
defined(CONFIGURE_SHELL_COMMAND_ECHO)
&rtems_shell_ECHO_Command,
#endif
#if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
!defined(CONFIGURE_SHELL_NO_COMMAND_EDIT)) || \
defined(CONFIGURE_SHELL_COMMAND_EDIT)
&rtems_shell_EDIT_Command,
#endif
#if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
!defined(CONFIGURE_SHELL_NO_COMMAND_SLEEP)) || \
defined(CONFIGURE_SHELL_COMMAND_SLEEP)