fix ttyrec
Merge branch 'dev' of github.com:skatkatt/tg into dev