Last active
July 25, 2016 01:46
-
-
Save sugilog/3f0293d12f56791d45b5 to your computer and use it in GitHub Desktop.
Stdout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import( | |
"fmt" | |
) | |
func main() { | |
chars := []string{ | |
"A", "B", "C", "D", "E", "F", "G", | |
"L", "M", "Z", | |
// Skip "H" | |
// => same as `command := exec.Command( "clear" ); command.Stdout = os.Stdout; command.Run() | |
// Skip them, no mean | |
// "I", "J", "K", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", | |
} | |
for _, c := range chars { | |
fmt.Println( "Test: " + c ) | |
fmt.Println( "----" ) | |
fmt.Print( "1234567890" ) | |
fmt.Print( "\033[0;0" + c ) | |
fmt.Print( "HOGEFUGA" ) | |
fmt.Println( "" ) | |
fmt.Println( "----" ) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test: A | |
---- HOGEFUGA | |
----567890 | |
Test: B | |
---- | |
1234567890HOGEFUGA | |
---- | |
Test: C | |
---- | |
1234567890 HOGEFUGA | |
---- | |
Test: D | |
---- | |
123456789HOGEFUGA | |
---- | |
Test: E | |
---- | |
HOGEFUGA90 | |
---- | |
Test: F | |
HOGEFUGA | |
----567890 | |
Test: G | |
---- | |
HOGEFUGA90 | |
---- | |
Test: L | |
---- | |
HOGEFUGA | |
---- | |
Test: M | |
---- | |
HOGEFUGA | |
---- | |
Test: Z | |
---- | |
12345678HOGEFUGA | |
---- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment