1. 16 Jun, 2016 5 commits
    • Vincent Aranega's avatar
      Enhanced font detection for terminology · f5a9393d
      Vincent Aranega authored
      As 'grep -B' is a GNU extension, a more portable solution is preferable. The most direct and simple solution would be using 'awk':
      
          awk '/^font.name$/{print a}{a=$0}'
      
      But a sed solution could also be applied:
      
          sed -n '/^font\.name$/{g;1!p;};h'
      f5a9393d
    • Vincent Aranega's avatar
      Add terminal font detection support for terminology · 90c46651
      Vincent Aranega authored
      Support for terminology font name detection is based on the terminology config file. This file is always located here: `~/.config/terminology/config/standard/base.cfg` (https://github.com/billiob/terminology/blob/30cb65625bfa3b9030b80308d76ec2f30b62bd02/src/bin/config.c#L216) and is in a data/binary format. The only way I found (beside coding a dedicated extractor) is to use `strings`. The font name seems to be placed right before the `font.name` string.
      
          strings ~/.config/terminology/config/standard/base.cfg | grep -B1 font.name | head -1
      
      Here are results that could be output:
      
          $ strings ~/.config/terminology/config/standard/base.cfg | grep -B1 font.name | head -1
          6x13.pcf
          --> (for a bitmap font) and with another font selected
          $ strings ~/.config/terminology/config/standard/base.cfg | grep -B1 font.name | head -1
          Inconsolata:style=Regular
      
      These results are easily "parseable" in order to extract the font name for display.
      90c46651
    • Dylan Araps's avatar
      Changelog · 09e3dc51
      Dylan Araps authored
      09e3dc51
    • Dylan Araps's avatar
      Make --image off behave like other modes · 65c2854c
      Dylan Araps authored
      65c2854c
    • Dylan Araps's avatar
      Fix #289 · c13c1788
      Dylan Araps authored
      c13c1788
  2. 15 Jun, 2016 3 commits
  3. 14 Jun, 2016 9 commits
  4. 13 Jun, 2016 23 commits