1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

term: fix set_terminal_title on nix

This commit is contained in:
Delyan Angelov 2023-01-14 11:08:49 +02:00
parent fd07f7df69
commit 7c571c0945
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -85,7 +85,7 @@ pub fn set_terminal_title(title string) bool {
if os.is_atty(1) <= 0 || os.getenv('TERM') == 'dumb' {
return true
}
print('\033]0')
print('\033]30;')
print(title)
print('\007')
flush_stdout()