titlebar/close/moving of nwm windows

This commit is contained in:
kepler155c@gmail.com
2020-05-06 18:02:01 -06:00
parent 428477bdec
commit 9eff14f3ba
6 changed files with 68 additions and 12 deletions

View File

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

View File

@@ -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',