<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/reline/test_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] Check empty .inputrc</title>
<updated>2021-07-29T17:27:02+00:00</updated>
<author>
<name>aycabta</name>
<email>aycabta@gmail.com</email>
</author>
<published>2021-07-24T06:01:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=46c6da9c378a64deb2d65d8fcf5afd4d7c9c3f45'/>
<id>46c6da9c378a64deb2d65d8fcf5afd4d7c9c3f45</id>
<content type='text'>
https://github.com/ruby/reline/commit/b60b3b76cd
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/reline/commit/b60b3b76cd
</pre>
</div>
</content>
</entry>
<entry>
<title>Rescue conversion error of inputrc</title>
<updated>2021-06-21T13:12:14+00:00</updated>
<author>
<name>aycabta</name>
<email>aycabta@gmail.com</email>
</author>
<published>2021-06-21T13:12:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=046fd3ac8c9b00560cbe1055a300c3bb5f35f1bc'/>
<id>046fd3ac8c9b00560cbe1055a300c3bb5f35f1bc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/reline] The config file must accept any character encoding</title>
<updated>2021-06-21T08:58:48+00:00</updated>
<author>
<name>aycabta</name>
<email>aycabta@gmail.com</email>
</author>
<published>2021-04-20T03:00:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=b0cc46b484028b65b3306e9d19803e49c7b7cd58'/>
<id>b0cc46b484028b65b3306e9d19803e49c7b7cd58</id>
<content type='text'>
In Japan, so many programmers used EUC-JP to write text files that contain
Japanese. Many .inputrc files which contain EUC-JP are still being copied and
used. This commit supports the whole encoding of what user set including UTF-8.

ref. https://github.com/ruby/reline/pull/280

https://github.com/ruby/reline/commit/0b45022e16
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In Japan, so many programmers used EUC-JP to write text files that contain
Japanese. Many .inputrc files which contain EUC-JP are still being copied and
used. This commit supports the whole encoding of what user set including UTF-8.

ref. https://github.com/ruby/reline/pull/280

https://github.com/ruby/reline/commit/0b45022e16
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/reline] ensure reline's encoding is used when reading inputrc character values</title>
<updated>2021-06-21T08:58:48+00:00</updated>
<author>
<name>Mark Delk</name>
<email>jethrodaniel@gmail.com</email>
</author>
<published>2021-04-14T02:23:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a049dfd10a3b9ae24a1822e807398422e87d142f'/>
<id>a049dfd10a3b9ae24a1822e807398422e87d142f</id>
<content type='text'>
This change ensures we use `Reline::IOGate`'s `encoding` when converting
characters from their integer values.

This fixes an issue that may occur if you have UTF characters in your
`.inputrc`, but your default encoding isn't set.

For example:

```
&gt; 127864.ord.chr
RangeError: 127864 out of char range
from (pry):1:in `chr'
&gt; Reline::IOGate.encoding
=&gt; #&lt;Encoding:UTF-8&gt;
&gt; 127864.ord.chr(Reline::IOGate.encoding)
=&gt; "🍸"
```

https://github.com/ruby/reline/commit/cf372fc0fc
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This change ensures we use `Reline::IOGate`'s `encoding` when converting
characters from their integer values.

This fixes an issue that may occur if you have UTF characters in your
`.inputrc`, but your default encoding isn't set.

For example:

```
&gt; 127864.ord.chr
RangeError: 127864 out of char range
from (pry):1:in `chr'
&gt; Reline::IOGate.encoding
=&gt; #&lt;Encoding:UTF-8&gt;
&gt; 127864.ord.chr(Reline::IOGate.encoding)
=&gt; "🍸"
```

https://github.com/ruby/reline/commit/cf372fc0fc
</pre>
</div>
</content>
</entry>
</feed>
