1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-24 12:17:40 +00:00

multishell hooks

This commit is contained in:
kepler155c@gmail.com
2017-10-15 02:36:54 -04:00
parent 8b187f2813
commit 9b8b5238b0
7 changed files with 279 additions and 254 deletions

View File

@@ -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)