mirror of
https://github.com/kepler155c/opus
synced 2025-04-29 14:13:22 +00:00
help cleanup
This commit is contained in:
parent
624af53f4e
commit
c24a5a7115
@ -6,7 +6,6 @@ local Util = require('opus.util')
|
|||||||
|
|
||||||
local device = _G.device
|
local device = _G.device
|
||||||
local network = _G.network
|
local network = _G.network
|
||||||
local os = _G.os
|
|
||||||
local shell = _ENV.shell
|
local shell = _ENV.shell
|
||||||
|
|
||||||
UI:configure('Network', ...)
|
UI:configure('Network', ...)
|
||||||
@ -103,30 +102,6 @@ local page = UI.Page {
|
|||||||
return UI.SlideOut.eventHandler(self, event)
|
return UI.SlideOut.eventHandler(self, event)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
help = UI.SlideOut {
|
|
||||||
x = 5, ex = -5, height = 8, y = -8,
|
|
||||||
titleBar = UI.TitleBar {
|
|
||||||
title = 'Network Help',
|
|
||||||
event = 'slide_hide',
|
|
||||||
},
|
|
||||||
text = UI.TextArea {
|
|
||||||
x = 1, y = 2,
|
|
||||||
marginLeft = 1,
|
|
||||||
value = [[
|
|
||||||
|
|
||||||
In order to connect to another computer:
|
|
||||||
|
|
||||||
1. The target computer must have a password set (run 'password' from the shell prompt).
|
|
||||||
|
|
||||||
2. From this computer, click trust and enter the password for that computer.
|
|
||||||
|
|
||||||
This only needs to be done once.
|
|
||||||
]],
|
|
||||||
},
|
|
||||||
accelerators = {
|
|
||||||
q = 'slide_hide',
|
|
||||||
}
|
|
||||||
},
|
|
||||||
notification = UI.Notification { },
|
notification = UI.Notification { },
|
||||||
accelerators = {
|
accelerators = {
|
||||||
t = 'telnet',
|
t = 'telnet',
|
||||||
@ -207,12 +182,14 @@ function page:eventHandler(event)
|
|||||||
|
|
||||||
elseif event.type == 'vnc' then
|
elseif event.type == 'vnc' then
|
||||||
shell.openForegroundTab('vnc.lua ' .. t.id)
|
shell.openForegroundTab('vnc.lua ' .. t.id)
|
||||||
|
--[[
|
||||||
os.queueEvent('overview_shortcut', {
|
os.queueEvent('overview_shortcut', {
|
||||||
title = t.label,
|
title = t.label,
|
||||||
category = "VNC",
|
category = "VNC",
|
||||||
icon = "\010\030 \009\009\031e\\\031 \031e/\031dn\010\030 \009\009 \031e\\/\031 \031bc",
|
icon = "\010\030 \009\009\031e\\\031 \031e/\031dn\010\030 \009\009 \031e\\/\031 \031bc",
|
||||||
run = "vnc.lua " .. t.id,
|
run = "vnc.lua " .. t.id,
|
||||||
})
|
})
|
||||||
|
--]]
|
||||||
|
|
||||||
elseif event.type == 'clear' then
|
elseif event.type == 'clear' then
|
||||||
Util.clear(network)
|
Util.clear(network)
|
||||||
@ -231,7 +208,7 @@ function page:eventHandler(event)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if event.type == 'help' then
|
if event.type == 'help' then
|
||||||
self.help:show()
|
shell.switchTab(shell.openTab('Help Networking'))
|
||||||
|
|
||||||
elseif event.type == 'ports' then
|
elseif event.type == 'ports' then
|
||||||
self.ports.grid:update()
|
self.ports.grid:update()
|
||||||
|
9
sys/help/Networking.txt
Normal file
9
sys/help/Networking.txt
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
Wireless Networking
|
||||||
|
===================
|
||||||
|
To establish one-way trust between two computers with modems, run the following in a shell prompt:
|
||||||
|
|
||||||
|
On the target computer, run:
|
||||||
|
> password
|
||||||
|
|
||||||
|
On the source computer, run:
|
||||||
|
> trust <target computer ID>
|
@ -1,31 +0,0 @@
|
|||||||
Opus applications are grouped into packages with a common theme.
|
|
||||||
|
|
||||||
To install a package, use either the System -> Packages program or the package command line program.
|
|
||||||
|
|
||||||
Shell usage:
|
|
||||||
|
|
||||||
> package list
|
|
||||||
> package install <name>
|
|
||||||
> package update <name>
|
|
||||||
> package updateall
|
|
||||||
> package uninstall <name>
|
|
||||||
|
|
||||||
Package definitions are located in usr/config/packages. This file can be modified to add custom packages.
|
|
||||||
|
|
||||||
Current stable packages
|
|
||||||
=======================
|
|
||||||
|
|
||||||
* core
|
|
||||||
Programming and miscellaneous applications. Also contains drivers needed for other packages.
|
|
||||||
|
|
||||||
* builder
|
|
||||||
A program for creating structures from schematic files using a turtle (requires core).
|
|
||||||
|
|
||||||
* farms
|
|
||||||
Various programs for farming resources (wood, crops, animals).
|
|
||||||
|
|
||||||
* milo
|
|
||||||
An A/E like storage implementation (requires core).
|
|
||||||
|
|
||||||
* miners
|
|
||||||
Mining programs.
|
|
@ -6,17 +6,7 @@ Shortcut Keys
|
|||||||
* Control-d: Show/toggle logging screen
|
* Control-d: Show/toggle logging screen
|
||||||
* Control-c: Copy (in most applications)
|
* Control-c: Copy (in most applications)
|
||||||
* Control-shift-v: Paste from internal clipboard
|
* Control-shift-v: Paste from internal clipboard
|
||||||
* Control-shift-doubleclick: Open in Lua the clicked UI element
|
* Control-shift-click: Open the clicked UI element in Lua
|
||||||
|
|
||||||
Wireless Networking
|
|
||||||
===================
|
|
||||||
To establish one-way trust between two computers with modems, run the following in a shell prompt:
|
|
||||||
|
|
||||||
On the target computer, run:
|
|
||||||
> password
|
|
||||||
|
|
||||||
On the source computer, run:
|
|
||||||
> trust <target computer ID>
|
|
||||||
|
|
||||||
Running Custom Programs
|
Running Custom Programs
|
||||||
=======================
|
=======================
|
||||||
|
13
sys/help/Packages.txt
Normal file
13
sys/help/Packages.txt
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
Opus applications are grouped into packages with a common theme.
|
||||||
|
|
||||||
|
To install a package, use either the System -> Packages program or the package command line program.
|
||||||
|
|
||||||
|
Shell usage:
|
||||||
|
|
||||||
|
> package list
|
||||||
|
> package install <name>
|
||||||
|
> package update <name>
|
||||||
|
> package updateall
|
||||||
|
> package uninstall <name>
|
||||||
|
|
||||||
|
Package definitions are located in usr/config/packages. This file can be modified to add custom packages.
|
Loading…
x
Reference in New Issue
Block a user