mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-20 06:20:32 +00:00
lint all Md files
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
# Control and Escape Sequences
|
||||
|
||||
⚠️ **This is super out of date. Ghostty's support is much better
|
||||
⚠️ **This is super out of date. Ghostty's support is much better
|
||||
than this document seems. TODO to update this.** ⚠️
|
||||
|
||||
|
||||
This is the list of control and escape sequences known in the ecosystem
|
||||
of terminal emulators and their implementation status in ghostty. Note that
|
||||
some control sequences may never be implemented in ghostty. In these scenarios,
|
||||
@@ -11,35 +10,35 @@ 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. In many
|
||||
cases, the missing functionality is very specific or esoteric. Regardless,
|
||||
we don't consider a sequence a green checkmark until all known feature
|
||||
interactions are complete.
|
||||
* ❌ - 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.
|
||||
- ✅ - 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. In many
|
||||
cases, the missing functionality is very specific or esoteric. Regardless,
|
||||
we don't consider a sequence a green checkmark until all known feature
|
||||
interactions are complete.
|
||||
- ❌ - 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.
|
||||
|
||||
| ID | ASCII | Name | Status |
|
||||
|:---:|:-----:|:-----|:------:|
|
||||
| `ENQ` | `0x05` | [Enquiry](sequences/enq.md) | ✅ |
|
||||
| `BEL` | `0x07` | [Bell](sequences/bel.md) | ❌ |
|
||||
| `BS` | `0x08` | [Backspace](sequences/bs.md) | ⚠️ |
|
||||
| `TAB` | `0x09` | [Tab](sequences/tab.md) | ⚠️ |
|
||||
| `LF` | `0x0A` | [Linefeed](sequences/lf.md) | ⚠️ |
|
||||
| `VT` | `0x0B` | [Vertical Tab](sequences/vt.md) | ✅ |
|
||||
| `FF` | `0x0C` | [Form Feed](sequences/ff.md) | ✅ |
|
||||
| `CR` | `0x0D` | [Carriage Return](sequences/cr.md) | ⚠️ |
|
||||
| `SO` | `0x0E` | [Shift Out](#) | ❌ |
|
||||
| `SI` | `0x0F` | [Shift In](#) | ❌ |
|
||||
| `CAN` | `0x18` | [Cancel Parsing](sequences/can.md) | ✅ |
|
||||
| `SUB` | `0x1A` | [Cancel Parsing (Alias)](sequences/can.md) | ✅ |
|
||||
| `IND` | `ESC D` | [Index](sequences/ind.md) | ✅ |
|
||||
| `NEL` | `ESC E` | [Next Line](sequences/nel.md) | ✅ |
|
||||
| `HTS` | `ESC H` | [Horizontal Tab Set](sequences/hts.md) | ✅ |
|
||||
| `RI` | `ESC M` | [Reverse Index](sequences/ri.md) | ⚠️ |
|
||||
| `SS2` | `ESC N` | [Single Shift 2](#) | ❌ |
|
||||
| `SS3` | `ESC O` | [Single Shift 3](#) | ❌ |
|
||||
| `SPA` | `ESC V` | [Start Protected Area](#) | ❌ |
|
||||
| `EPA` | `ESC W` | [End Protected Area](#) | ❌ |
|
||||
| ID | ASCII | Name | Status |
|
||||
| :---: | :-----: | :----------------------------------------- | :----: |
|
||||
| `ENQ` | `0x05` | [Enquiry](sequences/enq.md) | ✅ |
|
||||
| `BEL` | `0x07` | [Bell](sequences/bel.md) | ❌ |
|
||||
| `BS` | `0x08` | [Backspace](sequences/bs.md) | ⚠️ |
|
||||
| `TAB` | `0x09` | [Tab](sequences/tab.md) | ⚠️ |
|
||||
| `LF` | `0x0A` | [Linefeed](sequences/lf.md) | ⚠️ |
|
||||
| `VT` | `0x0B` | [Vertical Tab](sequences/vt.md) | ✅ |
|
||||
| `FF` | `0x0C` | [Form Feed](sequences/ff.md) | ✅ |
|
||||
| `CR` | `0x0D` | [Carriage Return](sequences/cr.md) | ⚠️ |
|
||||
| `SO` | `0x0E` | [Shift Out](#) | ❌ |
|
||||
| `SI` | `0x0F` | [Shift In](#) | ❌ |
|
||||
| `CAN` | `0x18` | [Cancel Parsing](sequences/can.md) | ✅ |
|
||||
| `SUB` | `0x1A` | [Cancel Parsing (Alias)](sequences/can.md) | ✅ |
|
||||
| `IND` | `ESC D` | [Index](sequences/ind.md) | ✅ |
|
||||
| `NEL` | `ESC E` | [Next Line](sequences/nel.md) | ✅ |
|
||||
| `HTS` | `ESC H` | [Horizontal Tab Set](sequences/hts.md) | ✅ |
|
||||
| `RI` | `ESC M` | [Reverse Index](sequences/ri.md) | ⚠️ |
|
||||
| `SS2` | `ESC N` | [Single Shift 2](#) | ❌ |
|
||||
| `SS3` | `ESC O` | [Single Shift 3](#) | ❌ |
|
||||
| `SPA` | `ESC V` | [Start Protected Area](#) | ❌ |
|
||||
| `EPA` | `ESC W` | [End Protected Area](#) | ❌ |
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
# Bell
|
||||
|
||||
| | |
|
||||
| --- | --- |
|
||||
| | |
|
||||
| ---- | ------ |
|
||||
| Text | |
|
||||
| Hex | `0x07` |
|
||||
| Hex | `0x07` |
|
||||
|
||||
Rings a "bell" to alert the operator to some condition.
|
||||
|
||||
## Implementation Details
|
||||
|
||||
* ghostty logs "BELL"
|
||||
- ghostty logs "BELL"
|
||||
|
||||
## TODO
|
||||
|
||||
* Add a configurable visual 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.
|
||||
- Add a configurable visual 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
|
||||
- https://vt100.net/docs/vt100-ug/chapter3.html
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# Backspace
|
||||
|
||||
| | |
|
||||
| --- | --- |
|
||||
| | |
|
||||
| ---- | ------ |
|
||||
| Text | |
|
||||
| Hex | `0x08` |
|
||||
| Hex | `0x08` |
|
||||
|
||||
Move the cursor left one cell.
|
||||
|
||||
@@ -11,9 +11,9 @@ TODO: Details about how this interacts with soft wrapping.
|
||||
|
||||
## Implementation Details
|
||||
|
||||
* ghostty implements this naively as `cursor.x -|= 1` (`-|=` being a
|
||||
saturating subtraction).
|
||||
- ghostty implements this naively as `cursor.x -|= 1` (`-|=` being a
|
||||
saturating subtraction).
|
||||
|
||||
## TODO
|
||||
|
||||
* Soft wrap integration
|
||||
- Soft wrap integration
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# Cancel Parsing
|
||||
|
||||
| | |
|
||||
| --- | --- |
|
||||
| Text | |
|
||||
| Hex | `0x18` or `0x1A` |
|
||||
| | |
|
||||
| ---- | ---------------- |
|
||||
| Text | |
|
||||
| Hex | `0x18` or `0x1A` |
|
||||
|
||||
Cancels sequence parsing. Any partially completed sequence such as `ESC`
|
||||
can send `0x18` and revert back to an unparsed state. The sequence characters
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
# Carriage Return
|
||||
|
||||
| | |
|
||||
| --- | --- |
|
||||
| | |
|
||||
| ---- | ------ |
|
||||
| Text | |
|
||||
| Hex | `0x0D` |
|
||||
| Hex | `0x0D` |
|
||||
|
||||
Moves the cursor to the left-most column and resets any pending wrap flags.
|
||||
|
||||
## TODO
|
||||
|
||||
* Integration with left/right scrolling margins
|
||||
* Integration with origin mode
|
||||
- Integration with left/right scrolling margins
|
||||
- Integration with origin mode
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
# Enquiry (Answerback)
|
||||
|
||||
| | |
|
||||
| --- | --- |
|
||||
| | |
|
||||
| ---- | ------ |
|
||||
| Text | |
|
||||
| Hex | `0x05` |
|
||||
| Hex | `0x05` |
|
||||
|
||||
Sends an answerback string. In the VT100, this was configurable by the
|
||||
operator.
|
||||
|
||||
## Implementation Details
|
||||
|
||||
* ghostty always sends `""`
|
||||
- ghostty always sends `""`
|
||||
|
||||
## TODO
|
||||
|
||||
* Make the answerback configurable
|
||||
- Make the answerback configurable
|
||||
|
||||
## References
|
||||
|
||||
* https://vt100.net/docs/vt100-ug/chapter3.html
|
||||
- https://vt100.net/docs/vt100-ug/chapter3.html
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# Form Feed
|
||||
|
||||
| | |
|
||||
| --- | --- |
|
||||
| | |
|
||||
| ---- | ------ |
|
||||
| Text | |
|
||||
| Hex | `0x0C` |
|
||||
| Hex | `0x0C` |
|
||||
|
||||
Equivalent to [linefeed](lf.md).
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Horizontal Tab Set
|
||||
|
||||
| | |
|
||||
| --- | --- |
|
||||
| | |
|
||||
| ---- | ----------- |
|
||||
| Text | `ESC H` |
|
||||
| Hex | `0x18 0x48` |
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Index
|
||||
|
||||
| | |
|
||||
| --- | --- |
|
||||
| | |
|
||||
| ---- | ----------- |
|
||||
| Text | `ESC D` |
|
||||
| Hex | `0x18 0x44` |
|
||||
|
||||
@@ -10,10 +10,10 @@ if necessary. This always unsets the pending wrap state.
|
||||
|
||||
If the cursor is currently outside the scrolling region:
|
||||
|
||||
* move the cursor down one line if it is not on bottom line of the screen.
|
||||
- move the cursor down one line if it is not on bottom line of the screen.
|
||||
|
||||
If the cursor is inside the scrolling region:
|
||||
|
||||
* If the cursor is on the bottom-most line of the screen: invoke
|
||||
[scroll up](su.md) with the value `1`.
|
||||
* Else: move the cursor one line down.
|
||||
- If the cursor is on the bottom-most line of the screen: invoke
|
||||
[scroll up](su.md) with the value `1`.
|
||||
- Else: move the cursor one line down.
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
# Linefeed
|
||||
|
||||
| | |
|
||||
| --- | --- |
|
||||
| | |
|
||||
| ---- | ------ |
|
||||
| Text | |
|
||||
| Hex | `0x0A` |
|
||||
| Hex | `0x0A` |
|
||||
|
||||
Invoke [Index](ind.md).
|
||||
|
||||
## TODO
|
||||
|
||||
* Linefeed mode (mode 20)
|
||||
- Linefeed mode (mode 20)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Index
|
||||
|
||||
| | |
|
||||
| --- | --- |
|
||||
| | |
|
||||
| ---- | ----------- |
|
||||
| Text | `ESC E` |
|
||||
| Hex | `0x18 0x45` |
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Reverse Index
|
||||
|
||||
| | |
|
||||
| --- | --- |
|
||||
| | |
|
||||
| ---- | ----------- |
|
||||
| Text | `ESC M` |
|
||||
| Hex | `0x18 0x4D` |
|
||||
|
||||
@@ -9,13 +9,13 @@ Reverse [index](ind.md). This unsets the pending wrap state.
|
||||
|
||||
If the cursor is outside of the scrolling region:
|
||||
|
||||
* move the cursor one line up unless it is the top-most line of the screen.
|
||||
- move the cursor one line up unless it is the top-most line of the screen.
|
||||
|
||||
If the cursor is inside the scrolling region:
|
||||
|
||||
* If the cursor is on the top-most line: invoke [scroll down](#) with value `1`
|
||||
* Else: move the cursor one line up.
|
||||
- If the cursor is on the top-most line: invoke [scroll down](#) with value `1`
|
||||
- Else: move the cursor one line up.
|
||||
|
||||
## TODO
|
||||
|
||||
* Scroll region edge cases
|
||||
- Scroll region edge cases
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# Tab
|
||||
|
||||
| | |
|
||||
| --- | --- |
|
||||
| | |
|
||||
| ---- | ------ |
|
||||
| Text | |
|
||||
| Hex | `0x09` |
|
||||
| Hex | `0x09` |
|
||||
|
||||
Move the cursor right to the next tab stop.
|
||||
|
||||
@@ -17,5 +17,5 @@ Initially, tab stops are set on every 8th column.
|
||||
|
||||
## TODO
|
||||
|
||||
* Integration with left/right margins of the scrolling region.
|
||||
* How does horizontal tab interact with the pending wrap state?
|
||||
- Integration with left/right margins of the scrolling region.
|
||||
- How does horizontal tab interact with the pending wrap state?
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# Vertical Tab
|
||||
|
||||
| | |
|
||||
| --- | --- |
|
||||
| | |
|
||||
| ---- | ------ |
|
||||
| Text | |
|
||||
| Hex | `0x0B` |
|
||||
| Hex | `0x0B` |
|
||||
|
||||
Equivalent to [linefeed](lf.md).
|
||||
|
||||
Reference in New Issue
Block a user