Skip to content

Commit

Permalink
feat(ansi): add SetZone function for setting the bubblezone id
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Nov 5, 2024
1 parent 318a466 commit 6f2b6b9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ansi/zone.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package ansi

import "strconv"

// SetZone returns a sequence for setting the zone id of a cell.
//
// See: https://github.com/lrstanley/bubblezone
func SetZone(zone int) string {
return "\x1b[" + strconv.Itoa(zone) + "z"
}

0 comments on commit 6f2b6b9

Please sign in to comment.