E.g. in Travis, by printing travis_fold:start:<section-name>
and travis_fold:end:<section-name>
, which behave like escape codes for Travis, it will fold the text away.
See here about Travis folding.
See for example this output.
The same would be very useful in general for Linux/Unix terminals. Are there any ANSI escape sequences/codes extensions which do something like this (and of course corresponding terminal emulators which handle those)?
Existing escape code (and extensions):
Some list: