Get gets the cursor position.
(view string)
| 70 | |
| 71 | // Get gets the cursor position. |
| 72 | func (c Cursors) Get(view string) (int, int) { |
| 73 | if v, ok := c[view]; ok { |
| 74 | return v.x, v.y |
| 75 | } |
| 76 | return 0, 0 |
| 77 | } |
| 78 | |
| 79 | // Set sets the cursor position. |
| 80 | func (c Cursors) Set(view string, x, y int) { |
no outgoing calls