Make set_pointer_shapes private

This commit is contained in:
Kovid Goyal
2023-10-17 21:47:03 +05:30
parent 45a98b19c5
commit 6a50af12d3
2 changed files with 19 additions and 18 deletions

View File

@@ -472,22 +472,6 @@ func (self *Loop) ClearPointerShapes() (ans []PointerShape) {
return ans
}
func (self *Loop) SetPointerShapes(ps []PointerShape) {
self.pointer_shapes = ps
if len(ps) > 0 {
s := strings.Builder{}
s.WriteString("\x1b]22;>")
for i, x := range ps {
s.WriteString(x.String())
if i+1 < len(ps) {
s.WriteByte(',')
}
}
s.WriteString("\x1b\\")
self.QueueWriteString(s.String())
}
}
func (self *Loop) CurrentPointerShape() (ans PointerShape, has_shape bool) {
if len(self.pointer_shapes) > 0 {
has_shape = true