Nikolai Kondrashov
Nikolai Kondrashov
Thanks @anazmy, unfortunately script/scriptreplay don't use any terminal emulation and read/write directly to/from the actual terminal.
The [neovim](https://github.com/neovim) project [uses](https://news.ycombinator.com/item?id=9132352) [libvterm](https://github.com/neovim/libvterm) to implement a built-in terminal emulator. We might do the same.
We can also use a built-in terminal emulator in tlog-rec to build "keyframes" (terminal emulator state snapshots) while recording, so that playback would be ready for random positioning right away....
In theory, tlog-rec can be modified to not record a session ID (which seems unavailable on Windows). However, the question is how important it would be to support this case....
@bmayerornl, yeah, that's hard-coded logic at the moment, and there's no way to change it from the command line.
We can have two terminals spawned by tlog-play: one having playback with resizing, another scrolling the joined messages. This wouldn't be terribly useful, but at least would show something. Ultimately...
Perhaps a **simple** GTK app embedding the terminal widget and some sort of box with the logs would be easy enough and better.
Hi Hai, Here is one which is repeated often: https://github.com/Scribery/tlog/blob/master/src/tlog-rec.c#L67-L69 Here is another which can be implemented as the previous one: https://github.com/Scribery/tlog/blob/master/src/tlog-rec.c#L85-L87 And another: https://github.com/Scribery/tlog/blob/master/src/tlog-play.c#L130-L132 Look around and you'll find...
We can do that later. I'd rather not add that yet, as there wasn't much need for it so far, and it would increase the code size.
I think I'll be able to understand you better, if I just saw the code you want to write :) Just make a PR with the macros you want to...