From 8cdb185ced25096923ee9830b352710d1fe46594 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Thu, 12 Dec 2024 11:58:39 -0500 Subject: [PATCH] feat(cellbuf): add SetColorProfile method --- cellbuf/window.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cellbuf/window.go b/cellbuf/window.go index 60ea211b..767a7b13 100644 --- a/cellbuf/window.go +++ b/cellbuf/window.go @@ -267,6 +267,11 @@ type Screen struct { var _ Window = &Screen{} +// SetColorProfile sets the color profile to use when writing to the screen. +func (s *Screen) SetColorProfile(p colorprofile.Profile) { + s.opts.Profile = p +} + // SetRelativeCursor sets whether to use relative cursor movements. func (s *Screen) SetRelativeCursor(v bool) { s.opts.RelativeCursor = v