Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-tui/src/backend/termina.rs')
-rw-r--r--helix-tui/src/backend/termina.rs24
1 files changed, 2 insertions, 22 deletions
diff --git a/helix-tui/src/backend/termina.rs b/helix-tui/src/backend/termina.rs
index ad1c7c68..52912161 100644
--- a/helix-tui/src/backend/termina.rs
+++ b/helix-tui/src/backend/termina.rs
@@ -3,7 +3,7 @@ use std::io::{self, Write as _};
use helix_view::{
editor::KittyKeyboardProtocolConfig,
graphics::{CursorKind, Rect, UnderlineStyle},
- theme::{self, Color, Modifier},
+ theme::{Color, Modifier},
};
use termina::{
escape::{
@@ -52,7 +52,6 @@ struct Capabilities {
synchronized_output: bool,
true_color: bool,
extended_underlines: bool,
- theme_mode: Option<theme::Mode>,
}
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq)]
@@ -149,13 +148,11 @@ impl TerminaBackend {
// If we only receive the device attributes then we know it is not.
write!(
terminal,
- "{}{}{}{}{}{}{}",
+ "{}{}{}{}{}{}",
// Synchronized output
Csi::Mode(csi::Mode::QueryDecPrivateMode(csi::DecPrivateMode::Code(
csi::DecPrivateModeCode::SynchronizedOutput
))),
- // Mode 2031 theme updates. Query the current theme.
- Csi::Mode(csi::Mode::QueryTheme),
// True color and while we're at it, extended underlines:
// <https://github.com/termstandard/colors?tab=readme-ov-file#querying-the-terminal>
Csi::Sgr(csi::Sgr::Background(TEST_COLOR.into())),
@@ -187,9 +184,6 @@ impl TerminaBackend {
})) => {
capabilities.synchronized_output = true;
}
- Event::Csi(Csi::Mode(csi::Mode::ReportTheme(mode))) => {
- capabilities.theme_mode = Some(mode.into());
- }
Event::Dcs(dcs::Dcs::Response {
value: dcs::DcsResponse::GraphicRendition(sgrs),
..
@@ -326,11 +320,6 @@ impl TerminaBackend {
}
}
- if self.capabilities.theme_mode.is_some() {
- // Enable mode 2031 theme mode notifications:
- write!(self.terminal, "{}", decset!(Theme))?;
- }
-
Ok(())
}
@@ -343,11 +332,6 @@ impl TerminaBackend {
)?;
}
- if self.capabilities.theme_mode.is_some() {
- // Mode 2031 theme notifications.
- write!(self.terminal, "{}", decreset!(Theme))?;
- }
-
Ok(())
}
@@ -566,10 +550,6 @@ impl Backend for TerminaBackend {
fn supports_true_color(&self) -> bool {
self.capabilities.true_color
}
-
- fn get_theme_mode(&self) -> Option<theme::Mode> {
- self.capabilities.theme_mode
- }
}
impl Drop for TerminaBackend {