"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "input-keys.c" between
tmux-3.2.tar.gz and tmux-3.2a.tar.gz

About: tmux is a terminal multiplexer that lets you switch easily between several programs in one terminal.

input-keys.c  (tmux-3.2):input-keys.c  (tmux-3.2a)
skipping to change at line 97 skipping to change at line 97
}, },
{ .key = KEYC_F10, { .key = KEYC_F10,
.data = "\033[21~" .data = "\033[21~"
}, },
{ .key = KEYC_F11, { .key = KEYC_F11,
.data = "\033[23~" .data = "\033[23~"
}, },
{ .key = KEYC_F12, { .key = KEYC_F12,
.data = "\033[24~" .data = "\033[24~"
}, },
{ .key = KEYC_F1|KEYC_SHIFT,
.data = "\033[25~"
},
{ .key = KEYC_F2|KEYC_SHIFT,
.data = "\033[26~"
},
{ .key = KEYC_F3|KEYC_SHIFT,
.data = "\033[28~"
},
{ .key = KEYC_F4|KEYC_SHIFT,
.data = "\033[29~"
},
{ .key = KEYC_F5|KEYC_SHIFT,
.data = "\033[31~"
},
{ .key = KEYC_F6|KEYC_SHIFT,
.data = "\033[32~"
},
{ .key = KEYC_F7|KEYC_SHIFT,
.data = "\033[33~"
},
{ .key = KEYC_F8|KEYC_SHIFT,
.data = "\033[34~"
},
{ .key = KEYC_IC, { .key = KEYC_IC,
.data = "\033[2~" .data = "\033[2~"
}, },
{ .key = KEYC_DC, { .key = KEYC_DC,
.data = "\033[3~" .data = "\033[3~"
}, },
{ .key = KEYC_HOME, { .key = KEYC_HOME,
.data = "\033[1~" .data = "\033[1~"
}, },
{ .key = KEYC_END, { .key = KEYC_END,
skipping to change at line 479 skipping to change at line 455
* if necessary. If it is a UTF-8 key, split it and send it. * if necessary. If it is a UTF-8 key, split it and send it.
*/ */
justkey = (key & ~(KEYC_META|KEYC_IMPLIED_META)); justkey = (key & ~(KEYC_META|KEYC_IMPLIED_META));
if (justkey <= 0x7f) { if (justkey <= 0x7f) {
if (key & KEYC_META) if (key & KEYC_META)
input_key_write(__func__, bev, "\033", 1); input_key_write(__func__, bev, "\033", 1);
ud.data[0] = justkey; ud.data[0] = justkey;
input_key_write(__func__, bev, &ud.data[0], 1); input_key_write(__func__, bev, &ud.data[0], 1);
return (0); return (0);
} }
if (justkey > 0x7f && justkey < KEYC_BASE) { if (KEYC_IS_UNICODE(justkey)) {
if (key & KEYC_META) if (key & KEYC_META)
input_key_write(__func__, bev, "\033", 1); input_key_write(__func__, bev, "\033", 1);
utf8_to_data(justkey, &ud); utf8_to_data(justkey, &ud);
input_key_write(__func__, bev, ud.data, ud.size); input_key_write(__func__, bev, ud.data, ud.size);
return (0); return (0);
} }
/* /*
* Look up in the tree. If not in application keypad or cursor mode, * Look up in the tree. If not in application keypad or cursor mode,
* remove the flags from the key. * remove the flags from the key.
 End of changes. 2 change blocks. 
25 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)