1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-11-13 03:43:08 +00:00

Merge branch 'master' into Mixed-lua-side-improvements

This commit is contained in:
Wojbie
2017-06-17 22:21:25 +02:00
committed by GitHub
30 changed files with 564 additions and 757 deletions

View File

@@ -276,12 +276,17 @@ function printError( ... )
end
end
function read( _sReplaceChar, _tHistory, _fnComplete )
function read( _sReplaceChar, _tHistory, _fnComplete, _sDefault )
term.setCursorBlink( true )
local sLine = ""
local sLine
if type( _sDefault ) == "string" then
sLine = _sDefault
else
sLine = ""
end
local nHistoryPos
local nPos = 0
local nPos = #sLine
if _sReplaceChar then
_sReplaceChar = string.sub( _sReplaceChar, 1, 1 )
end