提交 0b5641e3 编写于 作者: B bernard.xiong

add backspace for hyper terminal

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@134 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 34f3f253
......@@ -311,9 +311,9 @@ void finsh_thread_entry(void* parameter)
/*
* handle backspace key
*/
if (ch == 0x7f)
if (ch == 0x7f || ch == 0x08)
{
if (pos != 0) rt_kprintf("%c", ch);
if (pos != 0)rt_kprintf("%c", ch);
line[pos--] = 0;
if (pos < 0) pos = 0;
continue;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册