<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/lib/reline/face.rb, branch v3_4_9</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/reline] typofix</title>
<updated>2024-08-20T11:03:13+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2024-08-20T10:07:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=72d016e97b38ccc2cf3e63964e69d1eed941eff6'/>
<id>72d016e97b38ccc2cf3e63964e69d1eed941eff6</id>
<content type='text'>
https://github.com/ruby/reline/commit/d44fbf9f7b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/reline/commit/d44fbf9f7b
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/reline] Use gray and white as the default dialog theme</title>
<updated>2024-02-25T07:08:34+00:00</updated>
<author>
<name>Stan Lo</name>
<email>stan001212@gmail.com</email>
</author>
<published>2024-02-25T07:08:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=2721a64e4192fee250442cd6157c5a85908a20d4'/>
<id>2721a64e4192fee250442cd6157c5a85908a20d4</id>
<content type='text'>
(https://github.com/ruby/reline/pull/637)

I think this has a few benefits:

1. Most terminal themes generally don't change or pick similar colors
   for their black and white colors, so it's more likely to be consistent
    across terminals/themes.
2. They don't have the potential color-blind issues that other color options
   may have.
3. We won't need additional changes for no color mode.

https://github.com/ruby/reline/commit/6579a0a737
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(https://github.com/ruby/reline/pull/637)

I think this has a few benefits:

1. Most terminal themes generally don't change or pick similar colors
   for their black and white colors, so it's more likely to be consistent
    across terminals/themes.
2. They don't have the potential color-blind issues that other color options
   may have.
3. We won't need additional changes for no color mode.

https://github.com/ruby/reline/commit/6579a0a737
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/reline] Fallback to 256color if COLORTERM != truecolor</title>
<updated>2023-11-13T12:42:31+00:00</updated>
<author>
<name>tomoya ishida</name>
<email>tomoyapenguin@gmail.com</email>
</author>
<published>2023-11-13T12:42:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=90b49024c0d5fe8fe60942b96dcbd1f610042f1b'/>
<id>90b49024c0d5fe8fe60942b96dcbd1f610042f1b</id>
<content type='text'>
(https://github.com/ruby/reline/pull/604)

* Fallback to 256color if COLORTERM != truecolor

* Add Reline::Face.force_truecolor to force truecolor without COLORTERM env

https://github.com/ruby/reline/commit/090e1e4df0
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(https://github.com/ruby/reline/pull/604)

* Fallback to 256color if COLORTERM != truecolor

* Add Reline::Face.force_truecolor to force truecolor without COLORTERM env

https://github.com/ruby/reline/commit/090e1e4df0
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/reline] Introduce a new class Reline::Face to configure</title>
<updated>2023-11-06T14:40:42+00:00</updated>
<author>
<name>HASUMI Hitoshi</name>
<email>hasumikin@gmail.com</email>
</author>
<published>2023-11-06T14:40:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=16403f41abcbaccf32484d10575d3542dbb3247e'/>
<id>16403f41abcbaccf32484d10575d3542dbb3247e</id>
<content type='text'>
character attributes
(https://github.com/ruby/reline/pull/552)

* Reine::Face

* fix test_yamatanooroti

* Define singleton methods to make accessors to attributes of a face

* s/display/foreground/

* s/default/default_style/ &amp;&amp; s/normal_line/default/ &amp;&amp; s/enhanced_line/enhanced/

* fix typo

* FaceConfig.new now takes keyword arguments

* Update lib/reline/face.rb

Co-authored-by: Stan Lo &lt;stan001212@gmail.com&gt;

* Update test/reline/test_face.rb

Co-authored-by: Stan Lo &lt;stan001212@gmail.com&gt;

* Fix to correspond to frozen_string_literal

* Face::FaceConfig -&gt; Face::Config

* ref https://github.com/ruby/reline/pull/552#pullrequestreview-1677282576

* delete unused ivar

* ref https://github.com/ruby/reline/pull/552#discussion_r1358783723

* insert "\e[0m" into all SGR

* tiny fix

* ESSENTIAL_DEFINE_NAMES

ref https://github.com/ruby/reline/pull/552#discussion_r1367722247

* Change to Hash-accessor style

- Reline::Face[:completion_dialog].enhanced -&gt;
  Reline::Face[:completion_dialog][:enhanced]
- Reline::Face.configs shows all defined values

* Cache array method call in local variable

* Tests for Face configuration variations

* resolve https://github.com/ruby/reline/pull/552#pullrequestreview-1710938154

* amend  to

* check invalid SGR parameter in :style

* The order of define values should be preserved

* Update test/reline/test_face.rb

Co-authored-by: Stan Lo &lt;stan001212@gmail.com&gt;

* Update test/reline/test_face.rb

Co-authored-by: Stan Lo &lt;stan001212@gmail.com&gt;

* Add methods: load_initial_config and reset_to_initial_config. And teardown in tests

* omission in amending "style: :default" to "style: :reset"

* refs https://github.com/ruby/reline/issues/598

* Fix link

* amend method name

* Update lib/reline/face.rb

Co-authored-by: ima1zumi &lt;52617472+ima1zumi@users.noreply.github.com&gt;

---------

https://github.com/ruby/reline/commit/fdc1d3b1e5

Co-authored-by: Stan Lo &lt;stan001212@gmail.com&gt;
Co-authored-by: ima1zumi &lt;52617472+ima1zumi@users.noreply.github.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
character attributes
(https://github.com/ruby/reline/pull/552)

* Reine::Face

* fix test_yamatanooroti

* Define singleton methods to make accessors to attributes of a face

* s/display/foreground/

* s/default/default_style/ &amp;&amp; s/normal_line/default/ &amp;&amp; s/enhanced_line/enhanced/

* fix typo

* FaceConfig.new now takes keyword arguments

* Update lib/reline/face.rb

Co-authored-by: Stan Lo &lt;stan001212@gmail.com&gt;

* Update test/reline/test_face.rb

Co-authored-by: Stan Lo &lt;stan001212@gmail.com&gt;

* Fix to correspond to frozen_string_literal

* Face::FaceConfig -&gt; Face::Config

* ref https://github.com/ruby/reline/pull/552#pullrequestreview-1677282576

* delete unused ivar

* ref https://github.com/ruby/reline/pull/552#discussion_r1358783723

* insert "\e[0m" into all SGR

* tiny fix

* ESSENTIAL_DEFINE_NAMES

ref https://github.com/ruby/reline/pull/552#discussion_r1367722247

* Change to Hash-accessor style

- Reline::Face[:completion_dialog].enhanced -&gt;
  Reline::Face[:completion_dialog][:enhanced]
- Reline::Face.configs shows all defined values

* Cache array method call in local variable

* Tests for Face configuration variations

* resolve https://github.com/ruby/reline/pull/552#pullrequestreview-1710938154

* amend  to

* check invalid SGR parameter in :style

* The order of define values should be preserved

* Update test/reline/test_face.rb

Co-authored-by: Stan Lo &lt;stan001212@gmail.com&gt;

* Update test/reline/test_face.rb

Co-authored-by: Stan Lo &lt;stan001212@gmail.com&gt;

* Add methods: load_initial_config and reset_to_initial_config. And teardown in tests

* omission in amending "style: :default" to "style: :reset"

* refs https://github.com/ruby/reline/issues/598

* Fix link

* amend method name

* Update lib/reline/face.rb

Co-authored-by: ima1zumi &lt;52617472+ima1zumi@users.noreply.github.com&gt;

---------

https://github.com/ruby/reline/commit/fdc1d3b1e5

Co-authored-by: Stan Lo &lt;stan001212@gmail.com&gt;
Co-authored-by: ima1zumi &lt;52617472+ima1zumi@users.noreply.github.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
