Re: console.getstr
By: High Spirit to All on Fri May 29 2015 11:02:50
console.getstr([string] [,maxlen=128] [,mode=K_NONE])
What is the [string] for?
I was thinking it was a default value for the input but I cannot get that to work.
I believe that you're correct.
console.print("Input Here: ");
console.getstr("value", 25, K_NOSPIN);
I'm not sure if K_NOSPIN has any effect on console.getstr (maybe just console.getkey.)
would display:
Input Here: value
and the "value" would be highlighted and changed on first keystroke.
Am I missing something or am I mis-interpreting what [string] is for?
You might try this instead, which should give you the result you're looking for:
console.getstr("value", 25, K_EDIT|K_AUTODEL);
You might want to throw K_LINE onto the mode argument as well.
---
echicken
electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com