Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support bold rendition for SGR 1 #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

akinomyoga
Copy link
Collaborator

こちらは SGR 1 で太字を表示できるようにする修正です。

  • 現在の master は SGR 1 は専ら明るい色を意味しますが、代わりに太字にする機能を追加しました。現在は、既定では "太字" にし、オプション -B (--use-bright-for-bold) を指定した時に "明るい色" にしています。
  • 注意点として、"太字" は、単に同じ文字を横に 1px ずらして上書きするという実装にしていますので、文字によっては見た目に違いが分からなかったり一部潰れたりする可能性があります。

以下に変更前と変更後の出力 GIF を例示します。1行目が通常 (SGR 1 なし) の出力で2行目が SGR 1 ありの出力です。

Original New New (with option -B)
Bright colors Bold Bright colors
support-bold-rendition-original support-bold-rendition support-bold-rendition-bright

@coveralls
Copy link

coveralls commented Aug 24, 2020

Coverage Status

Coverage increased (+0.1%) to 64.447% when pulling 585d2d5 on akinomyoga:support-bold-rendition into 886138e on saitoha:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants