The current |10oneliners.bas|07 saves a users one liner even if the user hits enter.
at the input prompt without typing a one liner.
I'm sure most if not all of you have fixed this, but if not I thought I'd
post this quick fix.
I'm hoping to have more time to learn this weekend and try to get all 10 oneliners contained within a C4 ANSI box, but after an hour of trying without success I figured I'd call this one a day. Hope this helps.
|11Under def EnterOneLiner:
def EnterOneLiner()
outstr("|10Enter Your One Liner:")
nl()
outstr("|#9: ")s = gets(72)
If len(s) = 0
Then
nl()
outstr("|12Nothing entered. Try again or abort.|07|{sleep=750}")
nl(2)
Return ""
EndIf
|11Under Def Main
def Main()
l = list()
wwiv.data.load("GLOBAL", l)
done = False
cls()
While True
wwiv.io.printfile("oneliner");
PrintList(l)
nl()
outstr("|#9Would you like to add an oneliner? ")
If Not yn() Then
Return
EndIf
s = EnterOneLiner()
if s <> "" Then
If len(l) > 10 Then
Remove(l, 0)
EndIf
Push(l, s)
wwiv.data.save("GLOBAL", l)
EndIf
wend
enddef
Main()
|08R|103|08C|100|08N
|07ghostmachine|15.|07ddns|15.|07net|15:1717
|15Ghosts in the Machine
--- WWIVToss v.1.52
* Origin:
http://www.weather-station.org * Bel Air, MD -USA (11:1/101.0)