1
0
Fork 0

vis: tweak title

main
urosm 2024-09-13 20:30:55 +02:00
parent 852aeb11f3
commit 732cf0b2c3
1 changed files with 2 additions and 2 deletions

View File

@ -123,10 +123,10 @@ e.subscribe(e.WIN_STATUS, function(win)
win:status(table.concat({ left, ('^'):rep(win.width - #left - #right - 2)}, ' '), right)
end)
-- title
-- set title
local modified = false
local function set_title(title)
os.execute('printf "\\e];vis: '..title..(modified and '[+]' or '')..'\\e"')
os.execute('printf "\\e];'..title..(modified and '[+]' or '')..'\\e"')
end
e.subscribe(e.WIN_OPEN, function(win)