mirror of
https://git.mills.io/saltyim/saltyim.git
synced 2024-06-28 17:51:04 +00:00
![James Mills](/assets/img/avatar_default.png)
Co-authored-by: James Mills <prologic@shortcircuit.net.au> Reviewed-on: https://git.mills.io/prologic/saltyim/pulls/38
11 lines
207 B
Go
11 lines
207 B
Go
package tui
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
// SetTerminalTitle sets the Terminal/Console's title
|
|
func SetTerminalTitle(format string, args ...interface{}) {
|
|
fmt.Printf("\033]0;%s\007", fmt.Sprintf(format, args...))
|
|
}
|