Re: Phix Question
- Posted by ChrisB (moderator) May 16, 2021
- 794 views
Hi
I remember this was a perennial pain in the rear for me when I wrote my console based database on Linux. It's something to do with the console / terminal echoing back the input. There might be a way to turn it off, but I wrote a work around, which doesn't use gets()
object line object c line = "" while 1 do c = wait_key() if c = 10 then exit end if puts(1, c) --to echo the character --printf(1, " %d\n", {c}) --uncomment to echo the character number line &= c --to append the character to line end while puts(1, line & " is a nice name! Also works with Chris.")
Cheers
Chris