Граф коммитов

690 Коммитов

Автор SHA1 Сообщение Дата
tompng a712f2a2a0 [ruby/reline] Fix dialog scrollbar rendering position and disappearing bug
https://github.com/ruby/reline/commit/e21b69ade4
2023-01-18 14:49:28 +00:00
elfham aa66595876 [ruby/reline] Update to Unicode 15.0.0
(https://github.com/ruby/reline/pull/437)

* Update to Unicode 14.0.0

* Update to Unicode 15.0.0
2023-01-12 09:40:34 +00:00
tomoya ishida 0abb4b6348 [ruby/reline] Pass unmodifined lines(that does not include escape
sequence) to check_multiline_prompt
(https://github.com/ruby/reline/pull/458)

* pass unmodified lines to check_multiline_prompt

* Add test to check that output modified by output_modifier_proc is not passed to prompt_proc
2023-01-12 00:14:53 +00:00
Phillip Hellewell 97f8f2c470 [ruby/reline] Add key binding for Delete
https://github.com/ruby/reline/commit/603eacee22
2023-01-10 12:18:14 +00:00
Joel Anderson e25c173c97 [ruby/reline] correct Win32API capitalization for JRuby
JRuby 9.4.0.0 introduced a change in case sensitivity in require statements,
meaning that an inclusion of `win32api` loaded Win32API.rb. With this change,
the require statement needs to be updated to the correct capitalization of the
filename to avoid reline failures in newer versions of JRuby.

https://github.com/ruby/reline/commit/d6e7c9e1d9
2023-01-04 06:32:46 +00:00
Hiroshi SHIBATA 989d993f5b [ruby/reline] Bump version to 0.3.2
https://github.com/ruby/reline/commit/3fbb7ec2ae
2022-12-14 07:01:19 +00:00
Stan Lo 16b2e03014 [ruby/reline] Remove unapproved color setting APIs
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
2022-12-05 03:14:55 +00:00
HASUMI Hitoshi 11871e49c4 [ruby/reline] Fix misuse of kwarg in IO#raw
- Obviously, `tim` is a typo for `time`
- This didn't cause an exception because IO#raw is implemented in C and it doesn't check the keyword of the parameters
- Though this typo doesn't produce any problems for now, I think it should be fixed just in case for the future
- I've used this fixed version of Reline with IRB for several days and didn't find any new problems due to the fix
- But I myself am not sure how to make sure this fix is completely robust

https://github.com/ruby/reline/commit/e66a9696a1
2022-12-02 10:47:18 +00:00
Otávio Schwanck dos Santos 696e8914b7 [ruby/reline] PR changes
https://github.com/ruby/reline/commit/e8e8d81f47
2022-09-22 22:28:38 +09:00
Otávio Schwanck dos Santos 9d19d910c0 [ruby/reline] Revert "update version"
This reverts commit https://github.com/ruby/reline/commit/ce1ac86179e6.

https://github.com/ruby/reline/commit/86602cd244
2022-09-22 22:28:37 +09:00
Otávio Schwanck dos Santos 224a3ea718 [ruby/reline] update version
https://github.com/ruby/reline/commit/ce1ac86179
2022-09-22 22:28:37 +09:00
Otávio Schwanck dos Santos 9fb18e6314 [ruby/reline] fix vi-operator-arg
https://github.com/ruby/reline/commit/d42cdb8f91
2022-09-22 22:28:36 +09:00
Nobuyoshi Nakada 1b8a644b44 [ruby/reline] Fix a typo [ci skip]
https://github.com/ruby/reline/commit/33bf80e757
2022-09-03 03:27:58 +09:00
Hiroshi SHIBATA 0d2422cf63 [ruby/reline] Workaround for padding width with Aracritty on macOS
https://github.com/ruby/reline/commit/fb4136c8a7
2022-09-02 16:09:51 +09:00
Hiroshi SHIBATA 7ff50ee35c [ruby/reline] Added some of abstruct methods for cursor
https://github.com/ruby/reline/commit/f5fa30d595
2022-09-02 16:09:50 +09:00
Mau Magnaguagno 941e9be0d9 [ruby/reline] Remove loose operation in Dialog#render_each_dialog
https://github.com/ruby/reline/commit/a6d1c917ce
2022-09-01 14:01:37 +09:00
st0012 b3be030740 [ruby/reline] Rename dialog_pointer_* to dialog_highlight_*
"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
2022-07-22 23:34:49 +09:00
st0012 36ca0e58b6 [ruby/reline] Use color name instead of code (integer) in dialog color APIs
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
2022-07-16 02:30:23 +09:00
pocari 8c6c3e30f3 [ruby/reline] Enable to change the background color of dialogs. (https://github.com/ruby/reline/pull/413)
https://github.com/ruby/reline/commit/bd49537964
2022-06-27 22:28:49 +09:00
st0012 b1397e96da [ruby/reline] Revert "Merge pull request #441 from nevans/workaround-linker-script-so"
This reverts commit https://github.com/ruby/reline/commit/4ccf128ffa18, reversing
changes made to https://github.com/ruby/reline/commit/a2651419e9a0.

https://github.com/ruby/reline/commit/51053138a4
2022-06-13 19:33:15 +09:00
nicholas a. evans d020334e9e [ruby/reline] Workaround libncurses.so as a linker script
This maybe isn't probably isn't the best approach, but it will allow
`Fiddle::Terminfo.curses_dl` to work.  I documented more details about
this in an issue on fiddle: https://github.com/ruby/fiddle/issues/107

It is probably better to deal with it there.  But this is workaround is
simpler.

FYI: `reline` itself seems to be working just fine for me _without_
loading ncurses.  But I wanted to be able to use `Reline::Terminfo` for
my own projects. :)

https://github.com/ruby/reline/commit/fd4bdb35e2
2022-05-25 06:34:28 +09:00
ima1zumi bcdbfe4b6e
[ruby/reline] Require Ruby >= 2.6
fix https://github.com/ruby/reline/pull/428

https://github.com/ruby/reline/commit/dae9eca323
2022-05-20 17:49:15 +09:00
Tim Pope 37d5890e49 [ruby/reline] Fix support for emacs-ctlx and emacs-meta keymaps
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
2022-02-22 18:52:52 +09:00
aycabta d66e7ec77b [ruby/reline] Add a comment for VK_MENU
https://github.com/ruby/reline/commit/ee307c2b01
2022-01-27 20:54:09 +09:00
aycabta f4ee60543a [ruby/reline] The AltGr behaves exactly the same as Ctrl+Alt
On European keyboards.

https://github.com/ruby/reline/commit/75fe9759a4
2022-01-27 20:54:09 +09:00
Postmodern c155445752 [ruby/reline] Ignore global constants when checking if Fiddle::VERSION exists
If a top-level `VERSION` constant exists, or if a module containing a `VERSION` constant is included into the top-level scope, then `Fiddle.const_defined?(:VERSION)` will erroneously return true when `RUBY_VERSION < 3.0.0`.

https://github.com/ruby/reline/commit/8529c8e47a
2022-01-24 07:00:34 +09:00
aycabta f5e3913737 [ruby/reline] Fix incremental search to work correctly even if not last line
https://github.com/ruby/reline/commit/21d75f6d4c
2022-01-16 22:09:31 +09:00
aycabta 921ff739df [ruby/reline] Insert newline in the middle of buffer just after dialog
https://github.com/ruby/reline/commit/0c76631132
2022-01-16 22:09:31 +09:00
aycabta 2bc6b07a8d [ruby/reline] Combine common logic into one
https://github.com/ruby/reline/commit/5db9738f17
2022-01-16 22:09:29 +09:00
aycabta f94a2adf6a [ruby/reline] Clear dialog when adding new line to end of buffer
https://github.com/ruby/reline/commit/7d38454327
2022-01-16 22:09:28 +09:00
aycabta 9e79ae539b [ruby/reline] Clear dialog when just_move_cursor is called with dialog at last line
https://github.com/ruby/reline/commit/05024b968e
2022-01-11 06:10:37 +09:00
Peter Zhu 09cfc653b7 [ruby/reline] Fix reline on Solaris
Solaris requires that the pointer errret_int is alined to an integer,
however, with VWA, strings are no longer aligned to an integer, so use a
Fiddle::Pointer with a malloc'd region instead.

https://github.com/ruby/reline/commit/5fcd89ab0c
2022-01-08 20:32:06 +09:00
aycabta 76181ae940 [ruby/reline] Check capname of tigetstr/tigetflag/tigetnum
Incorrect arguments can cause SEGV.

https://github.com/ruby/reline/commit/a58748bcf9
2022-01-02 11:44:07 +09:00
aycabta 6d1b406dc8 [ruby/reline] Version 0.3.1
https://github.com/ruby/reline/commit/9ab5850444
2022-01-02 11:24:14 +09:00
aycabta 85f304b931 [ruby/reline] Implement Reline::Terminfo.tigetnum
https://github.com/ruby/reline/commit/695212d5d2
2022-01-02 10:27:09 +09:00
aycabta 530586fafc [ruby/reline] Fix the difinition of tigetflag() in comment...
https://github.com/ruby/reline/commit/af4d77ba09
2022-01-02 00:39:45 +09:00
aycabta 7deee741ab [ruby/reline] Remove unnecessary qualifiers on definition of comments
https://github.com/ruby/reline/commit/abc1e4ee88
2022-01-01 23:12:07 +09:00
aycabta 6300c4dcc3 [ruby/reline] Implement Reline::Terminfo.tigetflag
https://github.com/ruby/reline/commit/0451ed7a28
2022-01-01 23:06:53 +09:00
YO4 31c69d66d2 [ruby/reline] windows fix scroll
https://github.com/ruby/reline/commit/c559d0f7a9
2021-12-30 20:53:21 +09:00
ima1zumi f589242e75 [ruby/reline] Use unix_line_discard when Ctrl-u is entered
The kill-line was called when C-u was entered, so it is now called unix-line-discard.

In readline(3):

> unix-line-discard (C-u)
>               Kill backward from point to the beginning of the line.
>               The killed text is saved on the kill-ring.

https://github.com/ruby/reline/commit/27570d195e
2021-12-30 20:23:58 +09:00
aycabta 40c20110d5 [ruby/reline] Version 0.3.0
https://github.com/ruby/reline/commit/3f6ea92268
2021-12-25 10:58:44 +09:00
aycabta c815c0be46 [ruby/reline] Escape newline(s) in dynamic prompt
https://github.com/ruby/reline/commit/9b209ee1ea
2021-12-25 00:32:58 +09:00
aycabta b0db420b0e [ruby/reline] Escape newline(s) in prompt
https://github.com/ruby/reline/commit/b545459fca
2021-12-25 00:32:57 +09:00
aycabta 22cc2243f9 [ruby/reline] Remove unnecessary parameter
https://github.com/ruby/reline/commit/20fcd22564
2021-12-25 00:32:56 +09:00
aycabta 4fccefef05 [ruby/reline] Revert "Change aliased methods to be parivete"
Ruby 2.5 doesn't support "private alias_method" idiom  but Ruby on Rails
6.x still support 2.5. 😢

This reverts commit https://github.com/ruby/reline/commit/0f075f562b9b.

https://github.com/ruby/reline/commit/4ecaa63b26
2021-12-24 18:23:28 +09:00
aycabta fc5bc378e5 [ruby/reline] Change aliased methods to be parivete
https://github.com/ruby/reline/commit/0f075f562b
2021-12-24 18:23:28 +09:00
aycabta a9c59b13da [ruby/reline] Add doc about em-kill-line macro
https://github.com/ruby/reline/commit/2e46493aff
2021-12-24 18:23:28 +09:00
aycabta bad1e153d4 [ruby/reline] Implement em_kill_line
https://github.com/ruby/reline/commit/9fca6ceb45
2021-12-24 18:23:28 +09:00
aycabta 6c3cc9c58a [ruby/reline] Rename the wrong name "em-kill-line" with the correct name "unix-line-discard"
https://github.com/ruby/reline/commit/da7af35d1f
2021-12-24 18:23:28 +09:00
aycabta fd60a235f5 [ruby/reline] Add doc about ed-kill-line, kill-line, em-kill-line, and unix-line-discard
https://github.com/ruby/reline/commit/586a48ffe0
2021-12-24 18:23:28 +09:00
aycabta 9de42d3b34 [ruby/reline] Bind ed-kill-line to C-u on emacs mode
https://github.com/ruby/reline/commit/9ab99574f5
2021-12-24 18:23:28 +09:00
aycabta 15fab6fb17 [ruby/reline] Support S-Tab to move up completion cursor in vi-mode on Unix
https://github.com/ruby/reline/commit/ff278cdc88
2021-12-24 18:23:28 +09:00
aycabta 3a59abab08 [ruby/reline] Determine 1st char or 2nd char of surrogate pair correctly
https://github.com/ruby/reline/commit/182606c847
2021-12-24 13:57:46 +09:00
aycabta 4bb65ee4fe [ruby/reline] Character merging may increase the character width
Even if the number of graphemes doesn't change owing to character
merging, the character width may increase.

https://github.com/ruby/reline/commit/fbcd5f56a7
2021-12-24 00:51:48 +09:00
aycabta 726cc8122e [ruby/reline] "Halfwidth char + halfwidth (han)dakuten" is a single grapheme.
When a halfwidth character is followed by a halfwidth dakuten or a
halfwidth handakuten character, it should be treated as a single
grapheme.

https://github.com/ruby/reline/commit/9f20b9ec28
2021-12-24 00:51:47 +09:00
aycabta daf4a8884b [ruby/reline] Add comment for a following char of combined char
https://github.com/ruby/reline/commit/d465667f57
2021-12-24 00:51:46 +09:00
aycabta 37aea9d798 [ruby/reline] Finalize when exception occurred
https://github.com/ruby/reline/commit/1f8a3aee43

Co-authored-by: Alex Gittemeier <me@a.lexg.dev>
2021-12-21 00:49:03 +09:00
aycabta c3a3f65b45 [ruby/reline] Split off set_signal_handler method
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
2021-12-21 00:13:19 +09:00
aycabta 95c61c8d82 [ruby/reline] Remove unnecessary clearing signal handler
https://github.com/ruby/reline/commit/7a758e73dc
2021-12-21 00:13:18 +09:00
aycabta 6ccc15c2ab [ruby/reline] Rename an unused variable name for CI
https://github.com/ruby/reline/commit/ba97f3bd87
2021-12-20 15:52:51 +09:00
aycabta 145c1e0691 [ruby/reline] Add support for overwriting dialog proc with the same name
https://github.com/ruby/reline/commit/16aa20c380
2021-12-20 14:54:42 +09:00
aycabta cf508d4db9 [ruby/reline] Add space
https://github.com/ruby/reline/commit/4b7fa6b213
2021-12-20 14:53:45 +09:00
YO4 2a8ff602e0 [ruby/reline] windows jruby issue
jruby needs terminal control with Windows API  on classic console

https://github.com/ruby/reline/commit/b61bc43374
2021-12-20 14:51:52 +09:00
YO4 65cb250cb1 [ruby/reline] windows clear screen with \e 2 J
Windows Terminal does smart screen clearing when \e 2 J (not clear entire screen but scrolls down just needed)

On consoles not support sequences, ruby still converts it to API call.

https://github.com/ruby/reline/commit/c00930dab9
2021-12-20 14:51:52 +09:00
YO4 2c415cda85 [ruby/reline] windows improve scrolling
ScrollConsoleScreenBuffer can't scroll window of Windows Terminal.
Use LF to sctoll.

Microsoft says
```In the virtual terminal sequences world, the size of the window and the size of the screen buffer are fixed to the same value.
```
https://docs.microsoft.com/en-us/windows/console/window-and-screen-buffer-size

https://github.com/ruby/reline/commit/9ff3c70732
2021-12-20 14:51:51 +09:00
aycabta a856489be6 [ruby/reline] Revert "Add a space after a comma"
This reverts commit https://github.com/ruby/reline/commit/6009b3ef7ab7.

To merge a Pull Request...

https://github.com/ruby/reline/commit/83021f4267
2021-12-20 14:50:41 +09:00
aycabta 7dd0e91cac [ruby/reline] Revert "Add space"
This reverts commit https://github.com/ruby/reline/commit/1bb071bcf5a9.

To merge a Pull Request...

https://github.com/ruby/reline/commit/e9fe1b1305
2021-12-20 14:46:35 +09:00
Nobuyoshi Nakada a81e0600a7 [ruby/reline] Load correct version.rb from gemspec
When merged to ruby/ruby, reline.gemspec file is located under
lib/reline, as the same as reline/version.rb.  That is the latter
path relative from the former differs from the ruby/reline case,
and the reline/version.rb in the default load path will be loaded.
Try `require_relative` not to load unexpected files.

https://github.com/ruby/reline/commit/54905d0e1b
2021-12-19 12:14:10 +09:00
aycabta 7159af3491 [ruby/reline] Clear dialog in pasting
https://github.com/ruby/reline/commit/dabf5313e0
2021-12-19 11:19:50 +09:00
aycabta 1c49d809f4 [ruby/reline] Remove unnecessary "*"
https://github.com/ruby/reline/commit/7b50638e24
2021-12-18 10:18:33 +09:00
aycabta 7f2123bc08 [ruby/reline] Add a space after a comma
https://github.com/ruby/reline/commit/6009b3ef7a
2021-12-18 10:18:32 +09:00
aycabta 8cc01b668a [ruby/reline] Add space
https://github.com/ruby/reline/commit/1bb071bcf5
2021-12-18 10:15:23 +09:00
aycabta 8411e8449b [ruby/reline] Remove unnecessary variables, lower_space
The number of lines below the cursor position was known by
"@rest_height" alone, but the problem was caused by adding
"lower_space". Remove "lower_space" as it is unnecessary.

https://github.com/ruby/reline/commit/a575cef6a3
2021-12-13 20:44:21 +09:00
Samuel Williams b5c4570af4 [ruby/reline] Prefer wait_readable for fiber scheduler.
https://github.com/ruby/reline/commit/06b4aa31fd
2021-12-11 14:29:20 +09:00
ima1zumi 5f1975a454 [ruby/reline] @convert_meta is true unless 8-bit characters
If Reline::IOGate.encoding contains 7-bit characters, convert-meta will set it On.

Because in readline(3):

>  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
2021-12-10 22:19:14 +09:00
ima1zumi 519a945efc [ruby/reline] Execute compress_meta_key if convert_meta is on
fix `#357`

When using 8-bit characters, it is better not to use `compress_meta_key`.
I believe not to use `compress_meta_key` unless `set convert-meta on` is written in the `.inputrc`.

The following is a quote from tmtm's comments.

> The behavior of this compress_meta_key method is similar to the behavior of convert-meta=on in readline, but readline turns off convert-meta if the locale contains 8bit characters.

> In readline(3):

> convert-meta (On)
> If set to On, readline will convert characters with the eighth
> bit set to an ASCII key sequence by stripping the eighth bit and
> prefixing it with an escape character (in effect, using escape
> as the meta prefix). The default is On, but readline will set
> it to Off if the locale contains eight-bit characters.

https://github.com/ruby/reline/commit/9491cc8542

Co-authored-by: TOMITA Masahiro <tommy@tmtm.org>
2021-12-10 22:19:14 +09:00
YO4 3a2ae5bb19 [ruby/reline] unleash real pasting speed
2700msec -> 410msec

read 80 console inputs at once

https://github.com/ruby/reline/commit/eb3ef7af98
2021-12-10 22:18:26 +09:00
YO4 74765a5a36 [ruby/reline] unleash pasting speed
https://github.com/ruby/reline/commit/074e407c62
2021-12-10 22:18:25 +09:00
YO4 aed21d6574 [ruby/reline] support input surrogate paird codepoint
support surrogate pair input

https://github.com/ruby/reline/commit/0b4acedc6a
2021-12-10 22:16:46 +09:00
YO4 66e14e2076 [ruby/reline] follow consolemode change
fix 'https://github.com/ruby/reline/issues/300'

https://github.com/ruby/reline/commit/b2cc6805a8
2021-12-10 22:15:56 +09:00
ima1zumi 4d4716d939 [ruby/reline] No need to check `x > 0`
Checked in the previous line.

https://github.com/ruby/reline/commit/bf774c0f2c
2021-12-03 00:39:30 +09:00
ima1zumi ca33b59099 [ruby/reline] fix `TerminfoError` -> `Reline::Terminfo::TerminfoError`
https://github.com/ruby/reline/commit/c07b0ace6a
2021-12-02 23:41:44 +09:00
ima1zumi 697d7b8d62 [ruby/reline] Rescue if tigetstr(capname) cannot be obtained
fix https://github.com/ruby/reline/issues/384

If `$TERM` is `vt102`, there are no `kend`, `khome`, `civis`, or `cnorm` in capabilities.
`TerminfoError` is raised in `Reline::Terminfo.tigetstr(capname)`, so it is rescued if it does not exist.

https://github.com/ruby/reline/commit/c9f5112702
2021-12-02 23:41:43 +09:00
ima1zumi f5829e2935 [ruby/reline] Correct padding space calculation
fix https://github.com/ruby/irb/issues/308

This bug occurred when `dialog.width - calculate_width(s, true)` was negative.

When `dialog.width` is shorter than `old_dialog.width`, it calculates how much padding it has to do. However, there are cases where `s` is longer than `dialog.width`, as in the issue. In that case, `padding_space_with_escape_sequences` will crash.

Here, `old_dialog.width` is longer than `dialog.width`, so I changed the padding width to `old_dialog.width - dialog.width`.

https://github.com/ruby/reline/commit/c581c31e0f
2021-11-21 13:56:26 +09:00
Nobuyoshi Nakada a48dc89547 [ruby/reline] Check the result of GetConsoleScreenBufferInfo
https://github.com/ruby/reline/commit/42edf7b3aa
2021-10-12 13:19:25 +09:00
Nobuyoshi Nakada 1009fd7ee3 [ruby/reline] Revert "Fix zero division when the screen width is not available"
This reverts commit 0dce9da083541f42c31822a91c72f339934c3986.

https://github.com/ruby/reline/commit/f71471cdde
2021-10-12 13:19:24 +09:00
Nobuyoshi Nakada 60689f0f20 [ruby/reline] Fix zero division when the screen width is not available
https://github.com/ruby/reline/commit/0dce9da083
2021-10-12 00:40:22 +09:00
aycabta e212d051d0 [ruby/reline] Rescue LoadError to require 'fiddle'
https://github.com/ruby/reline/commit/fe504bb6b9
2021-10-11 21:34:31 +09:00
aycabta 89556a6555 [ruby/reline] Remove a comment for debug
https://github.com/ruby/reline/commit/5f3ccda3d5
2021-10-11 21:17:02 +09:00
aycabta 56140bc7af [ruby/reline] Version 0.2.8.pre.11
https://github.com/ruby/reline/commit/de858ee1ac
2021-10-09 23:27:40 +09:00
aycabta 9cb7ba2f21 [ruby/reline] Add RELINE_ALT_SCROLLBAR env to use alternative text for scrollbar
The setting to use '::' instead of block elements.

https://github.com/ruby/reline/commit/4afbc98e2c
2021-10-09 23:23:02 +09:00
aycabta e6ba2953e9 [ruby/reline] Fix calculating dialog width with full-width scrollbar
https://github.com/ruby/reline/commit/93bc9b5277
2021-10-09 23:22:57 +09:00
aycabta ded5a66cb9 [ruby/reline] Use alternate text for scrollbar in non-UTF-8 env
https://github.com/ruby/reline/commit/69e365edcc
2021-10-08 18:48:44 +09:00
Jeremy Evans 55d7f63bde [ruby/reline] Better fix for non-UTF-8 default external encoding
Previous fix didn't show the cursor or dialogs.  This allows the
dialogs to continue to work.

https://github.com/ruby/reline/commit/651c5f63cc
2021-10-08 10:38:47 +09:00
Jeremy Evans eb4682b3c6 [ruby/reline] Only show dialogs if default external encoding is UTF-8
Fixes a crash in IRB if a dialog is displayed and the default
external encoding is not UTF-8:

/home/jeremy/tmp/reline/lib/reline/line_editor.rb:731:in `write': U+2588 from UTF-8 to US-ASCII (Encoding::UndefinedConversionError)

https://github.com/ruby/reline/commit/f570525ecd
2021-10-08 10:38:43 +09:00
aycabta 374b15a84a [ruby/reline] Cut off the excess on narrow screen
https://github.com/ruby/reline/commit/972cc993ca
2021-10-08 10:33:22 +09:00
aycabta a2f55679f0 [ruby/reline] Rename DIALOG_HEIGHT with DIALOG_DEFAULT_HEIGHT
https://github.com/ruby/reline/commit/996bfec64b
2021-10-08 10:33:17 +09:00
aycabta f625645a37 [ruby/reline] The width of block elements is 1 on Windows
https://github.com/ruby/reline/commit/5f4a75c7a0
2021-10-05 22:33:07 +09:00
aycabta 6966c3ff44 [ruby/reline] Change struct size correctly
https://github.com/ruby/reline/commit/df2a1b4e08
2021-10-05 22:32:56 +09:00
aycabta 1e9714cf34 [ruby/reline] Use default background color to erase on Windows
https://github.com/ruby/reline/commit/852e855d82
2021-10-04 00:14:10 +09:00