Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ANSI escape sequence for collapsing/folding text (maybe hierarchically)

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):

  • ANSI colors: list
  • iTerm2 list, with some extended escape codes
  • hterm list
  • other extensions
  • collected list
  • superscript/subscript: here
  • hyperlink support: overview in various emulators
  • images: xterm.js, sixel
  • current directory information: iTerm2
  • generic HTML: DomTerm (article, article), GraphTerm, GateOne
like image 533
Albert Avatar asked Nov 08 '22 01:11

Albert


1 Answers

Some list:

  • DomTerm: supports it (details)
  • Hyper: feature request
  • xterm.js: feature request
  • Final Term: supports it (article) but is no longer maintained
like image 185
Albert Avatar answered Nov 11 '22 12:11

Albert