<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/lib/reline/config.rb, branch v3_2_11</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] Remove unapproved color setting APIs</title>
<updated>2022-12-05T03:14:55+00:00</updated>
<author>
<name>Stan Lo</name>
<email>stan.lo@shopify.com</email>
</author>
<published>2022-12-04T11:16:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=16b2e0301411531a6ced6c673a1f9bd41d7b7e3e'/>
<id>16b2e0301411531a6ced6c673a1f9bd41d7b7e3e</id>
<content type='text'>
These APIs/configs are not approved by the Ruby core, so they can't be
released to the public. This means having them in the codebase will
block other fixes/features from being released as well.

So this commit removes those exposed interfaces to unblock the release.

Hopefully when https://bugs.ruby-lang.org/issues/18996 is approved we
can re-implement better APIs.

https://github.com/ruby/reline/commit/f7a961c550
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These APIs/configs are not approved by the Ruby core, so they can't be
released to the public. This means having them in the codebase will
block other fixes/features from being released as well.

So this commit removes those exposed interfaces to unblock the release.

Hopefully when https://bugs.ruby-lang.org/issues/18996 is approved we
can re-implement better APIs.

https://github.com/ruby/reline/commit/f7a961c550
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/reline] Rename dialog_pointer_* to dialog_highlight_*</title>
<updated>2022-07-22T14:34:49+00:00</updated>
<author>
<name>st0012</name>
<email>stan001212@gmail.com</email>
</author>
<published>2022-07-21T10:15:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=b3be03074066f0c8ff87942a8dd68578f480f27b'/>
<id>b3be03074066f0c8ff87942a8dd68578f480f27b</id>
<content type='text'>
"Pointer" is not what we usually use to describe a selected item.

"Highlight" is a more common word for the scenario so we should use it instead.

https://github.com/ruby/reline/commit/b4279d1557
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
"Pointer" is not what we usually use to describe a selected item.

"Highlight" is a more common word for the scenario so we should use it instead.

https://github.com/ruby/reline/commit/b4279d1557
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/reline] Use color name instead of code (integer) in dialog color APIs</title>
<updated>2022-07-15T17:30:23+00:00</updated>
<author>
<name>st0012</name>
<email>stan001212@gmail.com</email>
</author>
<published>2022-06-28T13:39:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=36ca0e58b600f3338ad4880d77c8c7fbc8f51460'/>
<id>36ca0e58b600f3338ad4880d77c8c7fbc8f51460</id>
<content type='text'>
As pointed out in the
[comment](https://github.com/ruby/reline/pull/413#issuecomment-1168033973),
the code is actually a control sequence and not only for colors.

To make the dialog color APIs safer to use, we should restrict its
usages and extract away the bg/fg concept from the input.

So in this commit, I made these changes:

1. The dialog_*_bg/fg_color APIs only takes and returns color names (symbol):
  - :black
  - :red
  - :green
  - :yellow
  - :blue
  - :magenta
  - :cyan
  - :white
2. Add additional dialog_*_bg/fg_color_sequence APIs to access the raw code.

https://github.com/ruby/reline/commit/b32a977766
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As pointed out in the
[comment](https://github.com/ruby/reline/pull/413#issuecomment-1168033973),
the code is actually a control sequence and not only for colors.

To make the dialog color APIs safer to use, we should restrict its
usages and extract away the bg/fg concept from the input.

So in this commit, I made these changes:

1. The dialog_*_bg/fg_color APIs only takes and returns color names (symbol):
  - :black
  - :red
  - :green
  - :yellow
  - :blue
  - :magenta
  - :cyan
  - :white
2. Add additional dialog_*_bg/fg_color_sequence APIs to access the raw code.

https://github.com/ruby/reline/commit/b32a977766
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/reline] Enable to change the background color of dialogs. (https://github.com/ruby/reline/pull/413)</title>
<updated>2022-06-27T13:28:49+00:00</updated>
<author>
<name>pocari</name>
<email>caffelattenonsugar@gmail.com</email>
</author>
<published>2022-06-27T13:28:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8c6c3e30f3a86ba0b697a0d99efe8ff4585c4a42'/>
<id>8c6c3e30f3a86ba0b697a0d99efe8ff4585c4a42</id>
<content type='text'>
https://github.com/ruby/reline/commit/bd49537964
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/reline/commit/bd49537964
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/reline] Fix support for emacs-ctlx and emacs-meta keymaps</title>
<updated>2022-02-22T09:52:52+00:00</updated>
<author>
<name>Tim Pope</name>
<email>code@tpope.net</email>
</author>
<published>2022-02-18T21:11:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=37d5890e4941cedf6918821b29bb4a7e3a092e62'/>
<id>37d5890e4941cedf6918821b29bb4a7e3a092e62</id>
<content type='text'>
The existing implementation, given the below .inputrc, erroneously
creates a "C-v" key binding:

	set keymap emacs-ctlx
	"\C-v": "[C-x C-v was pressed]"

This fixes it to instead create a "C-x C-v" keybinding.

https://github.com/ruby/reline/commit/719f52d231
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The existing implementation, given the below .inputrc, erroneously
creates a "C-v" key binding:

	set keymap emacs-ctlx
	"\C-v": "[C-x C-v was pressed]"

This fixes it to instead create a "C-x C-v" keybinding.

https://github.com/ruby/reline/commit/719f52d231
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/reline] @convert_meta is true unless 8-bit characters</title>
<updated>2021-12-10T13:19:14+00:00</updated>
<author>
<name>ima1zumi</name>
<email>mariimaizumi5@gmail.com</email>
</author>
<published>2021-12-06T14:26:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=5f1975a454dd9a6743bfa196111a4fde62366798'/>
<id>5f1975a454dd9a6743bfa196111a4fde62366798</id>
<content type='text'>
If Reline::IOGate.encoding contains 7-bit characters, convert-meta will set it On.

