This commit is contained in:
Mitchell Hashimoto
2022-07-13 09:46:37 -07:00
parent def6fa5f2a
commit afcb99dcdc
3 changed files with 54 additions and 0 deletions

View File

@ -5,6 +5,17 @@ of terminal emulators and their implementation status in ghostty. Note that
some control sequences may never be implemented in ghostty. In these scenarios, some control sequences may never be implemented in ghostty. In these scenarios,
it is noted why. it is noted why.
Status meanings:
* ✅ - Implementation is complete and considered 100% accurate.
* ⚠️ - Implementation works, but may be missing some functionality. The
details of how well it works or doesn't are in the linked page.
* ❌ - Implementation is effectively non-functional, but ghostty continues
in the face of it (probably in some broken state).
* 💥 - Ghostty crashes if this control sequence is sent.
| Seq | ASCII | Name | Status | | Seq | ASCII | Name | Status |
|:---:|:-----:|:-----|:------:| |:---:|:-----:|:-----|:------:|
| `ENQ` | `0x05` | [Enquiry](sequences/enq.md) | ✅ | | `ENQ` | `0x05` | [Enquiry](sequences/enq.md) | ✅ |
| `BEL` | `0x07` | [Bell](sequences/bel.md) | ❌ |
| `BS` | `0x08` | [Backspace](sequences/bs.md) | ⚠️ |

24
docs/sequences/bel.md Normal file
View File

@ -0,0 +1,24 @@
# Bell
| | |
| --- | --- |
| Text | |
| Hex | `0x07` |
Rings a "bell" to alert the operator to some condition.
## Implementation Details
* ghostty logs "BELL"
## TODO
* Add a configurable visuable bell -- common in most terminal emulators --
to flash the border.
* Mark the window as requesting attention, most operating systems support
this. For example, Windows windows will flash in the toolbar.
* Support an audible bell.
## References
* https://vt100.net/docs/vt100-ug/chapter3.html

19
docs/sequences/bs.md Normal file
View File

@ -0,0 +1,19 @@
# Backspace
| | |
| --- | --- |
| Text | |
| Hex | `0x08` |
Move the cursor left one cell.
TODO: Details about how this interacts with soft wrapping.
## Implementation Details
* ghostty implements this naively as `cursor.x -|= 1` (`-|=` being a
saturating substraction).
## TODO
* Soft wrap integration