Subj : console.getstr
To   : High Spirit
From : echicken
Date : Fri May 29 2015 12:39 pm

 Re: console.getstr
 By: High Spirit to All on Fri May 29 2015 11:02:50

HS> console.getstr([string] [,maxlen=128] [,mode=K_NONE])
HS> What is the [string] for?
HS> I was thinking it was a default value for the input but I cannot get that
HS> to work.

I believe that you're correct.

HS> console.print("Input Here: ");
HS> console.getstr("value", 25, K_NOSPIN);

I'm not sure if K_NOSPIN has any effect on console.getstr (maybe just
console.getkey.)

HS> would display:

HS> Input Here: value
HS> and the "value" would be highlighted and changed on first keystroke.
HS> 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