mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-18 03:36:47 -04:00
clean up TERM value with floor for lua 5.3
This commit is contained in:
parent
defe8c21dd
commit
6a634e018a
@ -6,7 +6,7 @@ local function onComponentAvailable(_, componentType)
|
||||
(componentType == "gpu" and component.isAvailable("screen"))
|
||||
then
|
||||
component.gpu.bind(component.screen.address)
|
||||
local depth = 2^(component.gpu.getDepth())
|
||||
local depth = math.floor(2^(component.gpu.getDepth()))
|
||||
os.setenv("TERM", "term-"..depth.."color")
|
||||
require("computer").pushSignal("gpu_bound", component.gpu.address, component.screen.address)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user