titlebar/close/moving of nwm windows
This commit is contained in:
@@ -6,12 +6,16 @@ local peripheral = _G.peripheral
|
||||
local term = _G.term
|
||||
|
||||
local args = { ... }
|
||||
local mon = args[1] and device[args[1]] or peripheral.wrap(args[1]) or
|
||||
local mon = not args[1] and term.current() or
|
||||
device[args[1]] or
|
||||
peripheral.wrap(args[1]) or
|
||||
peripheral.find('monitor') or
|
||||
error('Syntax: debug <monitor>')
|
||||
|
||||
mon.clear()
|
||||
mon.setTextScale(.5)
|
||||
if mon.setTextScale then
|
||||
mon.setTextScale(.5)
|
||||
end
|
||||
mon.setCursorPos(1, 1)
|
||||
|
||||
local oldDebug = _G._syslog
|
||||
@@ -26,7 +30,9 @@ repeat
|
||||
local e, side = os.pullEventRaw('monitor_touch')
|
||||
if e == 'monitor_touch' and side == mon.side then
|
||||
mon.clear()
|
||||
mon.setTextScale(.5)
|
||||
if mon.setTextScale then
|
||||
mon.setTextScale(.5)
|
||||
end
|
||||
mon.setCursorPos(1, 1)
|
||||
end
|
||||
until e == 'terminate'
|
||||
|
||||
@@ -202,7 +202,6 @@ local page = UI.Page {
|
||||
label = 'Find',
|
||||
search = UI.TextEntry {
|
||||
x = 7, ex = -3,
|
||||
limit = 512,
|
||||
accelerators = {
|
||||
[ 'enter' ] = 'accept',
|
||||
},
|
||||
@@ -232,7 +231,6 @@ local page = UI.Page {
|
||||
label = 'Save',
|
||||
filename = UI.TextEntry {
|
||||
x = 7, ex = -3,
|
||||
limit = 512,
|
||||
accelerators = {
|
||||
[ 'enter' ] = 'accept',
|
||||
},
|
||||
@@ -339,7 +337,6 @@ local page = UI.Page {
|
||||
quick_open = UI.SlideOut {
|
||||
filter_entry = UI.TextEntry {
|
||||
x = 2, y = 2, ex = -2,
|
||||
limit = 256,
|
||||
shadowText = 'File name',
|
||||
accelerators = {
|
||||
[ 'enter' ] = 'accept',
|
||||
|
||||
Reference in New Issue
Block a user