mirror of
https://github.com/kepler155c/opus
synced 2025-10-24 12:17:40 +00:00
multishell hooks
This commit is contained in:
@@ -3,6 +3,7 @@ _G.requireInjector()
|
||||
local Terminal = require('terminal')
|
||||
local Util = require('util')
|
||||
|
||||
local keys = _G.keys
|
||||
local multishell = _ENV.multishell
|
||||
local os = _G.os
|
||||
local term = _G.term
|
||||
@@ -25,7 +26,7 @@ end
|
||||
print('Debug started')
|
||||
print('Press ^d to activate debug window')
|
||||
|
||||
multishell.addHotkey(32, function()
|
||||
multishell.addHotkey(keys.d, function()
|
||||
local currentId = multishell.getFocus()
|
||||
if currentId ~= tabId then
|
||||
previousId = currentId
|
||||
@@ -40,4 +41,4 @@ os.pullEventRaw('terminate')
|
||||
print('Debug stopped')
|
||||
|
||||
_G.debug = function() end
|
||||
multishell.removeHotkey(32)
|
||||
multishell.removeHotkey(keys.d)
|
||||
|
||||
Reference in New Issue
Block a user