Skip to content

Commit

Permalink
feat(cellbuf): add UseBackspaces method
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Feb 11, 2025
1 parent 99360d5 commit 040e353
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cellbuf/screen.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,11 @@ func (s *Screen) SetMethod(method ansi.Method) {
s.method = method
}

// UseBackspaces sets whether to use backspace characters to move the cursor.
func (s *Screen) UseBackspaces(v bool) {
s.opts.Backspace = v
}

// UseHardTabs sets whether to use hard tabs to optimize cursor movements.
func (s *Screen) UseHardTabs(v bool) {
s.opts.HardTabs = v
Expand Down

0 comments on commit 040e353

Please sign in to comment.