1 -- not a full implementation, but demonstrates the idea.
2 -- A full implementation is not that easy...
9 title
= string.match(buf
, "\027k\027.$ (%w+).-\n")
10 if title
~= nil and title
~= win
.title
then
17 new
= string.match(buf
, ".*\n(.*)")
21 if string.len(buf
) >= 20 then
27 win
:hook("onoutput", aka
)
30 ticket1
= screen
.hook("oncreatewindow", winhook
)