Skip to content

Instantly share code, notes, and snippets.

@smook1980
Created October 18, 2016 00:36
Show Gist options
  • Save smook1980/312fd713e10ab15660638fb0b6278ced to your computer and use it in GitHub Desktop.
Save smook1980/312fd713e10ab15660638fb0b6278ced to your computer and use it in GitHub Desktop.
Multiline Terminal Codes
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