feat: add option to disable sgr pixel mode support

Defaults to enabled.

closes #440
This commit is contained in:
CJ van den Berg 2026-01-22 16:15:53 +01:00
parent 2ee92d2548
commit 3995946471
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
3 changed files with 8 additions and 1 deletions

View file

@ -201,6 +201,7 @@ fn init(allocator: Allocator) InitError!*Self {
instance_ = self;
defer instance_ = null;
self.rdr_.set_sgr_pixel_mode_support(self.config_.enable_sgr_pixel_mode_support);
self.rdr_.handler_ctx = self;
self.rdr_.dispatch_input = dispatch_input;
self.rdr_.dispatch_mouse = dispatch_mouse;