mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-19 12:17:17 -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"))
|
(componentType == "gpu" and component.isAvailable("screen"))
|
||||||
then
|
then
|
||||||
component.gpu.bind(component.screen.address)
|
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")
|
os.setenv("TERM", "term-"..depth.."color")
|
||||||
require("computer").pushSignal("gpu_bound", component.gpu.address, component.screen.address)
|
require("computer").pushSignal("gpu_bound", component.gpu.address, component.screen.address)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user