Permalink
Browse files

Show Filenames in Multishell Title

  • Loading branch information...
Wilma456 committed Nov 22, 2017
1 parent 19e4c03 commit 4e771fcb5ebb9cfd580f9529871683bb278eca5d
@@ -938,6 +938,9 @@ settings.set( "lua.autocomplete", true )
settings.set( "list.show_hidden", false )
if term.isColour() then
settings.set( "bios.use_multishell", true )
settings.set( "edit.multishell_title", true )
settings.set( "paint.multishell_title", true )
settings.set( "help.multishell_title", true )
end
if _CC_DEFAULT_SETTINGS then
for sPair in string.gmatch( _CC_DEFAULT_SETTINGS, "[^,]+" ) do
@@ -21,6 +21,10 @@ if not fs.exists( sPath ) and not string.find( sPath, "%." ) then
end
end
if multishell and settings.get( "edit.multishell_title" ) == true then
multishell.setTitle( multishell.getCurrent(), "edit (" .. fs.getName( sPath ) .. ")" )
end
local x,y = 1,1
local w,h = term.getSize()
local scrollX, scrollY = 0,0
@@ -52,6 +52,9 @@ if not fs.exists( sPath ) and not string.find( sPath, "%." ) then
end
end
if multishell and settings.get( "paint.multishell_title" ) == true then
multishell.setTitle( multishell.getCurrent(), "paint (" .. fs.getName( sPath ) .. ")" )
end
---------------
-- Functions --
@@ -6,13 +6,17 @@ else
sTopic = "intro"
end
if multishell and settings.get( "help.multishell_title" ) == true then
multishell.setTitle( multishell.getCurrent(), "help (" .. sTopic .. ")" )
end
if sTopic == "index" then
print( "Help topics availiable:" )
local tTopics = help.topics()
textutils.pagedTabulate( tTopics )
return
end
local w,h = term.getSize()
local sFile = help.lookup( sTopic )
local file = ((sFile ~= nil) and io.open( sFile )) or nil

0 comments on commit 4e771fc

Please sign in to comment.