pikasTech / PikaPython

An ultra-lightweight Python interpreter that runs with only 4KB of RAM, zero dependencies. It is ready to use out of the box without any configuration required and easy to extend with C. Similar project: MicroPython, JerryScript.
http://pikapython.com/
MIT License
1.47k stars 134 forks source link

字符输入问题 | 支持左右键移动 REPL 光标 #271

Closed peapodss closed 1 year ago

peapodss commented 1 year ago

1.软件版本 pikascript-core==v1.11.6 PikaStdLib==v1.11.6 PikaStdDevice==v1.11.2 STM32F4==v0.1.1 2.现象 主程序运行 pikaScriptShell(pikaScriptInit());后在串口工具上面输入命令,如果一次性输入完整的命令,则可以正确运行,比如print("hello"),输入过程中不能有错,不能移动光标修改字符,不能使用删除键, 否则即便最终输入字符串是print("hello"),也会出现报错提示格式错误

pikasTech commented 1 year ago

目前删除键是支持的,左右键还不支持

pikasTech commented 1 year ago

https://github.com/pikasTech/pikascript/commit/3764c638f455cd28ecde9f78f9b89b05ed513a53 左右键已经支持了 等待内核和标准库 v1.11.7 发布或者使用 latest 版本可以测试