summaryrefslogtreecommitdiff
path: root/components/finsh/shell.c
AgeCommit message (Collapse)Author
2026-05-07fix(finsh): reset line state on overflowAFWEF_147
2026-04-09[finsh][shell] Print FinSH prompt with a fixed format stringCopilot
2025-11-22finsh: replace str/mem functions with rt-prefixed versionsliuyucai
Replace standard string and memory functions with RT-Thread's rt-prefixed equivalents where available: - strcpy -> rt_strcpy - strncpy -> rt_strncpy - strcmp -> rt_strcmp - strncmp -> rt_strncmp - strlen -> rt_strlen - strstr -> rt_strstr - memcpy -> rt_memcpy - memcmp -> rt_memcmp Functions like strcat, strchr remain unchanged as RT-Thread does not provide rt-prefixed versions.
2025-09-28[Feature][Shell] 增加对 Home、Insert、Delete 和 End ↵蒙蒙plus
键的支持,改进输入模式处理 (#10595)
2025-08-06[update] <components>:finsh/shell.cliuyucai
添加以下功能(需要kconfig使能FINSH_USING_WORD_OPERATION) 1 ctrl+back 按单词删除 2 ctrl+左右箭头 按单词切换光标 Signed-off-by: Yucai Liu <[email protected]>
2025-07-20[Fix] <components>:finsh/shell.c F: char rt_hw_console_getchar(void) (#10345)ricky
[Fix] <components>:finsh/shell.c When using char rt_hw_console_getchar(void), some compilers may default to returning 255 instead of the expected -1, causing the condition if(ch < 0) at F: shell.c L:519 to fail and enter an erroneous loop. Solution: Use the signed char type return value as rt_hw_console_getchar Signed-off-by: Yucai Liu <[email protected]>
2025-05-21Update shell.c LTreeshu
To enhance the robustness of key recognition and solve the problem of errors and omissions caused by the lag of state assignment statement 增强方向键识别的鲁棒性,解决状态赋值语句滞后带来的错漏问题
2025-02-15doxygen: add prefix for groups (#9991)Chen Wang
* doxygen: add prefix for groups Add "group_" prefix to doxygen group names. This makes it easier to grep with group name later. This patch only modifies the groups defined in the pathes of INPUT of documentation/Doxyfile: INPUT = . \ ../src \ ../include \ ../components/finsh \ ../components/drivers/include/drivers \ ../components/drivers/clk \ ../components/dfs/dfs_v2/src \ ../components/dfs/dfs_v2/include Other groups are not touched. Signed-off-by: Chen Wang <[email protected]> * ci: fixed error report when run file_check.py Such as: - "please delete extra space at the end of this line." - "the RT-Thread error code should return negative value. e.g. return -RT_ERROR" Signed-off-by: Chen Wang <[email protected]> --------- Signed-off-by: Chen Wang <[email protected]>
2024-11-04[components][finsh]在RT_USING_POSIX_STDIO时,使用get_console获取当� ↵liuchao
�console描述符
2024-03-27[msh] solve data access bugs and fix shell.c strcat()Meco Man
When using musl libc's strcat, strcat itself will cause system crash.
2024-03-22[finsh] feat: add finsh thread entry hookShell
Signed-off-by: Shell <[email protected]>
2024-01-02fix some -Wmissing-prototypes warningsMeco Man
2023-09-27【msh】新增msh自动补全子选项特性 (#8086)wangqinglin
2023-01-20Fix the comment in finsh_set_prompt_mode褚仕成
2022-12-11[rtdef] use lower-case to define attributes (#6728)Man, Jianting (Meco)
* [rtdef] rename RT_WEAK attribute as rt_weak * [rtdef] rename RT_USED attribute as rt_used * [rtdef] rename RT_SECTION attribute as rt_section * [rtdef] rename ALIGN attribute as rt_align * [legacy] add RT_USED ALIGN RT_SECTION RT_WEAK as legacy support
2022-07-01[finsh]修复使用finsh_set_prompt重定向了msh提示符的名称后,� ↵Meco Man
�径功能没有的问题
2022-05-19[simulator] 消除windows下的警告Meco Man
2022-04-20uniform code writing-disable interruptthewon86
2022-03-15[update] fix finsh bug (#5676)LiuKang
* [update] fix finsh bug * [update] format code
2022-01-14updateMeco Man
2022-01-14[update] move dfs_posix.h to legacy/dfs/dfs_posix.hliukangcc
2022-01-09[core] 使用rt_memcpy rt_memset代替memcpy memsetMeco Man
2022-01-05add RT_USING_POSIX_STDIOMeco Man
2021-11-24revise RT_USING_POSIX_STDIO to RT_USING_POSIX_DEVIOMeco Man
2021-11-16[dfs] move dfs backMeco Man
2021-11-07add RT_USING_POSIX_STDIOMeco Man
2021-10-27[finsh] Fix formatting issuesguo
2021-10-27[libc][posix] 解决RT_LIBC_USING_FILEIO范围过大的问题Meco Man
2021-10-26[posix][libc] 优化libc中posix结构Meco Man
2021-10-21[posix][dfs] move dfs_posix dfs_poll dfs_select.c to posix folderMeco Man
2021-10-13[shell] improve finsh_getcharMeco Man
2021-10-14[update] fix finsh_getchar() 未对 shell->device 为空处理的问题liukangcc
2021-08-23Remove C Style Command Shell马志远
2021-08-21[finsh] 将finsh_getchar函数暴露出来Meco Man
2021-06-13将defined(__CC_ARM) || defined(__CLANG_ARM) 改为 ifdef __ARMCC_VERSIONMeco Man
2021-06-12[errno][libc] 解决sys头文件在libc未开启时的引入问题Meco Man
2021-03-26[components][finsh] add support for tasking toolchaincrazt
2021-03-08[compoenets] auto & manual formattedMeco Man
2020-07-24[update] function must have parameterchenchaoqun
2019-12-07fix spelling mistake in the comments of shell.cJingsai Lu
2019-09-25[components][finsh] Decouple RT_USING_DEVICE dependency for msh featurechenyong
Signed-off-by: chenyong <[email protected]>
2019-07-19[finsh] Fix the compile error when only using msh mode on x86_64 platform.armink
2019-06-18fix kernel and framework no cast type errortyustli
2019-05-29Update shell.cloogg
2019-05-29Update shell.cloogg
2019-04-03remove finsh get char error printZYH
2019-03-23[components]add rt_device_ops for adc device and fix finsh_getchar() return ↵misonyo
wrong value in Big-endian status.
2019-03-13[components/shell] shell will not work if ch is none zero as random value in ↵misonyo
stack The serial getchar will only modify the LSB of ch, the MSB 3 bytes will be unchanged as the random value on stack, so if MSB 3 bytes not zero, the value got is wrong.
2019-03-10[finsh] change return type of finsh_getchar from ch to intgbcwbz
finsh_getchar invokes getchar, who's return type is int, and return value may < 0, which means error occurred or EOF. finsh should handle that situation properly, and inform user about the error.
2018-11-07[finsh/shell] compatible definition for cube package[email protected]