utop icon indicating copy to clipboard operation
utop copied to clipboard

feature request: suppress output

Open nilsbecker opened this issue 8 years ago • 4 comments

sometimes long output is undesired in an interactive session. it would be nice to have some syntax to suppress it on a per-evaluation basis. for example. ;;; instead of ;; at the end of the expression?

nilsbecker avatar Oct 21 '16 20:10 nilsbecker

That seems reasonable to me

ghost avatar Oct 24 '16 10:10 ghost

In the Clojure repl we started to think about this more in terms of ellipsis: when she output is too long you trim it. A repl command expands the next batch to see in the repl and returns it. You can also go back and see the previous batch. It is a better approach imho: an example of which is here.

arichiardi avatar Apr 14 '17 00:04 arichiardi

so like an automatic less for the output? sounds good. but it should be possible to quickly skip displaying further pages. often one already knows beforehand that the output is going to be long and irrelevant. in these cases one should not have to page through to the end.

nilsbecker avatar Apr 14 '17 14:04 nilsbecker

Not like less, more like: I show you ten, then at the repl either you ask me the other ten or you evaluate the next meaningful command.

arichiardi avatar Apr 14 '17 14:04 arichiardi