1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-29 22:53:01 +00:00

fix resizing scrolling terminals

This commit is contained in:
kepler155c@gmail.com
2020-05-10 14:04:20 -06:00
parent cfc18e10cd
commit a3a819256f
6 changed files with 60 additions and 25 deletions

View File

@@ -4,22 +4,11 @@
local kernel = _G.kernel
local keyboard = _G.device.keyboard
local multishell = _ENV.multishell
local os = _G.os
local term = _G.term
local function systemLog()
local routine = kernel.getCurrent()
if multishell and multishell.openTab then
local w, h = kernel.window.getSize()
kernel.window.reposition(1, 2, w, h - 1)
routine.terminal = kernel.window
routine.window = kernel.window
term.redirect(kernel.window)
end
kernel.hook('mouse_scroll', function(_, eventData)
local dir, y = eventData[1], eventData[3]