Skip to content

Support the hidden/conceal ansi escape

It's useful for hiding the output while it still occupies the space and is included when copy-pasting.

$ echo '\u001b[8mfoo\u001b[28mbar'
   bar

I'm specifically asking for support for the \u001b[8m (conceal) and \u001b[28m (unconceal) ansi escapes.

I personally use the conceal ansi escape in eslint-formatter-pretty to enable Cmd-clicking the title to go to the relevant line in the users editor without having to actually show the line in the output (it's concealed).

https://en.wikipedia.org/wiki/ANSI_escape_code

I think it should be supported as it's supported in other terminals like Terminal.app.


  • iTerm2 version: Build 2.9.20160421-nightly
  • OS version: 10.11.4