lualoader: Remove remnants of testing...
twiddle_pos didn't need to be a module-scope local, since it's going to get reset with every read anyways- it was left-over from other things. screen.movecursor with a y=-1 setting was from a test of movecursor, resulting in the twiddle characters being drawn going up the console and looking quite funky.
This commit is contained in:
parent
a6f1506f1a
commit
8620ae0187
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=330083
@ -36,17 +36,16 @@ local password = {}
|
|||||||
-- Asterisks as a password mask
|
-- Asterisks as a password mask
|
||||||
local show_password_mask = false
|
local show_password_mask = false
|
||||||
local twiddle_chars = {"/", "-", "\\", "|"}
|
local twiddle_chars = {"/", "-", "\\", "|"}
|
||||||
local twiddle_pos = 1
|
|
||||||
|
|
||||||
-- Module exports
|
-- Module exports
|
||||||
function password.read()
|
function password.read()
|
||||||
local str = ""
|
local str = ""
|
||||||
local n = 0
|
local n = 0
|
||||||
|
local twiddle_pos = 1
|
||||||
|
|
||||||
twiddle_pos = 1
|
|
||||||
local function draw_twiddle()
|
local function draw_twiddle()
|
||||||
loader.printc(" " .. twiddle_chars[twiddle_pos])
|
loader.printc(" " .. twiddle_chars[twiddle_pos])
|
||||||
screen.movecursor(-3, -1)
|
screen.movecursor(-3, 0)
|
||||||
twiddle_pos = (twiddle_pos % #twiddle_chars) + 1
|
twiddle_pos = (twiddle_pos % #twiddle_chars) + 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user