File: main.go

package info (click to toggle)
golang-github-mattn-go-colorable 0.1.13-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports, experimental, sid, trixie
  • size: 148 kB
  • sloc: sh: 9; makefile: 3
file content (16 lines) | stat: -rw-r--r-- 284 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package main

import (
	"bufio"
	"fmt"

	"github.com/mattn/go-colorable"
)

func main() {
	stdOut := bufio.NewWriter(colorable.NewColorableStdout())

	fmt.Fprint(stdOut, "\x1B[3GMove to 3rd Column\n")
	fmt.Fprint(stdOut, "\x1B[1;2HMove to 2nd Column on 1st Line\n")
	stdOut.Flush()
}