From ae2d2dbbe33a98cf41350ef37947c21461479d68 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Fri, 10 Apr 2015 16:37:39 +0200 Subject: Initial import --- vt100_test.go | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 vt100_test.go (limited to 'vt100_test.go') diff --git a/vt100_test.go b/vt100_test.go new file mode 100644 index 0000000..c2eb891 --- /dev/null +++ b/vt100_test.go @@ -0,0 +1,39 @@ +package vt100 + +import "fmt" + +func ExampleNormal() { + fmt.Println(Normal("This is a normal line")) + // Output: This is a normal line +} + +func ExampleBold() { + fmt.Println(Bold("This is a bold line")) + // Output: This is a bold line +} + +func ExampleUnderline() { + fmt.Println(Underline("This line is underlined")) + // Output: This line is underlined +} + +func ExampleBlink() { + fmt.Println(Blink("This is a blinking line")) + // Output: This is a blinking line +} + +func ExampleInverse() { + fmt.Println(Inverse("This is inverse video")) + // Output: This is inverse video +} + +func ExampleDoubleWidth() { + fmt.Println(DoubleWidth("This is double width")) + // Output: #6This is double width +} + +func ExampleDoubleHeight() { + fmt.Println(DoubleHeight("This is double height")) + // Output: #3This is double height + // #4This is double height +} -- cgit v1.2.3