xShell
基于websocket的 Shell ,无需上位机!
增强了pico SDK stdio
driver:puts
,getc
,printf
... 对 stdout的输出会同时转发到uart0 和 websocket(如果已经建立链接)。
- 完全可替代uart0的shell
- 无需连线
PicoXTools的uart0串口,通过websocket(over usb)进行数据交互
xShell是标准的vt100终端较高的兼容性,支持通过ANSI转义码来设置颜色。
主要特点
- 易于扩展
- 命令补全
- 历史记录
具有以下的主要功能:
主要功能。
- 文件系统的操作。
- 系统管理
- 目标MCU烧录
- C语言编译器
- JavaScript解释器
文件系统命令
cat - display a text file
rm - remove a file or directory. -r for recursive
ls - list a directory, -a to show hidden files
cd - change directory
cp - copy a file
- mkdir - create a directory
mv - rename a file or directory
pwd - display a text file
- fs_sync - sync FatFs between usb disk
- format - format the filesystem
- mount - mount the filesystem
- unmount - unmount the filesystem
- status - display the filesystem status
系统管理
clear - clear the screen
cc - compile & run C source file. cc -h for help
quit - shutdown the system
- reboot - restart the system
- resize - establish screen dimensions
- version - display pico shell's version
vi - edit file(s) with vi
yput - put a file (ymodem)
dbg - set debugger output flag