-
-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This was primarily to get native diff'ed frame rendering. Termbox-go doesn't support true colours, thus the switch to Tcell, but as it turns out Tcell claims to have wider platform support, so it looks like an especially good change. So now the CLI will only try to update the terminal screen when cells actually change. This has some significant performant gains, especially when using Browsh over SSH. Also note that this required a complete change of the frame data structure sent over the websocket. Previously it was a little structured, but now it is just a plain 1 dimensional array of pure strings, even the RGB components are sent as integers in strings. If I can find a way to unmarshal mixed arrays in Golang then it'll be worth sending a mixed JSON array to save some compute overhead.
- Loading branch information
Showing
12 changed files
with
254 additions
and
146 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.