Commit Graph

138 Commits

Author SHA1 Message Date
Bernard Xiong f4248a95c3 [Finsh] Add script feature for msh. 2015-10-11 15:38:08 +08:00
Bernard Xiong 3dc91bf8ab [finsh] Code cleanup. 2015-09-24 20:58:40 +08:00
Bernard Xiong 353f511cb0 [finsh] fix the '\0' issue when use shell in linux telnet 2015-09-24 03:06:26 +00:00
Bernard Xiong 7dfac0f78e rename .name section to .rodata.name section 2015-09-15 12:11:07 +00:00
heyuanjie87 8f9bda579a 定义Timer设备类 2015-09-06 15:18:15 +08:00
heyuanjie87 c84887d021 加入定时器设备 2015-09-02 22:00:24 +08:00
Bernard Xiong cb51bdb245 [finsh] fix compiling warning. 2015-09-02 14:05:38 +08:00
Bernard Xiong 1079727afb [finsh] Add .name section for exported cmd and variables. 2015-09-02 12:07:58 +08:00
Bernard Xiong 340a013f53 [finsh] export system symbol 2015-09-02 11:24:41 +08:00
Bernard Xiong bcb9ab1317 [finsh] Add mkfs command to msh 2015-08-28 15:13:04 +08:00
ardafu 667c03db97 [FINSH] Add macro MSH_CMD_EXPORT_ALIAS 2015-07-31 11:07:54 +08:00
ardafu 084a8dcd0c [finsh] Clear buffer before switching to new shell device 2015-05-22 16:35:01 +08:00
Bernard Xiong 8de629c0b0 [shell] Add FINSH_CMD_SIZE option. 2015-05-18 18:12:17 +08:00
Bernard Xiong 450acd3454 Revert "Add FINSH_CMD_SIZE option."
This reverts commit 326a7d7496.
2015-05-18 18:08:49 +08:00
Bernard Xiong 326a7d7496 Add FINSH_CMD_SIZE option. 2015-05-18 18:08:24 +08:00
Bernard Xiong 37aa44d4f2 Fix compiling warning. 2015-04-24 11:48:25 +08:00
Grissiom 54f8b19e12 SConscript: fix the `--keep` parameter for Keil
The old `--keep` parameter for Keil is wrong. RTFM of Keil and get it
right.
2015-04-14 18:22:46 +08:00
bernard 5b1270455d Fix the echo issue in the shell. 2015-03-20 12:44:58 +08:00
bernard 924264b277 Remove list_mod_detail command from msh. 2015-03-20 12:44:02 +08:00
Grissiom 099ada6699 finsh: open the finsh device with RT_DEVICE_FLAG_STREAM 2015-01-04 19:42:58 +08:00
Grissiom cf692a4ab4 msh: use list_memheap when RT_USING_MEMHEAP_AS_HEAP is enabled
There is no list_mem and only list_memheap when RT_USING_MEMHEAP_AS_HEAP
is enabled.
2014-12-01 18:54:14 +08:00
limxuzheng 4fea46c83c support rx62n 2014-11-12 01:09:43 +08:00
Grissiom 3d584266e5 finsh: allow user to disable the FINSH_USING_HISTORY 2014-10-21 16:01:08 +08:00
Grissiom 4c39f8765a msh: free is only available when HEAP is enabled 2014-10-14 16:07:49 +08:00
Grissiom 23cc390474 msh: check path is non-null in msh_auto_complete_path 2014-10-14 16:07:19 +08:00
bernard 3b5c2e2f9f Merge branch 'master' of https://github.com/RT-Thread/rt-thread 2014-09-11 12:55:18 +08:00
bernard a8b0fe3f36 [shell] Fix compiling issue when DFS is not enable 2014-09-11 12:47:25 +08:00
weety 12136cfeb1 [finsh] fixed finsh issue. 2014-08-26 23:36:16 +08:00
bernard 02faf9edb8 [Finsh] fix device_open issue when set_device in finsh. 2014-07-20 13:57:49 +08:00
bernard c45f5a2490 [Drivers] re-write serial framework. 2014-07-18 06:45:54 +08:00
bernard f44f6caadb [Finsh] Fix command line size issue in finsh. 2014-07-10 13:35:28 +08:00
bernard dcd7974794 [Finsh] Enhance mv command. 2014-06-25 17:23:28 +08:00
Grissiom aca8f8eb2d shell: print the ref count in `list_device` 2014-06-18 11:18:43 +08:00
Bernard Xiong cde9139bc5 [Finsh] Fix '0' token issue. 2014-05-05 13:51:26 +08:00
Grissiom a95370aa56 msh: remove usless ptr set
The ptr is set in the following code. So remove the first one.
2014-04-12 16:57:14 +08:00
Grissiom ec4b865579 finsh: add check on converting octal numbers
The digit in octal numbers should with in 0~7. Check on it in
token_proc_number. This issue is found by Clang.
2014-04-12 16:55:00 +08:00
aozima f61773305a MSH: add cmd netstat. 2014-04-09 13:17:21 +08:00
aozima 4fada1a13a MSH: perfect cmd ifconfig. 2014-04-09 13:16:55 +08:00
Grissiom 841898abe2 [shell] define FINSH_PROMPT as finsh_get_prompt when FINSH_USING_MSH enabled
When MSH enabled, the prompt will change at the two shells. So we should
use dynamic prompt when FINSH_USING_MSH defined.
2014-04-08 15:12:44 +08:00
bernard 8bd3e6f6dc [Kernel] Change command line to const parameter and add system() function. 2014-04-02 14:05:15 +08:00
Grissiom 0979328fb1 [msh] don't complain on empty command
Just branch out and no complain on command length == 0;
2014-03-29 11:33:20 +08:00
Grissiom c44f32e513 [msh] cd to path when possible
When DFS_USING_WORKDIR is enabled, msh will try to chdir if the command
is not found. For example, if there is folder named "SD", and there is
no `SD` command and `SD.mo` module, typing "SD" in msh will cd to the
folder.

In more detail, the execution order right now is:

1. built-in command
2. module
3. cd to path

If you have a folder named "ps", you have to run `cd ps` to change the
working dir.
2014-03-27 16:41:26 +08:00
Grissiom f9659283c0 [msh] try to complete module path
Msh can execute module directly. So try to auto-complete the path when
user press TAB. There is a chance that the path is a module.
2014-03-27 15:09:53 +08:00
bernard 04b5a46179 [Finsh] fix the shell prompt issue. 2014-03-12 16:25:59 +08:00
bernard 444b928d22 Add more command to msh for module. 2014-03-12 08:47:10 +08:00
bernard 33a5abbbf8 [Finsh] Use msh as prompt when current mode is msh mode. 2014-03-11 15:54:21 +08:00
bernard 32a6f5b730 [Finsh] remove the .mo display when command is not found. 2014-02-15 10:28:38 +08:00
bernard 8778e39c9f [Finsh] Add ifconfig command implementation. 2014-02-01 21:35:46 +08:00
bernard ae891e2011 [Finsh] fix strncmp issue in command search 2014-01-16 22:22:23 +08:00
roamboy 1c8693c87e Update msh.c 2014-01-13 15:57:13 +08:00