Heres some simple code for inputting a password with stars and still understanding it. It runs pretty fast, too. I was trying to work on the problem from this post:
http://forum.thegamecreators.com/?m=forum_view&t=9557&b=6 and I think I have the answer. It's based on the DARK BASIC example program 24, keyboard entry.
rem ===============================================
rem BASED ON DARK BASIC EXAMPLE PROGRAM 24
rem ===============================================
rem This program handles Password Entry
rem -----------------------------------------------
rem Create a slowly sync'd loop for keyboard entry
sync on : sync rate 20
rem A nice font
set text font "Arial" : set text size 32
rem Main loop
do
rem Build line string
new$=entry$()
for n=1 to len(new$)
if asc(mid$(new$,n))=8
line$=left$(line$,len(line$)-1)
else
if asc(mid$(new$,n))=13
goto procstr
else
line$=line$+mid$(new$,n)
endif
endif
next n
for n=1 to len(new$)
if asc(mid$(new$,n))=8
line2$=left$(line2$,len(line2$)-1)
else
line2$=line2$+"*"
endif
next n
clear entry buffer
rem Make simple cursor
if flash$="" then flash$="|" else flash$=""
rem Show Entry Buffer
cls rgb(64,64,64)
center text 320,200,"PERFECT PASSWORD ENTRY"
text 160,240,line2$+flash$
rem Update screen
sync
rem End loop
loop
procstr:
cls
print "Password:"
print line$
suspend for key
END TRANSMISSION