File: vtclean.go

package info (click to toggle)
golang-github-lunixbochs-vtclean 1.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports, bullseye, forky, sid, trixie
  • size: 92 kB
  • sloc: makefile: 3
file content (17 lines) | stat: -rw-r--r-- 259 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package main

import (
	"flag"
	"github.com/lunixbochs/vtclean"
	"io"
	"os"
)

func main() {
	color := flag.Bool("color", false, "enable color")
	flag.Parse()

	stdout := vtclean.NewWriter(os.Stdout, *color)
	defer stdout.Close()
	io.Copy(stdout, os.Stdin)
}