Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

io.input().remaining() acting weirdly #10

Open
vifino opened this issue May 7, 2017 · 0 comments
Open

io.input().remaining() acting weirdly #10

vifino opened this issue May 7, 2017 · 0 comments

Comments

@vifino
Copy link

vifino commented May 7, 2017

while true do
  print("pre-read", io.input().remaining())
  print(io.read(1))
  print("post-read", io.input().remaining())
  os.sleep(1)
end

Results in https://puu.sh/vItFy.png when typing. Really weird stuff.

Magik6k | vifino, idk, it might be returning number of buffers in pipe waiting for read instead of len. Will look into when I'll have some time for mc. Can you make an issue in plan9k repo?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant