diff --git a/ansi/zone.go b/ansi/zone.go new file mode 100644 index 00000000..08cd73d6 --- /dev/null +++ b/ansi/zone.go @@ -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" +}