mirror of
https://github.com/mvvasilev/last_light.git
synced 2025-04-19 12:49:52 +03:00
18 lines
217 B
Go
18 lines
217 B
Go
package main
|
|
|
|
import (
|
|
"io"
|
|
"os"
|
|
|
|
"golang.org/x/term"
|
|
)
|
|
|
|
func main() {
|
|
// fd := int(os.Stdout.Fd())
|
|
|
|
// term.MakeRaw(fd)
|
|
|
|
term := term.NewTerminal(io.ReadWriter(os.Stdout), ">")
|
|
|
|
term.Write([]byte("1\n2\n"))
|
|
}
|