From 8620ae01877ce1254649e02b9dc0d0c8f8e126a7 Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Tue, 27 Feb 2018 21:30:24 +0000 Subject: [PATCH] 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. --- stand/lua/password.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/stand/lua/password.lua b/stand/lua/password.lua index 633c32d2e6df..c00e51ee34d6 100644 --- a/stand/lua/password.lua +++ b/stand/lua/password.lua @@ -36,17 +36,16 @@ local password = {} -- Asterisks as a password mask local show_password_mask = false local twiddle_chars = {"/", "-", "\\", "|"} -local twiddle_pos = 1 -- Module exports function password.read() local str = "" local n = 0 + local twiddle_pos = 1 - twiddle_pos = 1 local function draw_twiddle() loader.printc(" " .. twiddle_chars[twiddle_pos]) - screen.movecursor(-3, -1) + screen.movecursor(-3, 0) twiddle_pos = (twiddle_pos % #twiddle_chars) + 1 end