<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/lib/reline.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] Support dumb terminal</title>
<updated>2022-09-01T07:36:16+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-09-01T05:14:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=59e8569cf938e0e449fd649b564da995ffb67470'/>
<id>59e8569cf938e0e449fd649b564da995ffb67470</id>
<content type='text'>
The "dumb" terminal is considered only on MSys tty now.  However, the
`TERM` feature has been used on many Unix-like systems for decades,
not MSys specific.

https://github.com/ruby/reline/commit/53fd51ab62
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The "dumb" terminal is considered only on MSys tty now.  However, the
`TERM` feature has been used on many Unix-like systems for decades,
not MSys specific.

https://github.com/ruby/reline/commit/53fd51ab62
</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] Check the ambiguous char width only on tty</title>
<updated>2022-06-13T03:17:04+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-02-05T09:18:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d9ccb6b372f830fe4aab89460bb4b6147cfd924f'/>
<id>d9ccb6b372f830fe4aab89460bb4b6147cfd924f</id>
<content type='text'>
It sent the char to check even to non-tty, e.g., pipe.
This causes `unknown command: "\xE2\x96\xBDstart ` warnings on
ruby's parallel test on Windows, where non-standard FDs cannot be
passed to child processes.

https://github.com/ruby/reline/commit/0d373647fb
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It sent the char to check even to non-tty, e.g., pipe.
This causes `unknown command: "\xE2\x96\xBDstart ` warnings on
ruby's parallel test on Windows, where non-standard FDs cannot be
passed to child processes.

https://github.com/ruby/reline/commit/0d373647fb
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/reline] Finalize when exception occurred</title>
<updated>2021-12-20T15:49:03+00:00</updated>
<author>
<name>aycabta</name>
<email>aycabta@gmail.com</email>
</author>
<published>2021-12-20T15:16:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=37aea9d7984d9bf884df121ab0b44168ae1ac0c5'/>
<id>37aea9d7984d9bf884df121ab0b44168ae1ac0c5</id>
<content type='text'>
https://github.com/ruby/reline/commit/1f8a3aee43

Co-authored-by: Alex Gittemeier &lt;me@a.lexg.dev&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/reline/commit/1f8a3aee43

Co-authored-by: Alex Gittemeier &lt;me@a.lexg.dev&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/reline] Split off set_signal_handler method</title>
<updated>2021-12-20T15:13:19+00:00</updated>
<author>
<name>aycabta</name>
<email>aycabta@gmail.com</email>
</author>
<published>2021-12-20T09:46:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c3a3f65b4575898ae2ae457bc4f56d1e6bdb169f'/>
<id>c3a3f65b4575898ae2ae457bc4f56d1e6bdb169f</id>
<content type='text'>
In some tests, the LineEditor#reset method is always called, but doesn't
need to set the signal handlers there, so cuts it out to a separate
method.

https://github.com/ruby/reline/commit/b143c4f5f9
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In some tests, the LineEditor#reset method is always called, but doesn't
need to set the signal handlers there, so cuts it out to a separate
method.

https://github.com/ruby/reline/commit/b143c4f5f9
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/reline] Add support for overwriting dialog proc with the same name</title>
<updated>2021-12-20T05:54:42+00:00</updated>
<author>
<name>aycabta</name>
<email>aycabta@gmail.com</email>
</author>
<published>2021-12-20T05:36:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=145c1e0691d4a6ca8eda40a42e584a1f6899fae2'/>
<id>145c1e0691d4a6ca8eda40a42e584a1f6899fae2</id>
<content type='text'>
https://github.com/ruby/reline/commit/16aa20c380
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/reline/commit/16aa20c380
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/reline] Add Reline.dialog_proc(name_sym)</title>
<updated>2021-12-20T05:54:42+00:00</updated>
<author>
<name>aycabta</name>
<email>aycabta@gmail.com</email>
</author>
<published>2021-12-20T05:34:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c462e07a5c9cf80227926de40c00917445f5b53e'/>
<id>c462e07a5c9cf80227926de40c00917445f5b53e</id>
<content type='text'>
https://github.com/ruby/reline/commit/7e5dbe4750
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/reline/commit/7e5dbe4750
</pre>
</div>
</content>
</entry>
</feed>
