vere: comments-out unused ansi input sequences

This commit is contained in:
Joe Bryan 2020-09-11 00:29:58 -07:00
parent 4eaffc87b2
commit 00a691dfe2
2 changed files with 15 additions and 13 deletions

View File

@ -183,12 +183,14 @@
/* u2_utfo: unix terminfo strings.
*/
typedef struct {
struct {
uv_buf_t kcuu1_u; // key_up
uv_buf_t kcud1_u; // key_down
uv_buf_t kcub1_u; // key_back
uv_buf_t kcuf1_u; // key_forward
} inn;
// disabled, currently unused
//
// struct {
// uv_buf_t kcuu1_u; // key_up
// uv_buf_t kcud1_u; // key_down
// uv_buf_t kcub1_u; // key_back
// uv_buf_t kcuf1_u; // key_forward
// } inn;
struct {
uv_buf_t clear_u; // clear_screen
uv_buf_t el_u; // clr_bol clear to beginning

View File

@ -169,13 +169,13 @@ u3_term_log_init(void)
// configure input escape sequences
//
// NB: terminfo reports the wrong sequence for arrow keys on xterms.
//
{
uty_u->ufo_u.inn.kcuu1_u = TERM_LIT_BUF("\033[A"); // terminfo reports "\033OA"
uty_u->ufo_u.inn.kcud1_u = TERM_LIT_BUF("\033[B"); // terminfo reports "\033OB"
uty_u->ufo_u.inn.kcuf1_u = TERM_LIT_BUF("\033[C"); // terminfo reports "\033OC"
uty_u->ufo_u.inn.kcub1_u = TERM_LIT_BUF("\033[D"); // terminfo reports "\033OD"
}
// disabled, currently unused
// {
// uty_u->ufo_u.inn.kcuu1_u = TERM_LIT_BUF("\033[A"); // terminfo reports "\033OA"
// uty_u->ufo_u.inn.kcud1_u = TERM_LIT_BUF("\033[B"); // terminfo reports "\033OB"
// uty_u->ufo_u.inn.kcuf1_u = TERM_LIT_BUF("\033[C"); // terminfo reports "\033OC"
// uty_u->ufo_u.inn.kcub1_u = TERM_LIT_BUF("\033[D"); // terminfo reports "\033OD"
// }
// Load old terminal state to restore.
//