1. 19 Sep, 2018 1 commit
    • Christian Duerr's avatar
      Add hidden escape sequence · d387ebe1
      Christian Duerr authored
      This adds support for the `hidden` escape sequence `\e[8m`, which will
      render the text as invisible.
      
      This has also raised a few questions about the rendering of foreground
      and background colors and their interaction with the different escape
      sequences. Previously, Alacritty has oriented itself after URxvt, which
      has some strange and unexpected behavior.
      
      The new implementation of color inversion is modeled after XTerm, which
      has a consistent pattern of always inverting the foreground and
      background colors. This should hopefully lead to less confusion for the
      user and a more consistent behavior.
      
      A full matrix showcasing the new way Alacritty inverses text can be
      found here:
      https://i.imgur.com/d1XavG7.png
      
      This fixes #1454 and fixes #1455.
      d387ebe1
  2. 02 Jun, 2018 2 commits
    • Joe Wilm's avatar
      Optimize Row::reset · c61a912f
      Joe Wilm authored
      Now, only cells that have been used are cleared. This is achieved by
      using a "occupied" memo on the Row itself. The value, `occ`, is updated
      wherever the Row is accessed mutably, and it's cleared to zero in
      Row::reset.
      
      The tests for grid scroll_up and scroll_down were updated to include a
      test on the value `occ` and slightly refactored, but are otherwise
      equivalent to the previous implementation of those tests.
      
      Because of the change to the `Row` struct, the ref tests were updated so
      Deserialization keeps working as expected.
      c61a912f
    • Joe Wilm's avatar
      Make tests compile again · b0f655ac
      Joe Wilm authored
      Some tests are still not passing, though.
      
      A migration script was added to migrate serialized grids from
      pre-scrollback to the current format. The script is included with this
      commit for completeness, posterity, and as an example to be used in the
      future.
      
      A few tests in grid/tests.rs were removed due to becoming irrelevant.
      b0f655ac
  3. 21 Oct, 2017 1 commit
    • Joe Wilm's avatar
      Fix solid background color opacity (#847) · b79574ee
      Joe Wilm authored
      Since landing the patch adding transparency support to Alacritty,
      there's been an issue where othewise solid background cells were also
      being rendered partially transparent. Now, all filled background cells
      are rendered fully opaque.
      
      Some logic was added to support discarding filled backgrounds which had
      the same color as the default background. This means that, if the
      default background is #000 and a cell has that background, it will never
      be rendered opaque. This may not be correct.
      
      Note that many truecolor vim color schemes print spaces for default
      colored background cells. Performance can be dramatically improved by
      using ctermbg=NONE guibg=NONE to skip rendering those cells.
      b79574ee
  4. 28 May, 2017 1 commit
  5. 01 May, 2017 1 commit
    • Joe Wilm's avatar
      Add script for spawning alacritty in CWD · ac2a1ece
      Joe Wilm authored
      The script uses the recently added _NET_WM_PID window property for
      finding the program running in Alacritty, fetching its working
      directory, and spawning a new Alacritty using that directory.
      ac2a1ece
  6. 09 Oct, 2016 1 commit