Skip to content

Commit 2c0dc19

Browse files
add xtgettcap support (#1157)
* add xtgettcap support * update * update handler tests * add one more test * single support instead * Update docs/docs/escape-sequence-support.md Co-authored-by: Ayman Bagabas <[email protected]> * add sixel and iterm2 to termcap --------- Co-authored-by: Ayman Bagabas <[email protected]>
1 parent 4ba19a1 commit 2c0dc19

File tree

4 files changed

+558
-8
lines changed

4 files changed

+558
-8
lines changed

docs/docs/escape-sequence-support.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,4 @@ brevity.
113113
| ESCAPE | STATUS | NOTE |
114114
| --------- | -------- | ------------------------------- |
115115
| `DCS = s` | REJECTED | CSI ? 2026 h/l are used instead |
116+
| `DCS + q` | SUPPORTED | XTGETTCAP - Query terminal capabilities (only one capability per request is supported) |

docs/docs/releases.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,10 @@ language: 'en'
77

88
## 0.2.20 (unreleased)
99

10-
- **Performance**: Implemented SIMD-accelerated UTF-8 validation throughout Rio terminal using the `simdutf8` crate.
11-
- **Pure ASCII text**: 2.6-3.2x faster validation
12-
- **Mixed UTF-8 content**: Up to 1536x faster validation
13-
- **Heavy UTF-8 content**: Up to 479x faster validation
14-
- **Architecture support**: AVX2/SSE4.2 (x86-64), NEON (ARM64), SIMD128 (WASM)
15-
- **Automatic optimization**: Runtime detection selects fastest implementation available
16-
- **Improved areas**: ANSI escape sequence parsing, terminal text processing, OSC parameter handling, hyperlink processing, image protocol parsing, and clipboard operations
17-
- TBD.
10+
- Performance: Implemented SIMD-accelerated UTF-8 validation throughout Rio terminal using the `simdutf8` crate.
11+
- Architecture support: AVX2/SSE4.2 (x86-64), NEON (ARM64), SIMD128 (WASM)
12+
- Automatic optimization: Runtime detection selects fastest implementation available
13+
- Support for XTGETTCAP (XTerm Get Termcap) escape sequence for querying terminal capabilities.
1814

1915
## 0.2.19
2016

rio-backend/src/crosswords/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2940,6 +2940,12 @@ impl<U: EventListener> Handler for Crosswords<U> {
29402940
..graphic
29412941
});
29422942
}
2943+
2944+
#[inline]
2945+
fn xtgettcap_response(&mut self, response: String) {
2946+
self.event_proxy
2947+
.send_event(RioEvent::PtyWrite(response), self.window_id);
2948+
}
29432949
}
29442950

29452951
pub struct CrosswordsSize {

0 commit comments

Comments
 (0)