瀏覽代碼

Fix Home, End behaviour on real console

git-svn-id: https://klish.googlecode.com/svn/trunk@464 0eaa4687-2ee9-07dd-09d9-bcdd2d2dd5fb
Serj Kalichev 13 年之前
父節點
當前提交
9b570819d7
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      tinyrl/vt100/vt100.c

+ 2 - 0
tinyrl/vt100/vt100.c

@@ -18,7 +18,9 @@ static vt100_decode_t cmds[] = {
 	{"[C", tinyrl_vt100_CURSOR_RIGHT},
 	{"[D", tinyrl_vt100_CURSOR_LEFT},
 	{"[H", tinyrl_vt100_HOME},
+	{"[1~", tinyrl_vt100_HOME},
 	{"[F", tinyrl_vt100_END},
+	{"[4~", tinyrl_vt100_END},
 	{"[2~", tinyrl_vt100_INSERT},
 	{"[3~", tinyrl_vt100_DELETE},
 	{"[5~", tinyrl_vt100_PGUP},