shell cleanup

This commit is contained in:
kepler155c@gmail.com
2020-06-13 12:18:04 -06:00
parent 947f502c6d
commit b69dcdeffa
5 changed files with 164 additions and 217 deletions

View File

@@ -989,6 +989,7 @@ function UI.Device:postInit()
self.device.setTextScale = function() end
end
self._obg = term.getBackgroundColor()
self.device.setTextScale(self.textScale)
self.width, self.height = self.device.getSize()
self.isColor = self.device.isColor()
@@ -1025,8 +1026,7 @@ function UI.Device:setTextScale(textScale)
end
function UI.Device:reset()
self.device.setBackgroundColor(colors.black)
self.device.setTextColor(colors.white)
self.device.setBackgroundColor(self._obg)
self.device.clear()
self.device.setCursorPos(1, 1)
end