mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
seqs
This commit is contained in:
@ -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
24
docs/sequences/bel.md
Normal 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
19
docs/sequences/bs.md
Normal 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
|
Reference in New Issue
Block a user