Because in readline(3):

&gt;  The default is On, but readline will set it to Off if the locale contains eight-bit characters.

As far as I know, 7-bit encoding used in terminals is only US-ASCII.

https://github.com/ruby/reline/commit/b71d1fa496
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If Reline::IOGate.encoding contains 7-bit characters, convert-meta will set it On.

Because in readline(3):

&gt;  The default is On, but readline will set it to Off if the locale contains eight-bit characters.

As far as I know, 7-bit encoding used in terminals is only US-ASCII.

https://github.com/ruby/reline/commit/b71d1fa496
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/reline] Refactor the merging key bindings to make it more readable</title>
<updated>2021-09-06T18:23:33+00:00</updated>
<author>
<name>aycabta</name>
<email>aycabta@gmail.com</email>
</author>
<published>2021-09-06T18:19:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=b4d9126e4332619644bfc9284688c1a8bd56d8ad'/>
<id>b4d9126e4332619644bfc9284688c1a8bd56d8ad</id>
<content type='text'>
https://github.com/ruby/reline/commit/59665a22de
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/reline/commit/59665a22de
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/reline] Change the comment about key bindings to more appropriate</title>
<updated>2021-09-06T18:23:26+00:00</updated>
<author>
<name>aycabta</name>
<email>aycabta@gmail.com</email>
</author>
<published>2021-09-06T18:17:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=2441bc8ea90b4e6790afb3174167103ec6a3b240'/>
<id>2441bc8ea90b4e6790afb3174167103ec6a3b240</id>
<content type='text'>
https://github.com/ruby/reline/commit/4364d9a386
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/reline/commit/4364d9a386
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/reline] Memoize path of `.inputrc` [Ref #319]</title>
<updated>2021-09-05T22:05:52+00:00</updated>
<author>
<name>manga_osyo</name>
<email>manga.osyo@gmail.com</email>
</author>
<published>2021-08-25T12:56:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=97a569c648acf489c9fd5602cc4ecc8a012bb07b'/>
<id>97a569c648acf489c9fd5602cc4ecc8a012bb07b</id>
<content type='text'>
When `ENV["HOME"] = "foo"` on irb, an exception is raised when retrieving the path of `.inputrc`.
Memoize the path of `.inputrc` and don't get the path after the second time.

https://github.com/ruby/reline/commit/7b90b16165
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When `ENV["HOME"] = "foo"` on irb, an exception is raised when retrieving the path of `.inputrc`.
Memoize the path of `.inputrc` and don't get the path after the second time.

https://github.com/ruby/reline/commit/7b90b16165
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/reline] Support oneshot key bindings config for key_trap of dialog callbacks</title>
<updated>2021-09-05T20:23:06+00:00</updated>
<author>
<name>aycabta</name>
<email>aycabta@gmail.com</email>
</author>
<published>2021-09-05T14:33:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=544cd3fb910ff41cdc87c70edf1d00e4f6d5b435'/>
<id>544cd3fb910ff41cdc87c70edf1d00e4f6d5b435</id>
<content type='text'>
https://github.com/ruby/reline/commit/5f1141b693
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/reline/commit/5f1141b693
</pre>
</div>
</content>
</entry>
</feed>
