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

Long output makes less behave weird #200

Closed
d3m1gd opened this issue May 15, 2015 · 8 comments
Closed

Long output makes less behave weird #200

d3m1gd opened this issue May 15, 2015 · 8 comments

Comments

@d3m1gd
Copy link

d3m1gd commented May 15, 2015

System: linux x86_64
Terminal: rxvt-unicode

if the program is run several times as ./test | less, then less itself does not react to spacebar, and on exit leaves terminal in a broken state with no echo of characters. In order to fix, command reset is needed to be input into terminal.

Tested also ./test | LESS="" less to prevent less options to interfere, and also from another user with no environmental variables set at all in a plain terminal.

Also problem is exactly reproduced in linux console (aka Ctrl+Alt+F[1-6]).

actor Main
  new create(env: Env) =>
    var i: I32 = 1
    while (i=i+1) < 100 do
      env.out.print(i.string())
    end
@d3m1gd
Copy link
Author

d3m1gd commented May 15, 2015

100 is choosed so lines dont fit on screen. If your terminal is able to show more than 100 lines, adjust accordingly.

@sylvanc
Copy link
Contributor

sylvanc commented May 15, 2015

Thanks! Should be fixed now.

@sylvanc sylvanc closed this as completed May 15, 2015
@d3m1gd
Copy link
Author

d3m1gd commented May 15, 2015

Pony from HEAD still gives me the same problem. Sometimes problem is observed only on second run of ./test | less

@sylvanc sylvanc reopened this May 15, 2015
@sylvanc
Copy link
Contributor

sylvanc commented May 15, 2015

@d3m1gd Nice catch! I had to run 3+ times to get the behaviour, but it did indeed show up. I just checked in another fix - can you please confirm it works for you, and if it does I'll close the issue?

@d3m1gd
Copy link
Author

d3m1gd commented May 15, 2015

Everything works good now, thanks for a quick fix!

@sylvanc
Copy link
Contributor

sylvanc commented May 15, 2015

Glad to hear it! Thanks for the report!

@sylvanc sylvanc closed this as completed May 15, 2015
@sblessing
Copy link
Contributor

I have reopened this issue, because now running httpget and not using less randomly truncates the output.

@sylvanc
Copy link
Contributor

sylvanc commented May 17, 2015

The fix in place for #205 seems to also fix this. I'll close this one, but leave #205 open until it is confirmed to work.

@sylvanc sylvanc closed this as completed May 17, 2015
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

3 participants