on master help sign in
add back in tab support
commit451b12eee9e743271fee83ea6819e4f1839fb874 authorCorey O'Connor <corey@ooyala.com> dateThu 16 Jan 2014, 00:16 (13 years ago) parent7b97c7a
2 files changed+3−1
cbits/set_term_timing.c+1−1 src/Graphics/Vty/Input/Terminfo.hs+2
cbits/set_term_timing.c+1−1
@@ -9,5 +9,5 @@ void vty_set_term_timing(int fd)
99 tcgetattr(fd, &trm);
1010 trm.c_cc[VMIN] = 0;
1111 trm.c_cc[VTIME] = 0;
12− tcsetattr(fd, TCSANOW, &trm);
12+ tcsetattr(fd, TCSANOW, &trm);
1313}
src/Graphics/Vty/Input/Terminfo.hs+2
@@ -87,6 +87,8 @@ special_support_keys =
8787 , ("\DEL",EvKey KBS []), ("\ESC\DEL",EvKey KBS [MMeta])
8888 -- Special support for Enter
8989 , ("\ESC\^J",EvKey KEnter [MMeta]), ("\^J",EvKey KEnter [])
90+ -- explicit support for tab
91+ , ("\t", EvKey KChar '\t' []
9092 ]
9193
9294-- | classify table directly generated from terminfo cap strings