mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-03 11:20:57 +08:00
This removes the carriage return printed before the shell prompt as it can cause other output to be overwritten unexpectedly. This was discovered when using the "cat" shell command on a file whose content contained no trailing \n\r and was short enough to be entirely swallowed by the prompt.
Shell
This directory contains a shell user extension primary features:
- create a user shell terminal task.
This code has not been extensively tested. It is provided as a tool for RTEMS users to open more shell terminal. Suggestions and comments are appreciated.
NOTES:
-
printf() & getchar() works but you can't use 0,1,2 like fildes. You need to use fileno(stdin),fileno(stdout),...
-
You only need a termios dev to start a new session, add your new commands and enjoy it.
-
Telnetd daemon uses this (browse libnetworking/rtems_telnetd) Enjoy it.
FUTURE:
- Adding new commands in cmds.c to give file manegement to shell.