diff options
Diffstat (limited to 'pkg/draw/full_escape.go')
-rw-r--r-- | pkg/draw/full_escape.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkg/draw/full_escape.go b/pkg/draw/full_escape.go new file mode 100644 index 0000000..e6a68de --- /dev/null +++ b/pkg/draw/full_escape.go @@ -0,0 +1,9 @@ +package draw + +import "strings" + +const invertedSpace = "\033[7m \033[27m" + +func FullEscape(full string) string { + return strings.Replace(full, string(fullBlock), invertedSpace, -1) +} |