Lines Matching refs:mod
7 void vterm_input_push_char(VTerm *vt, VTermModifier mod, uint32_t c) in vterm_input_push_char() argument
13 mod &= ~VTERM_MOD_SHIFT; in vterm_input_push_char()
17 else if(mod == VTERM_MOD_SHIFT) in vterm_input_push_char()
18 mod = 0; in vterm_input_push_char()
20 if(mod == 0) { in vterm_input_push_char()
44 if(needs_CSIu && (mod & ~VTERM_MOD_ALT)) { in vterm_input_push_char()
45 vterm_push_output_sprintf_ctrl(vt, C1_CSI, "%d;%du", c, mod+1); in vterm_input_push_char()
49 if(mod & VTERM_MOD_CTRL) in vterm_input_push_char()
52 vterm_push_output_sprintf(vt, "%s%c", mod & VTERM_MOD_ALT ? "\e" : "", c); in vterm_input_push_char()
129 void vterm_input_push_key(VTerm *vt, VTermModifier mod, VTermKey key) in vterm_input_push_key() argument
134 if((key == VTERM_KEY_ENTER || key == VTERM_KEY_BACKSPACE) && mod == VTERM_MOD_SHIFT) in vterm_input_push_key()
135 mod = 0; in vterm_input_push_key()
163 if(mod == VTERM_MOD_SHIFT) in vterm_input_push_key()
165 else if(mod & VTERM_MOD_SHIFT) in vterm_input_push_key()
166 vterm_push_output_sprintf_ctrl(vt, C1_CSI, "1;%dZ", mod+1); in vterm_input_push_key()
180 if(mod & (VTERM_MOD_SHIFT|VTERM_MOD_CTRL)) in vterm_input_push_key()
181 vterm_push_output_sprintf_ctrl(vt, C1_CSI, "%d;%du", k.literal, mod+1); in vterm_input_push_key()
183 vterm_push_output_sprintf(vt, mod & VTERM_MOD_ALT ? "\e%c" : "%c", k.literal); in vterm_input_push_key()
187 if(mod == 0) in vterm_input_push_key()
194 if(mod == 0) in vterm_input_push_key()
197 vterm_push_output_sprintf_ctrl(vt, C1_CSI, "1;%d%c", mod + 1, k.literal); in vterm_input_push_key()
201 if(mod == 0) in vterm_input_push_key()
204 vterm_push_output_sprintf_ctrl(vt, C1_CSI, "%d;%d%c", k.csinum, mod + 1, k.literal); in vterm_input_push_key()