|
|
@ -273,11 +273,17 @@ bool process_terminal(uint16_t keycode, keyrecord_t *record) {
|
|
|
|
disable_terminal();
|
|
|
|
disable_terminal();
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ((keycode >= QK_MOD_TAP && keycode <= QK_MOD_TAP_MAX) || (keycode >= QK_LAYER_TAP && keycode <= QK_LAYER_TAP_MAX)) {
|
|
|
|
|
|
|
|
keycode = keycode & 0xFF;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (keycode < 256) {
|
|
|
|
if (keycode < 256) {
|
|
|
|
uint8_t str_len;
|
|
|
|
uint8_t str_len;
|
|
|
|
char char_to_add;
|
|
|
|
char char_to_add;
|
|
|
|
switch (keycode) {
|
|
|
|
switch (keycode) {
|
|
|
|
case KC_ENTER:
|
|
|
|
case KC_ENTER:
|
|
|
|
|
|
|
|
case KC_KP_ENTER:
|
|
|
|
push_to_cmd_buffer();
|
|
|
|
push_to_cmd_buffer();
|
|
|
|
current_cmd_buffer_pos = 0;
|
|
|
|
current_cmd_buffer_pos = 0;
|
|
|
|
process_terminal_command();
|
|
|
|
process_terminal_command();
|
|
|
|