Skip to content

Commit

Permalink
feat(cellbuf): add SetColorProfile method
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Dec 12, 2024
1 parent fdc230c commit 8cdb185
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cellbuf/window.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8cdb185

Please sign in to comment.