File: main.go

package info (click to toggle)
golang-github-shiena-ansicolor 0.0~git20151119.0.a422bbe-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 112 kB
  • sloc: makefile: 5
file content (27 lines) | stat: -rw-r--r-- 504 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright 2014 shiena Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.

/*

The ansicolor command colors a console text by ANSI escape sequence like wac.

    $ go get github.com/shiena/ansicolor/ansicolor

See also:
    https://github.com/aslakhellesoy/wac

*/
package main

import (
	"io"
	"os"

	"github.com/shiena/ansicolor"
)

func main() {
	w := ansicolor.NewAnsiColorWriter(os.Stdout)
	io.Copy(w, os.Stdin)
}