Commit graph

14 commits

Author SHA1 Message Date
Leroy Hopson
e68d2f55c9 Position background rect at 0,0
This is important when terminal is a child of a Container node and we
set the margin properties, otherwise the background rect is drawn with
an offset.
2020-10-16 12:55:41 +07:00
Leroy Hopson
fd39635fc5 Update build script 2020-10-13 16:12:16 +07:00
Leroy Hopson
293d35f5c5 Add pre-built binary for x11 platform 2020-10-05 17:56:58 +07:00
Leroy Hopson
db8e674358 Multiple changes 2020-10-05 17:56:57 +07:00
Leroy Hopson
f63246d8ea Make Terminal a tool script 2020-10-05 17:56:57 +07:00
Leroy Hopson
faca53fe28 Center cell string vertically
This prevents overlapping so we no longer need to draw all background
cells before the foreground.
2020-10-05 17:56:57 +07:00
Leroy Hopson
0d14fd1e47 Don't cache true colors
If a true color has been set it will have code -1 regardless of the
actual color. Therefore, it shouldn't be stored in the color cache
dictionary otherwise all true color cells will be colored the most
recently set value.
2020-10-05 17:56:57 +07:00
Leroy Hopson
57aed28a0e Change write method to accept both String and PoolByteArray
Will print a warning if neither of these types is used as an argument.
2020-10-05 17:56:57 +07:00
Leroy Hopson
ada8b1087d Copy old cells to new cells when resizing
Previously all cells were erased which resulted in the screen becoming
blank in some places until it was redrawn.
2020-10-05 17:56:57 +07:00
Leroy Hopson
66b061bf8b Ensure terminal is initialized to the correct size
Moves the call to update_size() from _init() to _ready() to ensure
Terminal is initialized to the correct size.
2020-10-05 17:56:57 +07:00
Leroy Hopson
d64800229f Move input handling into the Terminal node 2020-10-05 17:56:57 +07:00
Leroy Hopson
0dabc56076 Update file format
Automatically updated by VSCode upon saving the files.
2020-10-05 17:56:57 +07:00
Leroy Hopson
8d3eec465f Rename 'modules' directory to 'external' 2020-10-05 17:56:57 +07:00
Leroy Hopson
3eecf504cf Refactor file structure 2020-10-05 17:56:57 +07:00