forked from Imagelibrary/rtems
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:
@@ -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_time.c shell/main_mknod.c \
|
||||||
shell/main_setenv.c shell/main_getenv.c shell/main_unsetenv.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_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/main_blkstats.c \
|
||||||
shell/shell-wait-for-input.c
|
shell/shell-wait-for-input.c
|
||||||
|
|
||||||
|
|||||||
2259
cpukit/libmisc/shell/main_edit.c
Normal file
2259
cpukit/libmisc/shell/main_edit.c
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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_JOEL_Command;
|
||||||
extern rtems_shell_cmd_t rtems_shell_DATE_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_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_SLEEP_Command;
|
||||||
extern rtems_shell_cmd_t rtems_shell_ID_Command;
|
extern rtems_shell_cmd_t rtems_shell_ID_Command;
|
||||||
extern rtems_shell_cmd_t rtems_shell_TTY_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)
|
defined(CONFIGURE_SHELL_COMMAND_ECHO)
|
||||||
&rtems_shell_ECHO_Command,
|
&rtems_shell_ECHO_Command,
|
||||||
#endif
|
#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) && \
|
#if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
|
||||||
!defined(CONFIGURE_SHELL_NO_COMMAND_SLEEP)) || \
|
!defined(CONFIGURE_SHELL_NO_COMMAND_SLEEP)) || \
|
||||||
defined(CONFIGURE_SHELL_COMMAND_SLEEP)
|
defined(CONFIGURE_SHELL_COMMAND_SLEEP)
|
||||||
|
|||||||
Reference in New Issue
Block a user