help cleanup

This commit is contained in:
kepler155c@gmail.com 2020-07-25 18:52:41 -06:00
parent 624af53f4e
commit c24a5a7115
5 changed files with 26 additions and 68 deletions

View File

@ -6,7 +6,6 @@ local Util = require('opus.util')
local device = _G.device
local network = _G.network
local os = _G.os
local shell = _ENV.shell
UI:configure('Network', ...)
@ -103,30 +102,6 @@ local page = UI.Page {
return UI.SlideOut.eventHandler(self, event)
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 { },
accelerators = {
t = 'telnet',
@ -207,12 +182,14 @@ function page:eventHandler(event)
elseif event.type == 'vnc' then
shell.openForegroundTab('vnc.lua ' .. t.id)
--[[
os.queueEvent('overview_shortcut', {
title = t.label,
category = "VNC",
icon = "\010\030 \009\009\031e\\\031 \031e/\031dn\010\030 \009\009 \031e\\/\031 \031bc",
run = "vnc.lua " .. t.id,
})
--]]
elseif event.type == 'clear' then
Util.clear(network)
@ -231,7 +208,7 @@ function page:eventHandler(event)
end
if event.type == 'help' then
self.help:show()
shell.switchTab(shell.openTab('Help Networking'))
elseif event.type == 'ports' then
self.ports.grid:update()

9
sys/help/Networking.txt Normal file
View 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>

View File

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

View File

@ -6,17 +6,7 @@ Shortcut Keys
* Control-d: Show/toggle logging screen
* Control-c: Copy (in most applications)
* Control-shift-v: Paste from internal clipboard
* Control-shift-doubleclick: Open in Lua the clicked UI element
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>
* Control-shift-click: Open the clicked UI element in Lua
Running Custom Programs
=======================

13
sys/help/Packages.txt Normal file
View 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.