toolong
toolong copied to clipboard
`tl` doesn't exit gracefully (and hangs if called from inside another terminal UI)
OK bear with me here - I wanted to use this to view kubernetes pod logs, easy:
kubectl logs job-123 -f | tl
Except most of my time in kubernetes is spent using k9s
And k9s
offers the ability to write custom plugins
So I thought, I'll bind Ctrl-L
in k9s
to kc log job-123 | tl
and I'll have much better logging!
However due to the way tl
handles quitting, k9s
hangs whenever I Ctrl-C
tl
.
I then have to SIGKILL
everything in order to get my terminal back...
It would be really cool if there was a way to more elegantly quit (which I suspect would fix this) or if the handling around SIGINT
was a improved.