3 ms·
Well, it's not as hacky as you portray it to be. The windowing system already needed to be there for other aerc features (and the embedded terminal is used in m
by Sir_Cmpwn 7y ago
Well, it's not as hacky as you portray it to be. The windowing system already needed to be there for other aerc features (and the embedded terminal is used in more integrated contexts than just windows, too). The terminal emulation is delegated to libvterm, the same library vim uses for this purpose. The actual aerc code is pretty simple:
https://git.sr.ht/~sircmpwn/aerc/tree/master/widgets/terminal.go https://git.sr.ht/~sircmpwn/aerc/tree/master/widgets/termina...
<500 lines.