Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Feb 2018 21:30:24 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r330083 - head/stand/lua
Message-ID:  <201802272130.w1RLUOZ0019758@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevans
Date: Tue Feb 27 21:30:24 2018
New Revision: 330083
URL: https://svnweb.freebsd.org/changeset/base/330083

Log:
  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.

Modified:
  head/stand/lua/password.lua

Modified: head/stand/lua/password.lua
==============================================================================
--- head/stand/lua/password.lua	Tue Feb 27 21:22:57 2018	(r330082)
+++ head/stand/lua/password.lua	Tue Feb 27 21:30:24 2018	(r330083)
@@ -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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802272130.w1RLUOZ0019758>