-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shell_read中使用getchar获取键盘输入,显示Command is too long #178
Comments
要看看你的具体实现,还有是什么平台 |
有windows平台得实现吗。基于mingw32 |
我遇到了一样的问题。ARM64 R52平台,使用的工具链是 gcc-arm-none-eabi-10.3-2021.10/lib/gcc/arm-none-eabi/10.3.1 。
|
你好,邮件已收到,谢谢!
|
怎么感觉是终端在协商发的数据,换个终端试试 |
换了SSCOM,还是有这个问题。正常打开串口怎么会协商数据呢?之前用的mobaxtrem,终端类型选择的是xtrem,换成其他类型还是一样的。 h����@Q?������������t=?����e����@Q?������������t=?����l����@Q?������������t=?����p����@Q?������������t=?����
Command List:
clear CMD -------- clear console
keys � � � � � � � � � � � � � � � � � �CMD -�-�-�-�-�-�-�-� list all key
vars � � � � � � � � � � � � � � � � � �CMD -�-�-�-�-�-�-�-� list all var
cmds � � � � � � � � � � � � � � � � � �CMD -�-�-�-�-�-�-�-� list all cmd
users � � � � � � � � � � � � � � � � �CMD -�-�-�-�-�-�-�-� list all user
help � � � � � � � � � � � � � � � � � �CMD -�-�-�-�-�-�-�-� show command info
help [cmd]
setVar � � � � � � � � � � � � � � � �CMD -�-�-�-�-�-�-�-� set var
se1000-rp:/$
se1000-rp:/$ h����@Q?������������t=?����e����@Q?������������t=?����l����@Q?������������t=?����p����@Q?������������t=?���� ����@Q?������������t=?����c����@Q?������������t=?����l����@Q?������������t=?����e����@Q?������������t=?����a����@Q?������������t=?����r����@Q?������������t=?����
command help of clear
clear console
se1000-rp:/$
se1000-rp:/$ �����@Q?������������t=?���������@Q?������������t=?���� |
看起来命令是已经执行了的,可以切换一下二级制模式,看看这些乱码的内容是什么 |
我把RT-Thread的Finsh移植过去,测试是正常的,应该和平台没有关系了。可能是letter-shell内部bug se1000-rp>
se1000-rp>
se1000-rp>help
RT-Thread shell commands:
version - show RT-Thread version information
clear - clear the terminal screen
help - RT-Thread shell help.
se1000-rp>version
msh demo
se1000-rp>
|
大佬您好,请问一下我在shell_read中使用getchar获取键盘输入,能够正常初始化打印出初始化界面,然后就开始一直打印菱形问号,显示Command is too long,此时从键盘无法获取正常输入,这是什么原因呢?
The text was updated successfully, but these errors were encountered: