friendlier networking + adding tabs

This commit is contained in:
kepler155c@gmail.com
2017-10-09 13:08:38 -04:00
parent f5b99d91e5
commit 05c99b583a
7 changed files with 124 additions and 40 deletions

View File

@@ -13,6 +13,14 @@ local shell = _ENV.shell
multishell.setTitle(multishell.getCurrent(), 'System')
UI:configure('System', ...)
local mcVersion = _G._MC_VERSION or 'unknown'
if _G._HOST then
local version = _G._HOST:match('%S+ %S+ %((%S.+)%)')
if version then
mcVersion = version:match('Minecraft (%S+)') or version
end
end
local env = {
path = shell.path(),
aliases = shell.aliases(),
@@ -89,7 +97,7 @@ local systemPage = UI.Page {
{ name = '', value = '' },
{ name = 'CC version', value = Util.getVersion() },
{ name = 'Lua version', value = _VERSION },
{ name = 'MC version', value = _G._MC_VERSION or 'unknown' },
{ name = 'MC version', value = mcVersion },
{ name = 'Disk free', value = Util.toBytes(fs.getFreeSpace('/')) },
{ name = 'Computer ID', value = tostring(os.getComputerID()) },
{ name = 'Day', value = tostring(os.day()) },
@@ -123,7 +131,7 @@ if settings then
grid = UI.Grid {
y = 1,
values = values,
--autospace = true,
autospace = true,
sortColumn = 'name',
columns = {
{ heading = 'Setting', key = 'name' },