What do you think about this idea?
Whenever a user presses any key on the browser terminal, I send that
keystroke to the server, and golang sends it to the stdin of the
program. Now, I record the change that made to the output buffer. I
transmit the diff back to the browser, and it alters display.
Where would I be stuck if I chose this simple naive approach?
I have seen nsf's termbox-go project, which has an option which
returns the complete output buffer array of cells(attribute and
character), so I think getting the output buffer should not be a
problem.
Why do you guys feel this is gonna be very tough?
On Mon, May 28, 2012 at 10:59 AM, Uriel <
ur...@berlinblue.org> wrote:
> Is not that simple, for an attempt to make a simple terminal emulator
> see:
http://st.suckless.org/
>
> But as far as i know nobody has succeeded, writing a terminal emulator
> is not as hard as writing a web browser, but is closer than you might
> think.