summaryrefslogtreecommitdiffstats
path: root/quantum/process_keycode/process_terminal.h
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2017-09-12 06:43:10 +0200
committerGitHub <noreply@github.com>2017-09-12 06:43:10 +0200
commit7ad924bae5519e981c57495e481db62741aa4376 (patch)
treee07575ee363f68b70579cda8e54eebcbd55d4127 /quantum/process_keycode/process_terminal.h
parenta4ff8b91f74df9fb1d87f52c0ded23935344d2eb (diff)
downloadqmk_firmware-7ad924bae5519e981c57495e481db62741aa4376.tar.gz
qmk_firmware-7ad924bae5519e981c57495e481db62741aa4376.tar.xz
Updates send_string functionality, adds terminal feature (#1657)
* implement basic terminal stuff * modify send_string to read normal strings too * add files bc yeah. working pgm detected * pgm detection apparently not working * adds send string keycodes, additional keycode support in send string * implement arguments * [terminal] add help command * [terminal] adds keycode and keymap functions * [terminal] adds nop.h, documentation * update macro docs
Diffstat (limited to 'quantum/process_keycode/process_terminal.h')
-rw-r--r--quantum/process_keycode/process_terminal.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/quantum/process_keycode/process_terminal.h b/quantum/process_keycode/process_terminal.h
new file mode 100644
index 000000000..d945949a4
--- /dev/null
+++ b/quantum/process_keycode/process_terminal.h
@@ -0,0 +1,27 @@
+/* Copyright 2017 Jack Humbert
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef PROCESS_TERMINAL_H
+#define PROCESS_TERMINAL_H
+
+#include "quantum.h"
+
+extern const char keycode_to_ascii_lut[58];
+extern const char shifted_keycode_to_ascii_lut[58];
+extern const char terminal_prompt[8];
+bool process_terminal(uint16_t keycode, keyrecord_t *record);
+
+#endif \ No newline at end of file