Created
October 18, 2016 00:36
-
-
Save smook1980/312fd713e10ab15660638fb0b6278ced to your computer and use it in GitHub Desktop.
Multiline Terminal Codes
This file contains hidden or 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
func invertColours() { | |
fmt.Print("\033[7m") | |
} | |
func resetStyle() { | |
fmt.Print("\033[0m") | |
} | |
func moveUp() { | |
fmt.Print("\033[1A") | |
} | |
func clearLine() { | |
fmt.Print("\033[2K\r") | |
} | |
func hideCursor() { | |
fmt.Print("\033[?25l") | |
} | |
func showCursor() { | |
fmt.Print("\033[?25h") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment