summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2022-05-31 15:38:08 +1000
committerGitHub <noreply@github.com>2022-05-30 22:38:08 -0700
commit854547330704fb1b1f07d547d49728da8b92b2a3 (patch)
treec2b85397ba3a50e3b93ab44d82de2823cb054c18
parent9e2fe4eff6d36d20aeeea57408216ff329b2bd31 (diff)
Removes terminal from QMK. (#17258)
-rw-r--r--builddefs/common_features.mk6
-rw-r--r--builddefs/show_options.mk1
-rw-r--r--docs/_summary.md1
-rw-r--r--docs/feature_terminal.md107
-rw-r--r--docs/ja/_summary.md1
-rw-r--r--docs/ja/feature_terminal.md112
-rw-r--r--docs/ja/understanding_qmk.md1
-rw-r--r--docs/understanding_qmk.md1
-rw-r--r--docs/zh-cn/_summary.md1
-rw-r--r--keyboards/40percentclub/mf68/keymaps/delivrance/rules.mk1
-rwxr-xr-xkeyboards/ckeys/handwire_101/keymaps/default/keymap.c8
-rwxr-xr-xkeyboards/ckeys/handwire_101/rules.mk1
-rw-r--r--keyboards/contra/keymaps/default/keymap.c2
-rw-r--r--keyboards/delikeeb/vaneela/keymaps/default/keymap.c2
-rw-r--r--keyboards/delikeeb/vaneela/keymaps/via/keymap.c2
-rw-r--r--keyboards/dm9records/plaid/keymaps/default/keymap.c2
-rw-r--r--keyboards/fractal/keymaps/default/keymap.c2
-rw-r--r--keyboards/handwired/ortho_brass/keymaps/default/keymap.c2
-rw-r--r--keyboards/handwired/riblee_f401/keymaps/default/keymap.c2
-rw-r--r--keyboards/handwired/riblee_f411/keymaps/default/keymap.c2
-rw-r--r--keyboards/handwired/rs60/keymaps/default/keymap.c2
-rw-r--r--keyboards/handwired/terminus_mini/keymaps/default/keymap.c2
-rw-r--r--keyboards/keycapsss/o4l_5x12/keymaps/default/keymap.c2
-rw-r--r--keyboards/massdrop/alt/keymaps/pregame/rules.mk1
-rw-r--r--keyboards/massdrop/ctrl/keymaps/endgame/rules.mk1
-rw-r--r--keyboards/massdrop/ctrl/keymaps/matthewrobo/rules.mk1
-rw-r--r--keyboards/massdrop/ctrl/keymaps/xanimos/rules.mk1
-rw-r--r--keyboards/mlego/m48/keymaps/default/keymap.c8
-rw-r--r--keyboards/planck/keymaps/default/keymap.c2
-rw-r--r--keyboards/planck/keymaps/roguepullrequest/rules.mk1
-rw-r--r--keyboards/planck/keymaps/rootiest/rules.mk3
-rw-r--r--keyboards/planck/keymaps/synth_sample/keymap.c8
-rw-r--r--keyboards/planck/keymaps/synth_wavetable/keymap.c8
-rw-r--r--keyboards/preonic/keymaps/default/keymap.c2
-rw-r--r--keyboards/splitkb/kyria/keymaps/j-inc/rules.mk1
-rw-r--r--keyboards/work_louder/work_board/keymaps/default/keymap.c6
-rw-r--r--quantum/process_keycode/process_terminal.c330
-rw-r--r--quantum/process_keycode/process_terminal.h24
-rw-r--r--quantum/process_keycode/process_terminal_nop.h22
-rw-r--r--quantum/quantum.c3
-rw-r--r--quantum/quantum.h6
-rw-r--r--quantum/quantum_keycodes.h6
-rw-r--r--quantum/quantum_keycodes_legacy.h3
-rw-r--r--users/bcat/rules.mk1
44 files changed, 38 insertions, 663 deletions
diff --git a/builddefs/common_features.mk b/builddefs/common_features.mk
index c976b8296d..631558ef27 100644
--- a/builddefs/common_features.mk
+++ b/builddefs/common_features.mk
@@ -542,12 +542,6 @@ ifeq ($(strip $(LED_TABLES)), yes)
542 SRC += $(QUANTUM_DIR)/led_tables.c 542 SRC += $(QUANTUM_DIR)/led_tables.c
543endif 543endif
544 544
545ifeq ($(strip $(TERMINAL_ENABLE)), yes)
546 SRC += $(QUANTUM_DIR)/process_keycode/process_terminal.c
547 OPT_DEFS += -DTERMINAL_ENABLE
548 OPT_DEFS += -DUSER_PRINT
549endif
550
551ifeq ($(strip $(VIA_ENABLE)), yes) 545ifeq ($(strip $(VIA_ENABLE)), yes)
552 DYNAMIC_KEYMAP_ENABLE := yes 546 DYNAMIC_KEYMAP_ENABLE := yes
553 RAW_ENABLE := yes 547 RAW_ENABLE := yes
diff --git a/builddefs/show_options.mk b/builddefs/show_options.mk
index f67d009191..1c1c189f27 100644
--- a/builddefs/show_options.mk
+++ b/builddefs/show_options.mk
@@ -5,7 +5,6 @@ BUILD_OPTION_NAMES = \
5 CONSOLE_ENABLE \ 5 CONSOLE_ENABLE \
6 COMMAND_ENABLE \ 6 COMMAND_ENABLE \
7 NKRO_ENABLE \ 7 NKRO_ENABLE \
8 TERMINAL_ENABLE \
9 CUSTOM_MATRIX \ 8 CUSTOM_MATRIX \
10 DEBOUNCE_TYPE \ 9 DEBOUNCE_TYPE \
11 SPLIT_KEYBOARD \ 10 SPLIT_KEYBOARD \
diff --git a/docs/_summary.md b/docs/_summary.md
index 11f5e1dd51..78d7f30ea4 100644
--- a/docs/_summary.md
+++ b/docs/_summary.md
@@ -88,7 +88,6 @@
88 * [Swap Hands](feature_swap_hands.md) 88 * [Swap Hands](feature_swap_hands.md)
89 * [Tap Dance](feature_tap_dance.md) 89 * [Tap Dance](feature_tap_dance.md)
90 * [Tap-Hold Configuration](tap_hold.md) 90 * [Tap-Hold Configuration](tap_hold.md)
91 * [Terminal](feature_terminal.md)
92 * [Unicode](feature_unicode.md) 91 * [Unicode](feature_unicode.md)
93 * [Userspace](feature_userspace.md) 92 * [Userspace](feature_userspace.md)
94 * [WPM Calculation](feature_wpm.md) 93 * [WPM Calculation](feature_wpm.md)
diff --git a/docs/feature_terminal.md b/docs/feature_terminal.md
deleted file mode 100644
index f850622165..0000000000
--- a/docs/feature_terminal.md
+++ /dev/null
@@ -1,107 +0,0 @@
1# Terminal
2
3> This feature is currently *huge*, and should probably only be put on boards with a lot of memory, or for fun.
4
5The terminal feature is a command-line-like interface designed to communicate through a text editor with keystrokes. It's beneficial to turn off auto-indent features in your editor.
6
7To enable, stick this in your `rules.mk` or `Makefile`:
8
9 TERMINAL_ENABLE = yes
10
11And use the `TERM_ON` and `TERM_OFF` keycodes to turn it on or off.
12
13When enabled, a `> ` prompt will appear, where you'll be able to type, backspace (a bell will ding if you reach the beginning and audio is enabled), and hit enter to send the command. Arrow keys are currently disabled so it doesn't get confused. Moving your cursor around with the mouse is discouraged.
14
15`#define TERMINAL_HELP` enables some other output helpers that aren't really needed with this page.
16
17Pressing "up" and "down" will allow you to cycle through the past 5 commands entered.
18
19## Future Ideas
20
21* Keyboard/user-extensible commands
22* Smaller footprint
23* Arrow key support
24* Command history - Done
25* SD card support
26* LCD support for buffer display
27* Keycode -> name string LUT
28* Layer status
29* *Analog/digital port read/write*
30* RGB mode stuff
31* Macro definitions
32* EEPROM read/write
33* Audio control
34
35## Current Commands
36
37### `about`
38
39Prints out the current version of QMK with a build date:
40
41```
42> about
43QMK Firmware
44 v0.5.115-7-g80ed73-dirty
45 Built: 2017-08-29-20:24:44
46```
47
48
49### `print-buffer`
50
51Outputs the last 5 commands entered
52
53```
54> print-buffer
550. print-buffer
561. help
572. about
583. keymap 0
594. help
605. flush-buffer
61```
62
63### `flush-buffer`
64
65Clears command buffer
66```
67> flush-buffer
68Buffer cleared!
69```
70
71
72### `help`
73
74
75Prints out the available commands:
76
77```
78> help
79commands available:
80 about help keycode keymap exit print-buffer flush-buffer
81```
82
83### `keycode <layer> <row> <col>`
84
85Prints out the keycode value of a certain layer, row, and column:
86
87```
88> keycode 0 1 0
890x29 (41)
90```
91
92### `keymap <layer>`
93
94Prints out the entire keymap for a certain layer
95
96```
97> keymap 0
980x002b, 0x0014, 0x001a, 0x0008, 0x0015, 0x0017, 0x001c, 0x0018, 0x000c, 0x0012, 0x0013, 0x002a,
990x0029, 0x0004, 0x0016, 0x0007, 0x0009, 0x000a, 0x000b, 0x000d, 0x000e, 0x000f, 0x0033, 0x0034,
1000x00e1, 0x001d, 0x001b, 0x0006, 0x0019, 0x0005, 0x0011, 0x0010, 0x0036, 0x0037, 0x0038, 0x0028,
1010x5cd6, 0x00e0, 0x00e2, 0x00e3, 0x5cd4, 0x002c, 0x002c, 0x5cd5, 0x0050, 0x0051, 0x0052, 0x004f,
102>
103```
104
105### `exit`
106
107Exits the terminal - same as `TERM_OFF`.
diff --git a/docs/ja/_summary.md b/docs/ja/_summary.md
index 81b5756c27..8516a5eaaa 100644
--- a/docs/ja/_summary.md
+++ b/docs/ja/_summary.md
@@ -85,7 +85,6 @@
85 * [スワップハンド](ja/feature_swap_hands.md) 85 * [スワップハンド](ja/feature_swap_hands.md)
86 * [タップダンス](ja/feature_tap_dance.md) 86 * [タップダンス](ja/feature_tap_dance.md)
87 * [タップホールド設定](ja/tap_hold.md) 87 * [タップホールド設定](ja/tap_hold.md)
88 * [ターミナル](ja/feature_terminal.md)
89 * [ユニコード](ja/feature_unicode.md) 88 * [ユニコード](ja/feature_unicode.md)
90 * [ユーザスペース](ja/feature_userspace.md) 89 * [ユーザスペース](ja/feature_userspace.md)
91 * [WPM 計算](ja/feature_wpm.md) 90 * [WPM 計算](ja/feature_wpm.md)
diff --git a/docs/ja/feature_terminal.md b/docs/ja/feature_terminal.md
deleted file mode 100644
index 8e125ecee0..0000000000
--- a/docs/ja/feature_terminal.md
+++ /dev/null
@@ -1,112 +0,0 @@
1# ターミナル
2
3<!---
4 original document: 0.8.147:docs/feature_terminal.md
5 git diff 0.8.147 HEAD -- docs/feature_terminal.md | cat
6-->
7
8> この機能は現在のところ*巨大*であり、おそらく大量のメモリを搭載したキーボード、または楽しみのためにのみ配置する必要があります。
9
10ターミナル機能はテキストエディタを介してキーストロークで通信するように設計されたコマンドラインのようなインタフェースです。エディタで自動インデント機能をオフにすることは有益です。
11
12有効にするには、以下を `rules.mk` または `Makefile` に貼り付けます:
13
14 TERMINAL_ENABLE = yes
15
16そして、オンまたはオフにするために、`TERM_ON` および `TERM_OFF` キーコードを使います。
17
18有効な場合、`> ` プロンプトが現れ、ここでコマンドやバックスペース(オーディオが有効な場合は、先頭に到達するとベルが鳴ります)を入力することができ、エンターを入力するとコマンドを送信します。矢印キーは現在のところ無効なため、混乱することはありません。マウスでカーソルを移動することはお勧めしません。
19
20`#define TERMINAL_HELP` は、このページでは実際には必要のない他の出力ヘルパーを有効にします。
21
22"上矢印" および "下矢印" により、過去に入力した5つのコマンドを順に切り替えることができます。
23
24## 今後のアイデア
25
26* キーボード/ユーザ拡張可能なコマンド
27* より小さなフットプリント
28* 矢印キーのサポート
29* コマンド履歴 - 完了
30* SD カードのサポート
31* バッファディスプレイのための LCD サポート
32* キーコード -> 名称の対応表
33* レイヤー状態
34* *アナログ/デジタル ポートの読み込み/書き込み*
35* RGB モード関連機能
36* マクロ定義
37* EEPROM の読み込み/書き込み
38* オーディオ制御
39
40## 現在のコマンド
41
42### `about`
43
44現在の QMK のバージョンとビルドした日の出力:
45
46```
47> about
48QMK Firmware
49 v0.5.115-7-g80ed73-dirty
50 Built: 2017-08-29-20:24:44
51```
52
53
54### `print-buffer`
55
56最後に入力した5つのコマンドの出力
57
58```
59> print-buffer
600. print-buffer
611. help
622. about
633. keymap 0
644. help
655. flush-buffer
66```
67
68### `flush-buffer`
69
70コマンドバッファをクリア
71```
72> flush-buffer
73Buffer cleared!
74```
75
76
77### `help`
78
79
80利用可能なコマンドの出力:
81
82```
83> help
84commands available:
85 about help keycode keymap exit print-buffer flush-buffer
86```
87
88### `keycode <layer> <row> <col>`
89
90特定のレイヤー、行および列のキーコード値の出力:
91
92```
93> keycode 0 1 0
940x29 (41)
95```
96
97### `keymap <layer>`
98
99特定のレイヤーの全てのキーマップの出力
100
101```
102> keymap 0
1030x002b, 0x0014, 0x001a, 0x0008, 0x0015, 0x0017, 0x001c, 0x0018, 0x000c, 0x0012, 0x0013, 0x002a,
1040x0029, 0x0004, 0x0016, 0x0007, 0x0009, 0x000a, 0x000b, 0x000d, 0x000e, 0x000f, 0x0033, 0x0034,
1050x00e1, 0x001d, 0x001b, 0x0006, 0x0019, 0x0005, 0x0011, 0x0010, 0x0036, 0x0037, 0x0038, 0x0028,
1060x5cd6, 0x00e0, 0x00e2, 0x00e3, 0x5cd4, 0x002c, 0x002c, 0x5cd5, 0x0050, 0x0051, 0x0052, 0x004f,
107>
108```
109
110### `exit`
111
112ターミナルの終了 - `TERM_OFF` と同じ。
diff --git a/docs/ja/understanding_qmk.md b/docs/ja/understanding_qmk.md
index 1654f8e002..550ee3a7c0 100644
--- a/docs/ja/understanding_qmk.md
+++ b/docs/ja/understanding_qmk.md
@@ -161,7 +161,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
161 * [`bool process_combo(uint16_t keycode, keyrecord_t *record)`](https://github.com/qmk/qmk_firmware/blob/e1203a222bb12ab9733916164a000ef3ac48da93/quantum/process_keycode/process_combo.c#L115) 161 * [`bool process_combo(uint16_t keycode, keyrecord_t *record)`](https://github.com/qmk/qmk_firmware/blob/e1203a222bb12ab9733916164a000ef3ac48da93/quantum/process_keycode/process_combo.c#L115)
162 * [`bool process_printer(uint16_t keycode, keyrecord_t *record)`](https://github.com/qmk/qmk_firmware/blob/e1203a222bb12ab9733916164a000ef3ac48da93/quantum/process_keycode/process_printer.c#L77) 162 * [`bool process_printer(uint16_t keycode, keyrecord_t *record)`](https://github.com/qmk/qmk_firmware/blob/e1203a222bb12ab9733916164a000ef3ac48da93/quantum/process_keycode/process_printer.c#L77)
163 * [`bool process_auto_shift(uint16_t keycode, keyrecord_t *record)`](https://github.com/qmk/qmk_firmware/blob/e1203a222bb12ab9733916164a000ef3ac48da93/quantum/process_keycode/process_auto_shift.c#L94) 163 * [`bool process_auto_shift(uint16_t keycode, keyrecord_t *record)`](https://github.com/qmk/qmk_firmware/blob/e1203a222bb12ab9733916164a000ef3ac48da93/quantum/process_keycode/process_auto_shift.c#L94)
164 * [`bool process_terminal(uint16_t keycode, keyrecord_t *record)`](https://github.com/qmk/qmk_firmware/blob/e1203a222bb12ab9733916164a000ef3ac48da93/quantum/process_keycode/process_terminal.c#L264)
165 * [Quantum 固有のキーコードを識別して処理する](https://github.com/qmk/qmk_firmware/blob/e1203a222bb12ab9733916164a000ef3ac48da93/quantum/quantum.c#L291) 164 * [Quantum 固有のキーコードを識別して処理する](https://github.com/qmk/qmk_firmware/blob/e1203a222bb12ab9733916164a000ef3ac48da93/quantum/quantum.c#L291)
166 165
167この一連のイベントの中の任意のステップで (`process_record_kb()` のような)関数は `false` を返して、以降の処理を停止することができます。 166この一連のイベントの中の任意のステップで (`process_record_kb()` のような)関数は `false` を返して、以降の処理を停止することができます。
diff --git a/docs/understanding_qmk.md b/docs/understanding_qmk.md
index 9b80fb179e..c1bcfe3ce9 100644
--- a/docs/understanding_qmk.md
+++ b/docs/understanding_qmk.md
@@ -155,7 +155,6 @@ The `process_record()` function itself is deceptively simple, but hidden within
155 * [`bool process_printer(uint16_t keycode, keyrecord_t *record)`](https://github.com/qmk/qmk_firmware/blob/e1203a222bb12ab9733916164a000ef3ac48da93/quantum/process_keycode/process_printer.c#L77) 155 * [`bool process_printer(uint16_t keycode, keyrecord_t *record)`](https://github.com/qmk/qmk_firmware/blob/e1203a222bb12ab9733916164a000ef3ac48da93/quantum/process_keycode/process_printer.c#L77)
156 * [`bool process_auto_shift(uint16_t keycode, keyrecord_t *record)`](https://github.com/qmk/qmk_firmware/blob/e1203a222bb12ab9733916164a000ef3ac48da93/quantum/process_keycode/process_auto_shift.c#L94) 156 * [`bool process_auto_shift(uint16_t keycode, keyrecord_t *record)`](https://github.com/qmk/qmk_firmware/blob/e1203a222bb12ab9733916164a000ef3ac48da93/quantum/process_keycode/process_auto_shift.c#L94)
157 * `bool process_dynamic_tapping_term(uint16_t keycode, keyrecord_t *record)` 157 * `bool process_dynamic_tapping_term(uint16_t keycode, keyrecord_t *record)`
158 * [`bool process_terminal(uint16_t keycode, keyrecord_t *record)`](https://github.com/qmk/qmk_firmware/blob/e1203a222bb12ab9733916164a000ef3ac48da93/quantum/process_keycode/process_terminal.c#L264)
159 * [Identify and process Quantum-specific keycodes](https://github.com/qmk/qmk_firmware/blob/e1203a222bb12ab9733916164a000ef3ac48da93/quantum/quantum.c#L291) 158 * [Identify and process Quantum-specific keycodes](https://github.com/qmk/qmk_firmware/blob/e1203a222bb12ab9733916164a000ef3ac48da93/quantum/quantum.c#L291)
160 159
161At any step during this chain of events a function (such as `process_record_kb()`) can `return false` to halt all further processing. 160At any step during this chain of events a function (such as `process_record_kb()`) can `return false` to halt all further processing.
diff --git a/docs/zh-cn/_summary.md b/docs/zh-cn/_summary.md
index dbad1021fa..3baee6dc2e 100644
--- a/docs/zh-cn/_summary.md
+++ b/docs/zh-cn/_summary.md
@@ -91,7 +91,6 @@
91 * [换手](zh-cn/feature_swap_hands.md) 91 * [换手](zh-cn/feature_swap_hands.md)
92 * [一键多用](zh-cn/feature_tap_dance.md) 92 * [一键多用](zh-cn/feature_tap_dance.md)
93 * [点按配置](zh-cn/tap_hold.md) 93 * [点按配置](zh-cn/tap_hold.md)
94 * [终端](zh-cn/feature_terminal.md)
95 * [Unicode](zh-cn/feature_unicode.md) 94 * [Unicode](zh-cn/feature_unicode.md)
96 * [用户空间](zh-cn/feature_userspace.md) 95 * [用户空间](zh-cn/feature_userspace.md)
97 * [WPM计算](zh-cn/feature_wpm.md) 96 * [WPM计算](zh-cn/feature_wpm.md)
diff --git a/keyboards/40percentclub/mf68/keymaps/delivrance/rules.mk b/keyboards/40percentclub/mf68/keymaps/delivrance/rules.mk
index 5ac2ce5ccb..3d056cb71b 100644
--- a/keyboards/40percentclub/mf68/keymaps/delivrance/rules.mk
+++ b/keyboards/40percentclub/mf68/keymaps/delivrance/rules.mk
@@ -1,6 +1,5 @@
1BACKLIGHT_DRIVER = custom 1BACKLIGHT_DRIVER = custom
2NKRO_ENABLE = yes 2NKRO_ENABLE = yes
3TERMINAL_ENABLE = yes
4DYNAMIC_MACRO_ENABLE = yes 3DYNAMIC_MACRO_ENABLE = yes
5 4
6# Use RAM (fake EEPROM, transient) instead of real EEPROM 5# Use RAM (fake EEPROM, transient) instead of real EEPROM
diff --git a/keyboards/ckeys/handwire_101/keymaps/default/keymap.c b/keyboards/ckeys/handwire_101/keymaps/default/keymap.c
index 3bb1a2c009..3f5ebc8655 100755
--- a/keyboards/ckeys/handwire_101/keymaps/default/keymap.c
+++ b/keyboards/ckeys/handwire_101/keymaps/default/keymap.c
@@ -134,10 +134,10 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
134 * `--------=======------------------------' 134 * `--------=======------------------------'
135 */ 135 */
136 [_TERMINAL] = LAYOUT_ortho_4x4( 136 [_TERMINAL] = LAYOUT_ortho_4x4(
137 _______, TERM_ABOUT, _______, _______, 137 _______, TERM_ABOUT, _______, _______,
138 TERM_OFF, TERM_PRINT, _______, _______, 138 _______, TERM_PRINT, _______, _______,
139 _______, TERM_FLUSH, _______, _______, 139 _______, TERM_FLUSH, _______, _______,
140 TERM_ON, TERM_HELP , _______, _______ 140 _______, TERM_HELP , _______, _______
141 ), 141 ),
142 /* ADMIN 142 /* ADMIN
143 * ,-----------------------------------------. 143 * ,-----------------------------------------.
diff --git a/keyboards/ckeys/handwire_101/rules.mk b/keyboards/ckeys/handwire_101/rules.mk
index 8fa32bcee5..3131bb405a 100755
--- a/keyboards/ckeys/handwire_101/rules.mk
+++ b/keyboards/ckeys/handwire_101/rules.mk
@@ -12,7 +12,6 @@ MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control 12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug 13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration 14COMMAND_ENABLE = no # Commands for debug and configuration
15TERMINAL_ENABLE = yes
16NKRO_ENABLE = yes # Enable N-Key Rollover 15NKRO_ENABLE = yes # Enable N-Key Rollover
17BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality 16BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
18AUDIO_ENABLE = no # Audio output 17AUDIO_ENABLE = no # Audio output
diff --git a/keyboards/contra/keymaps/default/keymap.c b/keyboards/contra/keymaps/default/keymap.c
index 6c05ebebff..1a365c9a6d 100644
--- a/keyboards/contra/keymaps/default/keymap.c
+++ b/keyboards/contra/keymaps/default/keymap.c
@@ -163,7 +163,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
163 [_ADJUST] = LAYOUT_planck_mit( 163 [_ADJUST] = LAYOUT_planck_mit(
164 _______, QK_BOOT, DEBUG, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_DEL , 164 _______, QK_BOOT, DEBUG, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_DEL ,
165 _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, PLOVER, _______, 165 _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, PLOVER, _______,
166 _______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, TERM_ON, TERM_OFF, _______, _______, _______, 166 _______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, _______, _______, _______, _______, _______,
167 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ 167 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
168 ) 168 )
169 169
diff --git a/keyboards/delikeeb/vaneela/keymaps/default/keymap.c b/keyboards/delikeeb/vaneela/keymaps/default/keymap.c
index b1d7401b9d..57df91cd4d 100644
--- a/keyboards/delikeeb/vaneela/keymaps/default/keymap.c
+++ b/keyboards/delikeeb/vaneela/keymaps/default/keymap.c
@@ -106,7 +106,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
106 */ 106 */
107[_FN] = LAYOUT_ortho_5x12( 107[_FN] = LAYOUT_ortho_5x12(
108 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, 108 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
109 _______, QK_BOOT, DEBUG, _______, _______, _______, _______, _______, _______,TERM_ON, TERM_OFF, KC_DEL, 109 _______, QK_BOOT, DEBUG, _______, _______, _______, _______, _______, _______,_______, _______, KC_DEL,
110 _______, _______, _______, _______, _______, AG_NORM, AG_SWAP, _______, _______, _______, _______, _______, 110 _______, _______, _______, _______, _______, AG_NORM, AG_SWAP, _______, _______, _______, _______, _______,
111 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, 111 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
112 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ 112 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
diff --git a/keyboards/delikeeb/vaneela/keymaps/via/keymap.c b/keyboards/delikeeb/vaneela/keymaps/via/keymap.c
index 65194b84d3..4bfee3daf5 100644
--- a/keyboards/delikeeb/vaneela/keymaps/via/keymap.c
+++ b/keyboards/delikeeb/vaneela/keymaps/via/keymap.c
@@ -105,7 +105,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
105 */ 105 */
106[_FN] = LAYOUT_ortho_5x12( 106[_FN] = LAYOUT_ortho_5x12(
107 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, 107 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
108 _______, QK_BOOT, DEBUG, _______, _______, _______, _______, _______, _______,TERM_ON, TERM_OFF, KC_DEL, 108 _______, QK_BOOT, DEBUG, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL,
109 _______, _______, _______, _______, _______, AG_NORM, AG_SWAP, _______, _______, _______, _______, _______, 109 _______, _______, _______, _______, _______, AG_NORM, AG_SWAP, _______, _______, _______, _______, _______,
110 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, 110 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
111 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ 111 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
diff --git a/keyboards/dm9records/plaid/keymaps/default/keymap.c b/keyboards/dm9records/plaid/keymaps/default/keymap.c
index f11b744066..d96c250609 100644
--- a/keyboards/dm9records/plaid/keymaps/default/keymap.c
+++ b/keyboards/dm9records/plaid/keymaps/default/keymap.c
@@ -195,7 +195,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
195[_ADJUST] = LAYOUT_plaid_grid( 195[_ADJUST] = LAYOUT_plaid_grid(
196 QK_BOOT,LED_1, LED_2, LED_3, LED_4, LED_5,LED_6, LED_7, LED_8, LED_9, LED_0,KC_DEL , 196 QK_BOOT,LED_1, LED_2, LED_3, LED_4, LED_5,LED_6, LED_7, LED_8, LED_9, LED_0,KC_DEL ,
197 _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, PLOVER, _______, 197 _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, PLOVER, _______,
198 _______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, TERM_ON, TERM_OFF, _______, _______, _______, 198 _______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, _______, _______, _______, _______, _______,
199 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ 199 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
200) 200)
201 201
diff --git a/keyboards/fractal/keymaps/default/keymap.c b/keyboards/fractal/keymaps/default/keymap.c
index 6b0a8cc18c..ded4890d8c 100644
--- a/keyboards/fractal/keymaps/default/keymap.c
+++ b/keyboards/fractal/keymaps/default/keymap.c
@@ -158,7 +158,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
158 */ 158 */
159[_ADJUST] = LAYOUT_ortho_5x12( 159[_ADJUST] = LAYOUT_ortho_5x12(
160 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, 160 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
161 _______, QK_BOOT, DEBUG, _______, _______, _______, _______, TERM_ON, TERM_OFF,_______, _______, KC_DEL, 161 _______, QK_BOOT, DEBUG, _______, _______, _______, _______, _______, _______,_______, _______, KC_DEL,
162 _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, _______, _______, 162 _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, _______, _______,
163 _______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, _______, _______, _______, _______, _______, 163 _______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, _______, _______, _______, _______, _______,
164 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ 164 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
diff --git a/keyboards/handwired/ortho_brass/keymaps/default/keymap.c b/keyboards/handwired/ortho_brass/keymaps/default/keymap.c
index 948a7bd1bc..f32529b6a7 100644
--- a/keyboards/handwired/ortho_brass/keymaps/default/keymap.c
+++ b/keyboards/handwired/ortho_brass/keymaps/default/keymap.c
@@ -162,7 +162,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
162[_ADJUST] = LAYOUT_ortho_4x12_1x2uC( 162[_ADJUST] = LAYOUT_ortho_4x12_1x2uC(
163 _______, QK_BOOT, DEBUG, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_DEL , 163 _______, QK_BOOT, DEBUG, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_DEL ,
164 _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, PLOVER, _______, 164 _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, PLOVER, _______,
165 _______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, TERM_ON, TERM_OFF, _______, _______, _______, 165 _______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, _______, _______, _______, _______, _______,
166 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ 166 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
167) 167)
168 168
diff --git a/keyboards/handwired/riblee_f401/keymaps/default/keymap.c b/keyboards/handwired/riblee_f401/keymaps/default/keymap.c
index 6892c0fb49..bee4de5ede 100644
--- a/keyboards/handwired/riblee_f401/keymaps/default/keymap.c
+++ b/keyboards/handwired/riblee_f401/keymaps/default/keymap.c
@@ -158,7 +158,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
158 */ 158 */
159[_ADJUST] = LAYOUT_ortho_5x12( 159[_ADJUST] = LAYOUT_ortho_5x12(
160 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, 160 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
161 _______, QK_BOOT, DEBUG, _______, _______, _______, _______, TERM_ON, TERM_OFF,_______, _______, KC_DEL, 161 _______, QK_BOOT, DEBUG, _______, _______, _______, _______, _______, _______,_______, _______, KC_DEL,
162 _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, _______, _______, 162 _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, _______, _______,
163 _______, _______, _______, _______, _______, _______, NK_TOGG, LCG_SWP, LCG_NRM, _______, _______, _______, 163 _______, _______, _______, _______, _______, _______, NK_TOGG, LCG_SWP, LCG_NRM, _______, _______, _______,
164 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ 164 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
diff --git a/keyboards/handwired/riblee_f411/keymaps/default/keymap.c b/keyboards/handwired/riblee_f411/keymaps/default/keymap.c
index 2e9485d6b9..ff7e1117b8 100644
--- a/keyboards/handwired/riblee_f411/keymaps/default/keymap.c
+++ b/keyboards/handwired/riblee_f411/keymaps/default/keymap.c
@@ -158,7 +158,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
158 */ 158 */
159[_ADJUST] = LAYOUT_ortho_5x12( 159[_ADJUST] = LAYOUT_ortho_5x12(
160 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, 160 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
161 _______, QK_BOOT, DEBUG, _______, _______, _______, _______, TERM_ON, TERM_OFF,_______, _______, KC_DEL, 161 _______, QK_BOOT, DEBUG, _______, _______, _______, _______, _______, _______,_______, _______, KC_DEL,
162 _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, _______, _______, 162 _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, _______, _______,
163 _______, _______, _______, _______, _______, _______, NK_TOGG, LCG_SWP, LCG_NRM, _______, _______, _______, 163 _______, _______, _______, _______, _______, _______, NK_TOGG, LCG_SWP, LCG_NRM, _______, _______, _______,
164 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ 164 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
diff --git a/keyboards/handwired/rs60/keymaps/default/keymap.c b/keyboards/handwired/rs60/keymaps/default/keymap.c
index 6b311a7ebb..6d5dc4a32a 100644
--- a/keyboards/handwired/rs60/keymaps/default/keymap.c
+++ b/keyboards/handwired/rs60/keymaps/default/keymap.c
@@ -155,7 +155,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
155 */ 155 */
156[_ADJUST] = LAYOUT_ortho_5x12( 156[_ADJUST] = LAYOUT_ortho_5x12(
157 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, 157 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
158 _______, QK_BOOT, DEBUG, _______, _______, _______, _______, TERM_ON, TERM_OFF,_______, _______, KC_DEL, 158 _______, QK_BOOT, DEBUG, _______, _______, _______, _______, _______, _______,_______, _______, KC_DEL,
159 _______, _______, _______, _______, _______, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, _______, _______, 159 _______, _______, _______, _______, _______, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, _______, _______,
160 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, 160 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
161 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ 161 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
diff --git a/keyboards/handwired/terminus_mini/keymaps/default/keymap.c b/keyboards/handwired/terminus_mini/keymaps/default/keymap.c
index 8062aa711f..8d0631072f 100644
--- a/keyboards/handwired/terminus_mini/keymaps/default/keymap.c
+++ b/keyboards/handwired/terminus_mini/keymaps/default/keymap.c
@@ -193,7 +193,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
193 */ 193 */
194 194
195[_ADJUST] = LAYOUT( 195[_ADJUST] = LAYOUT(
196 _______, _______, _______, _______, _______, QK_BOOT, _______, TERM_ON, TERM_OFF, _______, _______, KC_DEL, 196 _______, _______, _______, _______, _______, QK_BOOT, _______, _______, _______, _______, _______, KC_DEL,
197 _______, _______, _______, _______, _______, _______, _______, QWERTY, COLEMAK, DVORAK, _______, _______, 197 _______, _______, _______, _______, _______, _______, _______, QWERTY, COLEMAK, DVORAK, _______, _______,
198 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, 198 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
199 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ 199 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
diff --git a/keyboards/keycapsss/o4l_5x12/keymaps/default/keymap.c b/keyboards/keycapsss/o4l_5x12/keymaps/default/keymap.c
index 050b5a2c3e..2f64a56e9a 100644
--- a/keyboards/keycapsss/o4l_5x12/keymaps/default/keymap.c
+++ b/keyboards/keycapsss/o4l_5x12/keymaps/default/keymap.c
@@ -92,7 +92,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
92 */ 92 */
93 [_ADJUST] = LAYOUT_ortho_5x12( 93 [_ADJUST] = LAYOUT_ortho_5x12(
94 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, 94 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
95 _______, QK_BOOT, DEBUG, _______, _______, _______, _______, TERM_ON, TERM_OFF,_______, _______, KC_DEL, 95 _______, QK_BOOT, DEBUG, _______, _______, _______, _______, _______, _______,_______, _______, KC_DEL,
96 _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, _______, _______, _______, _______, 96 _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, _______, _______, _______, _______,
97 _______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, _______, _______, _______, _______, _______, 97 _______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, _______, _______, _______, _______, _______,
98 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ 98 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
diff --git a/keyboards/massdrop/alt/keymaps/pregame/rules.mk b/keyboards/massdrop/alt/keymaps/pregame/rules.mk
index 184405662a..5981633f7c 100644
--- a/keyboards/massdrop/alt/keymaps/pregame/rules.mk
+++ b/keyboards/massdrop/alt/keymaps/pregame/rules.mk
@@ -8,7 +8,6 @@ DYNAMIC_MACRO_ENABLE = no # Dynamic macro recording and play
8MOUSEKEY_ENABLE = no # Enable mouse control keycodes. Increases firmware size. 8MOUSEKEY_ENABLE = no # Enable mouse control keycodes. Increases firmware size.
9TAP_DANCE_ENABLE = no # Enable tap dance keys 9TAP_DANCE_ENABLE = no # Enable tap dance keys
10CONSOLE_ENABLE = no # Enable debugging console. Increases firmware size. 10CONSOLE_ENABLE = no # Enable debugging console. Increases firmware size.
11TERMINAL_ENABLE = no
12EXTRAKEY_ENABLE = yes # Audio control and System control 11EXTRAKEY_ENABLE = yes # Audio control and System control
13# RAW_ENABLE = yes # Raw HID has not yet been implemented for this keyboard 12# RAW_ENABLE = yes # Raw HID has not yet been implemented for this keyboard
14# COMBO_ENABLE # Key combo feature 13# COMBO_ENABLE # Key combo feature
diff --git a/keyboards/massdrop/ctrl/keymaps/endgame/rules.mk b/keyboards/massdrop/ctrl/keymaps/endgame/rules.mk
index 9502c242dd..c4fab8ad53 100644
--- a/keyboards/massdrop/ctrl/keymaps/endgame/rules.mk
+++ b/keyboards/massdrop/ctrl/keymaps/endgame/rules.mk
@@ -7,7 +7,6 @@ MOUSEKEY_ENABLE = yes # Enable mouse control keycodes. Increases firmware size
7TAP_DANCE_ENABLE = yes # Enable tap dance keys 7TAP_DANCE_ENABLE = yes # Enable tap dance keys
8CONSOLE_ENABLE = yes # Enable debugging console. Increases firmware size. 8CONSOLE_ENABLE = yes # Enable debugging console. Increases firmware size.
9SRC += config_led.c # Used to add files to the compilation/linking list. 9SRC += config_led.c # Used to add files to the compilation/linking list.
10TERMINAL_ENABLE = yes
11EXTRAKEY_ENABLE = yes # Audio control and System control 10EXTRAKEY_ENABLE = yes # Audio control and System control
12# RAW_ENABLE = yes # Raw HID has not yet been implemented for this keyboard 11# RAW_ENABLE = yes # Raw HID has not yet been implemented for this keyboard
13# COMBO_ENABLE # Key combo feature 12# COMBO_ENABLE # Key combo feature
diff --git a/keyboards/massdrop/ctrl/keymaps/matthewrobo/rules.mk b/keyboards/massdrop/ctrl/keymaps/matthewrobo/rules.mk
index e834404e29..4bb43f525b 100644
--- a/keyboards/massdrop/ctrl/keymaps/matthewrobo/rules.mk
+++ b/keyboards/massdrop/ctrl/keymaps/matthewrobo/rules.mk
@@ -7,7 +7,6 @@ MOUSEKEY_ENABLE = no # Enable mouse control keycodes. Increases firmware size.
7TAP_DANCE_ENABLE = no # Enable tap dance keys 7TAP_DANCE_ENABLE = no # Enable tap dance keys
8CONSOLE_ENABLE = no # Enable debugging console. Increases firmware size. 8CONSOLE_ENABLE = no # Enable debugging console. Increases firmware size.
9SRC += config_led.c # Used to add files to the compilation/linking list. 9SRC += config_led.c # Used to add files to the compilation/linking list.
10TERMINAL_ENABLE = no
11EXTRAKEY_ENABLE = yes # Audio control and System control 10EXTRAKEY_ENABLE = yes # Audio control and System control
12#RAW_ENABLE = yes #Raw HID has not yet been implemented for this keyboard 11#RAW_ENABLE = yes #Raw HID has not yet been implemented for this keyboard
13#COMBO_ENABLE #Key combo feature 12#COMBO_ENABLE #Key combo feature
diff --git a/keyboards/massdrop/ctrl/keymaps/xanimos/rules.mk b/keyboards/massdrop/ctrl/keymaps/xanimos/rules.mk
index 43a312ce4e..2913eff83b 100644
--- a/keyboards/massdrop/ctrl/keymaps/xanimos/rules.mk
+++ b/keyboards/massdrop/ctrl/keymaps/xanimos/rules.mk
@@ -8,7 +8,6 @@ TAP_DANCE_ENABLE = yes # Enable tap dance keys
8CONSOLE_ENABLE = no # Enable debugging console. Increases firmware size. 8CONSOLE_ENABLE = no # Enable debugging console. Increases firmware size.
9SRC += config_led.c # Used to add files to the compilation/linking list. 9SRC += config_led.c # Used to add files to the compilation/linking list.
10EXTRAKEY_ENABLE = yes # Audio control and System control 10EXTRAKEY_ENABLE = yes # Audio control and System control
11TERMINAL_ENABLE = no
12# RAW_ENABLE = yes # Raw HID has not yet been implemented for this keyboard 11# RAW_ENABLE = yes # Raw HID has not yet been implemented for this keyboard
13# COMBO_ENABLE # Key combo feature 12# COMBO_ENABLE # Key combo feature
14# LEADER_ENABLE # Enable leader key chording 13# LEADER_ENABLE # Enable leader key chording
diff --git a/keyboards/mlego/m48/keymaps/default/keymap.c b/keyboards/mlego/m48/keymaps/default/keymap.c
index 5eb40a332a..175f42b9b9 100644
--- a/keyboards/mlego/m48/keymaps/default/keymap.c
+++ b/keyboards/mlego/m48/keymaps/default/keymap.c
@@ -106,10 +106,10 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
106 * `-----------------------------------------------------------------------------------' 106 * `-----------------------------------------------------------------------------------'
107 */ 107 */
108[_ADJ] = LAYOUT_ortho_4x12( 108[_ADJ] = LAYOUT_ortho_4x12(
109 _______, QK_BOOT, DEBUG, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_DEL , 109 _______, QK_BOOT, DEBUG, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_DEL,
110 _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, _______, _______, _______, _______, _______, 110 _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, _______, _______, _______, _______, _______,
111 _______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, TERM_ON, TERM_OFF, _______, _______, _______, 111 _______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, _______, _______, _______, _______, _______,
112 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ 112 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
113) 113)
114 114
115}; 115};
diff --git a/keyboards/planck/keymaps/default/keymap.c b/keyboards/planck/keymaps/default/keymap.c
index 3453d41746..8041e0bada 100644
--- a/keyboards/planck/keymaps/default/keymap.c
+++ b/keyboards/planck/keymaps/default/keymap.c
@@ -165,7 +165,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
165[_ADJUST] = LAYOUT_planck_grid( 165[_ADJUST] = LAYOUT_planck_grid(
166 _______, QK_BOOT, DEBUG, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_DEL , 166 _______, QK_BOOT, DEBUG, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_DEL ,
167 _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, PLOVER, _______, 167 _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, PLOVER, _______,
168 _______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, TERM_ON, TERM_OFF, _______, _______, _______, 168 _______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, _______, _______, _______, _______, _______,
169 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ 169 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
170) 170)
171 171
diff --git a/keyboards/planck/keymaps/roguepullrequest/rules.mk b/keyboards/planck/keymaps/roguepullrequest/rules.mk
index 9394c96e5b..5eb053e886 100644
--- a/keyboards/planck/keymaps/roguepullrequest/rules.mk
+++ b/keyboards/planck/keymaps/roguepullrequest/rules.mk
@@ -1,4 +1,3 @@
1AUDIO_ENABLE = yes 1AUDIO_ENABLE = yes
2COMMAND_ENABLE = no 2COMMAND_ENABLE = no
3TERMINAL_ENABLE = no
4TAP_DANCE_ENABLE = yes 3TAP_DANCE_ENABLE = yes
diff --git a/keyboards/planck/keymaps/rootiest/rules.mk b/keyboards/planck/keymaps/rootiest/rules.mk
index b669d8bb7d..ca0f90b6e9 100644
--- a/keyboards/planck/keymaps/rootiest/rules.mk
+++ b/keyboards/planck/keymaps/rootiest/rules.mk
@@ -20,8 +20,5 @@ KEY_LOCK_ENABLE = yes # Enables using lock key to maintain holds
20# SWAP_HANDS_ENABLE = yes # Enables the swap hands function 20# SWAP_HANDS_ENABLE = yes # Enables the swap hands function
21# DEBOUNCE_TYPE = sym_eager_pk # Change debounce algorithm 21# DEBOUNCE_TYPE = sym_eager_pk # Change debounce algorithm
22 22
23# NOTE: The following requires a lot of memory to include
24TERMINAL_ENABLE = yes # Enables a command-line-like interface designed to communicate through a text editor with keystrokes
25
26# NOTE: The following is not yet available in main qmk branch 23# NOTE: The following is not yet available in main qmk branch
27KEY_OVERRIDE_ENABLE = yes # Allows overiding modifier combos (change Shift+1 without affecting 1 or Shift's normal operation) 24KEY_OVERRIDE_ENABLE = yes # Allows overiding modifier combos (change Shift+1 without affecting 1 or Shift's normal operation)
diff --git a/keyboards/planck/keymaps/synth_sample/keymap.c b/keyboards/planck/keymaps/synth_sample/keymap.c
index 0a57b7ce9a..124c01cb05 100644
--- a/keyboards/planck/keymaps/synth_sample/keymap.c
+++ b/keyboards/planck/keymaps/synth_sample/keymap.c
@@ -160,10 +160,10 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
160 * `-----------------------------------------------------------------------------------' 160 * `-----------------------------------------------------------------------------------'
161 */ 161 */
162[_ADJUST] = LAYOUT_planck_grid( 162[_ADJUST] = LAYOUT_planck_grid(
163 _______, RESET, DEBUG, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_DEL , 163 _______, RESET, DEBUG, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_DEL ,
164 _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, PLOVER, _______, 164 _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, PLOVER, _______,
165 _______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, TERM_ON, TERM_OFF, _______, _______, _______, 165 _______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, _______, _______, _______, _______, _______,
166 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ 166 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
167) 167)
168 168
169}; 169};
diff --git a/keyboards/planck/keymaps/synth_wavetable/keymap.c b/keyboards/planck/keymaps/synth_wavetable/keymap.c
index d413d63896..a5c5491ebd 100644
--- a/keyboards/planck/keymaps/synth_wavetable/keymap.c
+++ b/keyboards/planck/keymaps/synth_wavetable/keymap.c
@@ -160,10 +160,10 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
160 * `-----------------------------------------------------------------------------------' 160 * `-----------------------------------------------------------------------------------'
161 */ 161 */
162[_ADJUST] = LAYOUT_planck_grid( 162[_ADJUST] = LAYOUT_planck_grid(
163 _______, RESET, DEBUG, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_DEL , 163 _______, RESET, DEBUG, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_DEL ,
164 _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, PLOVER, _______, 164 _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, PLOVER, _______,
165 _______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, TERM_ON, TERM_OFF, _______, _______, _______, 165 _______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, _______, _______, _______, _______, _______,
166 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ 166 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
167) 167)
168 168
169}; 169};
diff --git a/keyboards/preonic/keymaps/default/keymap.c b/keyboards/preonic/keymaps/default/keymap.c
index ef7614393d..c1faf464d6 100644
--- a/keyboards/preonic/keymaps/default/keymap.c
+++ b/keyboards/preonic/keymaps/default/keymap.c
@@ -157,7 +157,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
157 */ 157 */
158[_ADJUST] = LAYOUT_preonic_grid( 158[_ADJUST] = LAYOUT_preonic_grid(
159 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, 159 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
160 _______, QK_BOOT, DEBUG, _______, _______, _______, _______, TERM_ON, TERM_OFF,_______, _______, KC_DEL, 160 _______, QK_BOOT, DEBUG, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL,
161 _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, _______, _______, 161 _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, _______, _______,
162 _______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, _______, _______, _______, _______, _______, 162 _______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, _______, _______, _______, _______, _______,
163 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ 163 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
diff --git a/keyboards/splitkb/kyria/keymaps/j-inc/rules.mk b/keyboards/splitkb/kyria/keymaps/j-inc/rules.mk
index 000c995025..ee07f52ff1 100644
--- a/keyboards/splitkb/kyria/keymaps/j-inc/rules.mk
+++ b/keyboards/splitkb/kyria/keymaps/j-inc/rules.mk
@@ -9,7 +9,6 @@ MOUSEKEY_ENABLE = no
9TAP_DANCE_ENABLE = no 9TAP_DANCE_ENABLE = no
10STENO_ENABLE = no 10STENO_ENABLE = no
11BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite 11BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
12TERMINAL_ENABLE = no
13GRAVE_ESC_ENABLE = no 12GRAVE_ESC_ENABLE = no
14MAGIC_ENABLE = no 13MAGIC_ENABLE = no
15SPACE_CADET_ENABLE = no 14SPACE_CADET_ENABLE = no
diff --git a/keyboards/work_louder/work_board/keymaps/default/keymap.c b/keyboards/work_louder/work_board/keymaps/default/keymap.c
index 59bb437d9d..cae65ff5c2 100644
--- a/keyboards/work_louder/work_board/keymaps/default/keymap.c
+++ b/keyboards/work_louder/work_board/keymaps/default/keymap.c
@@ -144,9 +144,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
144 * `-----------------------------------------------------------------------------------' 144 * `-----------------------------------------------------------------------------------'
145 */ 145 */
146[_ADJUST] = LAYOUT( 146[_ADJUST] = LAYOUT(
147 _______, QK_BOOT, DEBUG, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_DEL , _______, 147 _______, QK_BOOT, DEBUG, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_DEL , _______,
148 _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, _______, _______, 148 _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, _______, _______,
149 _______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, TERM_ON, TERM_OFF, _______, _______, _______, 149 _______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, _______, _______, _______, _______, _______,
150 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ 150 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
151) 151)
152 152
diff --git a/quantum/process_keycode/process_terminal.c b/quantum/process_keycode/process_terminal.c
deleted file mode 100644
index da1c4d506f..0000000000
--- a/quantum/process_keycode/process_terminal.c
+++ /dev/null
@@ -1,330 +0,0 @@
1/* Copyright 2017 Jack Humbert
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#include "process_terminal.h"
18#include <string.h>
19#include "version.h"
20#include <stdio.h>
21#include <math.h>
22
23#ifndef CMD_BUFF_SIZE
24# define CMD_BUFF_SIZE 5
25#endif
26
27bool terminal_enabled = false;
28char buffer[80] = "";
29char cmd_buffer[CMD_BUFF_SIZE][80];
30bool cmd_buffer_enabled = true; // replace with ifdef?
31char newline[2] = "\n";
32char arguments[6][20];
33bool firstTime = true;
34
35short int current_cmd_buffer_pos = 0; // used for up/down arrows - keeps track of where you are in the command buffer
36
37__attribute__((weak)) const char terminal_prompt[8] = "> ";
38
39#ifdef AUDIO_ENABLE
40# ifndef TERMINAL_SONG
41# define TERMINAL_SONG SONG(TERMINAL_SOUND)
42# endif
43float terminal_song[][2] = TERMINAL_SONG;
44# define TERMINAL_BELL() PLAY_SONG(terminal_song)
45#else
46# define TERMINAL_BELL()
47#endif
48
49__attribute__((weak)) const char keycode_to_ascii_lut[58] = {0, 0, 0, 0, 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', 0, 0, 0, '\t', ' ', '-', '=', '[', ']', '\\', 0, ';', '\'', '`', ',', '.', '/'};
50
51__attribute__((weak)) const char shifted_keycode_to_ascii_lut[58] = {0, 0, 0, 0, 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '!', '@', '#', '$', '%', '^', '&', '*', '(', ')', 0, 0, 0, '\t', ' ', '_', '+', '{', '}', '|', 0, ':', '\'', '~', '<', '>', '?'};
52
53struct stringcase {
54 char *string;
55 void (*func)(void);
56} typedef stringcase;
57
58void enable_terminal(void) {
59 terminal_enabled = true;
60 strcpy(buffer, "");
61 memset(cmd_buffer, 0, CMD_BUFF_SIZE * 80);
62 for (int i = 0; i < 6; i++)
63 strcpy(arguments[i], "");
64 // select all text to start over
65 // SEND_STRING(SS_LCTL("a"));
66 send_string(terminal_prompt);
67}
68
69void disable_terminal(void) {
70 terminal_enabled = false;
71 SEND_STRING("\n");
72}
73
74void push_to_cmd_buffer(void) {
75 if (cmd_buffer_enabled) {
76 if (cmd_buffer == NULL) {
77 return;
78 } else {
79 if (firstTime) {
80 firstTime = false;
81 strcpy(cmd_buffer[0], buffer);
82 return;
83 }
84
85 for (int i = CMD_BUFF_SIZE - 1; i > 0; --i) {
86 strncpy(cmd_buffer[i], cmd_buffer[i - 1], 80);
87 }
88
89 strcpy(cmd_buffer[0], buffer);
90
91 return;
92 }
93 }
94}
95
96void terminal_about(void) {
97 SEND_STRING("QMK Firmware\n");
98 SEND_STRING(" v");
99 SEND_STRING(QMK_VERSION);
100 SEND_STRING("\n" SS_TAP(X_HOME) " Built: ");
101 SEND_STRING(QMK_BUILDDATE);
102 send_string(newline);
103#ifdef TERMINAL_HELP
104 if (strlen(arguments[1]) != 0) {
105 SEND_STRING("You entered: ");
106 send_string(arguments[1]);
107 send_string(newline);
108 }
109#endif
110}
111
112void terminal_help(void);
113
114extern const uint16_t keymaps[][MATRIX_ROWS][MATRIX_COLS];
115
116void terminal_keycode(void) {
117 if (strlen(arguments[1]) != 0 && strlen(arguments[2]) != 0 && strlen(arguments[3]) != 0) {
118 char keycode_dec[5];
119 char keycode_hex[5];
120 uint16_t layer = strtol(arguments[1], (char **)NULL, 10);
121 uint16_t row = strtol(arguments[2], (char **)NULL, 10);
122 uint16_t col = strtol(arguments[3], (char **)NULL, 10);
123 uint16_t keycode = pgm_read_word(&keymaps[layer][row][col]);
124 itoa(keycode, keycode_dec, 10);
125 itoa(keycode, keycode_hex, 16);
126 SEND_STRING("0x");
127 send_string(keycode_hex);
128 SEND_STRING(" (");
129 send_string(keycode_dec);
130 SEND_STRING(")\n");
131 } else {
132#ifdef TERMINAL_HELP
133 SEND_STRING("usage: keycode <layer> <row> <col>\n");
134#endif
135 }
136}
137
138void terminal_keymap(void) {
139 if (strlen(arguments[1]) != 0) {
140 uint16_t layer = strtol(arguments[1], (char **)NULL, 10);
141 for (int r = 0; r < MATRIX_ROWS; r++) {
142 for (int c = 0; c < MATRIX_COLS; c++) {
143 uint16_t keycode = pgm_read_word(&keymaps[layer][r][c]);
144 char keycode_s[8];
145 sprintf(keycode_s, "0x%04x,", keycode);
146 send_string(keycode_s);
147 }
148 send_string(newline);
149 }
150 } else {
151#ifdef TERMINAL_HELP
152 SEND_STRING("usage: keymap <layer>\n");
153#endif
154 }
155}
156
157void print_cmd_buff(void) {
158 /* without the below wait, a race condition can occur wherein the
159 buffer can be printed before it has been fully moved */
160 wait_ms(250);
161 for (int i = 0; i < CMD_BUFF_SIZE; i++) {
162 char tmpChar = ' ';
163 itoa(i, &tmpChar, 10);
164 const char *tmpCnstCharStr = &tmpChar; // because sned_string wont take a normal char *
165 send_string(tmpCnstCharStr);
166 SEND_STRING(". ");
167 send_string(cmd_buffer[i]);
168 SEND_STRING("\n");
169 }
170}
171
172void flush_cmd_buffer(void) {
173 memset(cmd_buffer, 0, CMD_BUFF_SIZE * 80);
174 SEND_STRING("Buffer Cleared!\n");
175}
176
177stringcase terminal_cases[] = {{"about", terminal_about}, {"help", terminal_help}, {"keycode", terminal_keycode}, {"keymap", terminal_keymap}, {"flush-buffer", flush_cmd_buffer}, {"print-buffer", print_cmd_buff}, {"exit", disable_terminal}};
178
179void terminal_help(void) {
180 SEND_STRING("commands available:\n ");
181 for (stringcase *case_p = terminal_cases; case_p != terminal_cases + sizeof(terminal_cases) / sizeof(terminal_cases[0]); case_p++) {
182 send_string(case_p->string);
183 SEND_STRING(" ");
184 }
185 send_string(newline);
186}
187
188void command_not_found(void) {
189 wait_ms(50); // sometimes buffer isnt grabbed quick enough
190 SEND_STRING("command \"");
191 send_string(buffer);
192 SEND_STRING("\" not found\n");
193}
194
195void process_terminal_command(void) {
196 // we capture return bc of the order of events, so we need to manually send a newline
197 send_string(newline);
198
199 char * pch;
200 uint8_t i = 0;
201 pch = strtok(buffer, " ");
202 while (pch != NULL) {
203 strcpy(arguments[i], pch);
204 pch = strtok(NULL, " ");
205 i++;
206 }
207
208 bool command_found = false;
209 for (stringcase *case_p = terminal_cases; case_p != terminal_cases + sizeof(terminal_cases) / sizeof(terminal_cases[0]); case_p++) {
210 if (0 == strcmp(case_p->string, buffer)) {
211 command_found = true;
212 (*case_p->func)();
213 break;
214 }
215 }
216
217 if (!command_found) command_not_found();
218
219 if (terminal_enabled) {
220 strcpy(buffer, "");
221 for (int i = 0; i < 6; i++)
222 strcpy(arguments[i], "");
223 SEND_STRING(SS_TAP(X_HOME));
224 send_string(terminal_prompt);
225 }
226}
227void check_pos(void) {
228 if (current_cmd_buffer_pos >= CMD_BUFF_SIZE) { // if over the top, move it back down to the top of the buffer so you can climb back down...
229 current_cmd_buffer_pos = CMD_BUFF_SIZE - 1;
230 } else if (current_cmd_buffer_pos < 0) { //...and if you fall under the bottom of the buffer, reset back to 0 so you can climb back up
231 current_cmd_buffer_pos = 0;
232 }
233}
234
235bool process_terminal(uint16_t keycode, keyrecord_t *record) {
236 if (keycode == TERM_ON && record->event.pressed) {
237 enable_terminal();
238 return false;
239 }
240
241 if (terminal_enabled && record->event.pressed) {
242 if (keycode == TERM_OFF && record->event.pressed) {
243 disable_terminal();
244 return false;
245 }
246
247 if ((keycode >= QK_MOD_TAP && keycode <= QK_MOD_TAP_MAX) || (keycode >= QK_LAYER_TAP && keycode <= QK_LAYER_TAP_MAX)) {
248 keycode = keycode & 0xFF;
249 }
250
251 if (keycode < 256) {
252 uint8_t str_len;
253 char char_to_add;
254 switch (keycode) {
255 case KC_ENTER:
256 case KC_KP_ENTER:
257 push_to_cmd_buffer();
258 current_cmd_buffer_pos = 0;
259 process_terminal_command();
260 return false;
261 break;
262 case KC_ESCAPE:
263 SEND_STRING("\n");
264 enable_terminal();
265 return false;
266 break;
267 case KC_BACKSPACE:
268 str_len = strlen(buffer);
269 if (str_len > 0) {
270 buffer[str_len - 1] = 0;
271 return true;
272 } else {
273 TERMINAL_BELL();
274 return false;
275 }
276 break;
277 case KC_LEFT:
278 return false;
279 break;
280 case KC_RIGHT:
281 return false;
282 break;
283 case KC_UP: // 0 = recent
284 check_pos(); // check our current buffer position is valid
285 if (current_cmd_buffer_pos <= CMD_BUFF_SIZE - 1) { // once we get to the top, dont do anything
286 str_len = strlen(buffer);
287 for (int i = 0; i < str_len; ++i) {
288 send_string(SS_TAP(X_BSPACE)); // clear w/e is on the line already
289 // process_terminal(KC_BACKSPACE,record);
290 }
291 strncpy(buffer, cmd_buffer[current_cmd_buffer_pos], 80);
292
293 send_string(buffer);
294 ++current_cmd_buffer_pos; // get ready to access the above cmd if up/down is pressed again
295 }
296 return false;
297 break;
298 case KC_DOWN:
299 check_pos();
300 if (current_cmd_buffer_pos >= 0) { // once we get to the bottom, dont do anything
301 str_len = strlen(buffer);
302 for (int i = 0; i < str_len; ++i) {
303 send_string(SS_TAP(X_BSPACE)); // clear w/e is on the line already
304 // process_terminal(KC_BACKSPACE,record);
305 }
306 strncpy(buffer, cmd_buffer[current_cmd_buffer_pos], 79);
307
308 send_string(buffer);
309 --current_cmd_buffer_pos; // get ready to access the above cmd if down/up is pressed again
310 }
311 return false;
312 break;
313 default:
314 if (keycode <= 58) {
315 char_to_add = 0;
316 if (get_mods() & (MOD_BIT(KC_LEFT_SHIFT) | MOD_BIT(KC_RIGHT_SHIFT))) {
317 char_to_add = shifted_keycode_to_ascii_lut[keycode];
318 } else if (get_mods() == 0) {
319 char_to_add = keycode_to_ascii_lut[keycode];
320 }
321 if (char_to_add != 0) {
322 strncat(buffer, &char_to_add, 1);
323 }
324 }
325 break;
326 }
327 }
328 }
329 return true;
330}
diff --git a/quantum/process_keycode/process_terminal.h b/quantum/process_keycode/process_terminal.h
deleted file mode 100644
index 0159131e5b..0000000000
--- a/quantum/process_keycode/process_terminal.h
+++ /dev/null
@@ -1,24 +0,0 @@
1/* Copyright 2017 Jack Humbert
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#pragma once
18
19#include "quantum.h"
20
21extern const char keycode_to_ascii_lut[58];
22extern const char shifted_keycode_to_ascii_lut[58];
23extern const char terminal_prompt[8];
24bool process_terminal(uint16_t keycode, keyrecord_t *record);
diff --git a/quantum/process_keycode/process_terminal_nop.h b/quantum/process_keycode/process_terminal_nop.h
deleted file mode 100644
index 36e25320c5..0000000000
--- a/quantum/process_keycode/process_terminal_nop.h
+++ /dev/null
@@ -1,22 +0,0 @@
1/* Copyright 2017 Jack Humbert
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#pragma once
18
19#include "quantum.h"
20
21#define TERM_ON KC_NO
22#define TERM_OFF KC_NO
diff --git a/quantum/quantum.c b/quantum/quantum.c
index ac3e2d90b4..4efcc6bd8f 100644
--- a/quantum/quantum.c
+++ b/quantum/quantum.c
@@ -304,9 +304,6 @@ bool process_record_quantum(keyrecord_t *record) {
304#ifdef DYNAMIC_TAPPING_TERM_ENABLE 304#ifdef DYNAMIC_TAPPING_TERM_ENABLE
305 process_dynamic_tapping_term(keycode, record) && 305 process_dynamic_tapping_term(keycode, record) &&
306#endif 306#endif
307#ifdef TERMINAL_ENABLE
308 process_terminal(keycode, record) &&
309#endif
310#ifdef CAPS_WORD_ENABLE 307#ifdef CAPS_WORD_ENABLE
311 process_caps_word(keycode, record) && 308 process_caps_word(keycode, record) &&
312#endif 309#endif
diff --git a/quantum/quantum.h b/quantum/quantum.h
index 92e1af1c40..8a7a20c706 100644
--- a/quantum/quantum.h
+++ b/quantum/quantum.h
@@ -141,12 +141,6 @@ extern layer_state_t layer_state;
141# include "process_key_lock.h" 141# include "process_key_lock.h"
142#endif 142#endif
143 143
144#ifdef TERMINAL_ENABLE
145# include "process_terminal.h"
146#else
147# include "process_terminal_nop.h"
148#endif
149
150#ifdef SPACE_CADET_ENABLE 144#ifdef SPACE_CADET_ENABLE
151# include "process_space_cadet.h" 145# include "process_space_cadet.h"
152#endif 146#endif
diff --git a/quantum/quantum_keycodes.h b/quantum/quantum_keycodes.h
index 40355d799a..869826ce19 100644
--- a/quantum/quantum_keycodes.h
+++ b/quantum/quantum_keycodes.h
@@ -473,9 +473,9 @@ enum quantum_keycodes {
473 // Lock Key 473 // Lock Key
474 KC_LOCK, // 5D2B 474 KC_LOCK, // 5D2B
475 475
476 // Terminal 476 // Unused slots
477 TERM_ON, // 5D2C 477 UNUSED_000, // 5D2C
478 TERM_OFF, // 5D2D 478 UNUSED_001, // 5D2D
479 479
480 // Sequencer 480 // Sequencer
481 SQ_ON, // 5D2E 481 SQ_ON, // 5D2E
diff --git a/quantum/quantum_keycodes_legacy.h b/quantum/quantum_keycodes_legacy.h
index ed9455ee74..51380d9c50 100644
--- a/quantum/quantum_keycodes_legacy.h
+++ b/quantum/quantum_keycodes_legacy.h
@@ -11,3 +11,6 @@
11 11
12#define KC_GESC QK_GRAVE_ESCAPE 12#define KC_GESC QK_GRAVE_ESCAPE
13#define EEP_RST QK_CLEAR_EEPROM 13#define EEP_RST QK_CLEAR_EEPROM
14
15#define TERM_ON _Static_assert(false, "The Terminal feature has been removed from QMK. Please remove use of TERM_ON/TERM_OFF from your keymap.")
16#define TERM_OFF _Static_assert(false, "The Terminal feature has been removed from QMK.. Please remove use of TERM_ON/TERM_OFF from your keymap.") \ No newline at end of file
diff --git a/users/bcat/rules.mk b/users/bcat/rules.mk
index 1ad2ee0aa8..090f7474eb 100644
--- a/users/bcat/rules.mk
+++ b/users/bcat/rules.mk
@@ -47,7 +47,6 @@ endif
47COMMAND_ENABLE = no 47COMMAND_ENABLE = no
48CONSOLE_ENABLE = no 48CONSOLE_ENABLE = no
49MOUSEKEY_ENABLE = no 49MOUSEKEY_ENABLE = no
50TERMINAL_ENABLE = no
51 50
52# Disable unwanted hardware options on all keyboards. (Some keyboards turn 51# Disable unwanted hardware options on all keyboards. (Some keyboards turn
53# these features on by default even though they aren't actually required.) 52# these features on by default even though they aren't actually required.)