File: display_posix.go

package info (click to toggle)
golang-github-alecaivazis-survey 2.3.6%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports
  • size: 636 kB
  • sloc: makefile: 12
file content (12 lines) | stat: -rw-r--r-- 176 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
// +build !windows

package terminal

import (
	"fmt"
)

func EraseLine(out FileWriter, mode EraseLineMode) error {
	_, err := fmt.Fprintf(out, "\x1b[%dK", mode)
	return err
}