fyne-io / terminal

A graphical terminal emulator for Linux using Fyne
Other
256 stars 38 forks source link

Rework output processing #53

Closed mgazza closed 11 months ago

mgazza commented 11 months ago

Currently the output processing is done via first casting the byte slice to a string and then processing each rune in that. This causes issues where we need to process the byte stream in a raw format. This commit alters the processing of the output stream, only casting to a rune when appropriate. This is a nessesarry prerequisite for transparent printing features. This commit also adds the state to the terminal struct, this allows for no side effects when dealing with multiple threads altering the state.