title: Sublime Text LaTeXTools console autohide
body: <p>The build script in the LaTeXTools plugin for Sublime Text editor pops up the console, where the result of the compilation is written.
  I would like the console to auto-hide once the compilation is finished and there are no errors (and to stay open otherwise).</p>
  
  <p>I knew how to achieve this with Sublime Text 2. (I think I inserted two lines    <code>sublime.active_window().run_command("show_panel", {"panel": "console", "toggle": True}))</code>
  somewhere in the build script.)</p>
  
  <p>How to achieve this behavior with Sublime Text 3?</p>
  
  <p>How to (properly) achieve this behavior with Sublime Text 2?</p>