-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from samdoshi/2.0
Teletype 2.0 work so far
- Loading branch information
Showing
84 changed files
with
6,824 additions
and
4,159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,5 +42,8 @@ | |
*.dSYM/ | ||
|
||
# Build outputs | ||
/src/match_token.c | ||
/src/scanner.c | ||
/simulator/tt | ||
/module/gitversion.c | ||
/tests/tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
|
||
## Global key bindings | ||
|
||
These bindings work everywhere. | ||
|
||
| Key | Action | | ||
|------------------------------|------------------------------------------------| | ||
| `<tab>` | change modes, live to edit to pattern and back | | ||
| `<esc>` | preset read mode, or return to last mode | | ||
| `alt-<esc>` | preset write mode | | ||
| `win-<esc>` | clear delays, stack and slews | | ||
| `<print screen>` | help text, or return to last mode | | ||
| `<F1>` to `<F8>` | run corresponding script | | ||
| `<F9>` | run metro script | | ||
| `<F10>` | run init script | | ||
| `alt-<F1>` to `alt-<F8>` | edit corresponding script | | ||
| `alt-<F9>` | edit metro script | | ||
| `alt-<F10>` | edit init script | | ||
| `<numpad-1>` to `<numpad-8>` | run corresponding script | | ||
|
||
## Text editing | ||
|
||
These bindings work when entering text or code. | ||
|
||
In most cases, the clipboard is shared between _live_, _edit_ and the 2 _preset_ modes. | ||
|
||
| Key | Action | | ||
|--------------------------------|-----------------------------------------| | ||
| `<left>` / `ctrl-b` | move cursor left | | ||
| `<right>` / `ctrl-f` | move cursor right | | ||
| `<home>` / `ctrl-a` | move to beginning of line | | ||
| `<end>` / `ctrl-e` | move to end of line | | ||
| `<backspace>` / `ctrl-h` | backwards delete one character | | ||
| `<delete>` / `ctrl-d` | forwards delete one character | | ||
| `shift-<backspace>` / `ctrl-u` | delete from cursor to beginning | | ||
| `shift-<delete>` / `ctrl-e` | delete from cursor to end | | ||
| `alt-<backspace>` / `ctrl-w` | delete from cursor to beginning of word | | ||
| `ctrl-x` / `alt-x` | cut to clipboard | | ||
| `ctrl-c` / `alt-c` | copy to clipboard | | ||
| `ctrl-v` / `alt-v` | paste to clipboard | | ||
|
||
## Live mode | ||
|
||
| Key | Action | | ||
|------------------|---------------------| | ||
| `<down>` / `C-n` | history next | | ||
| `<up>` / `C-p` | history previous | | ||
| `<enter>` | execute command | | ||
| `[` / `]` | switch to edit mode | | ||
|
||
## Edit mode | ||
|
||
| Key | Action | | ||
|--------------------|---------------------------| | ||
| `<down>` / `C-n` | line down | | ||
| `<up>` / `C-p` | line up | | ||
| `[` | previous script | | ||
| `]` | next script | | ||
| `<enter>` | enter command | | ||
| `shift-<enter>` | insert command | | ||
|
||
## Pattern mode | ||
|
||
The pattern mode clipboard is independent of text and code clipboard. | ||
|
||
| Key | Action | | ||
|---------------------|---------------------------------------------------------------------------------------| | ||
| `<down>` | move down | | ||
| `alt-<down>` | move a page down | | ||
| `<up>` | move up | | ||
| `alt-<up>` | move a page up | | ||
| `<left>` | move left | | ||
| `alt-<left>` | move to the very left | | ||
| `<right>` | move right | | ||
| `alt-<right>` | move to the very right | | ||
| `[` | decrement by 1 | | ||
| `]` | increment by 1 | | ||
| `<backspace>` | delete a digit | | ||
| `shift-<backspace>` | delete an entry, shift numbers up | | ||
| `<enter>` | move down (increase length only if on the entry immediately after the current length) | | ||
| `shift-<enter>` | duplicate entry and shift downwards (increase length as `<enter>`) | | ||
| `alt-x` | cut value (n.b. `ctrl-x` not supported) | | ||
| `alt-c` | copy value (n.b. `ctrl-c` not supported) | | ||
| `alt-v` | paste value (n.b. `ctrl-v` not supported) | | ||
| `shift-alt-v` | insert value | | ||
| `shift-l` | set length to current position | | ||
| `alt-l` | go to current length entry | | ||
| `shift-s` | set start to current position | | ||
| `alt-s` | go to start entry | | ||
| `shift-e` | set end to current position | | ||
| `alt-e` | go to end entry | | ||
| `-` | negate value | | ||
| `<space>` | toggle non-zero to zero, and zero to 1 | | ||
| `0` to `9` | numeric entry | | ||
|
||
## Preset read mode | ||
|
||
| Key | Action | | ||
|------------------|-------------| | ||
| `<down>` / `C-n` | line down | | ||
| `<up>` / `C-p` | line up | | ||
| `<left>` / `[` | preset down | | ||
| `<right>` / `]` | preset up | | ||
| `<enter>` | load preset | | ||
|
||
## Preset write mode | ||
|
||
| Key | Action | | ||
|------------------|-------------| | ||
| `<down>` / `C-n` | line down | | ||
| `<up>` / `C-p` | line up | | ||
| `[` | preset down | | ||
| `]` | preset up | | ||
| `<enter>` | enter text | | ||
| `alt-<enter>` | save preset | | ||
|
||
## Help mode | ||
|
||
| Key | Action | | ||
|------------------|---------------| | ||
| `<down>` / `C-n` | line down | | ||
| `<up>` / `C-p` | line up | | ||
| `<left>` / `[` | previous page | | ||
| `<right>` / `]` | next page | |
Submodule libavr32
updated
16 files
+2 −1 | conf/conf_usb_host.h | |
+6 −4 | src/arp.c | |
+0 −2 | src/dac.c | |
+16 −9 | src/events.c | |
+3 −0 | src/events.h | |
+9 −17 | src/i2c.c | |
+8 −6 | src/i2c.h | |
+8 −12 | src/init_teletype.c | |
+0 −4 | src/init_teletype.h | |
+1 −0 | src/kbd.c | |
+0 −2 | src/kbd.h | |
+33 −5 | src/timers.c | |
+4 −0 | src/timers.h | |
+21 −0 | src/usb/msc/msc.c | |
+10 −0 | src/usb/msc/msc.h | |
+2 −3 | test/include/conf_tc_irq.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.