Open Souravgoswami opened 2 years ago
Well, if I put --nocolorize, it still doesn't work. If I put --nomultiline
it works.
Same
I was also able to reproduce the problem on FreeBSD 13.0. (Ruby 2.7.4, irb 1.3.7 (2021-08-12), Reline 0.2.7, LANG=C.UTF-8)
It seems to be stuck here:
Reline::Core#may_req_ambiguous_char_width
Reline::IOGate#cursor_pos
Reline::ANSI#cursor_pos
c = stdin.getc
According to the following article, FreeBSD console does not respond to escape sequence of the cursor position.
for example, by remote terminal:
$ bash
[admin@freebsd ~]$ printf '\033[6n'; sleep 1; echo
^[[2;1R
[admin@freebsd ~]$ 1R
by FreeBSD console:
$ bash
[admin@freebsd ~]$ printf '\033[6n'; sleep 1; echo
[admin@freebsd ~]$
In these situation, it seems that we have to determine ambiguous width and cursor position in some other way.
Description
Expected Behaviour: Launch IRB in TTY.
Actual Behaviour: Can't seem to launch IRB in TTY,
CTRL + C
,CTRL + Z
, orCTRL + \
won't work. Needed to change terminal and SIGKILL.Result of irb_info
Sorry but if I can't launch IRB, how can I paste the command? Version:
irb 1.3.5 (2021-04-03) Ruby: 2.7.3 Ruby Host OS: DragonflyBSD 6
Terminal Emulator
Default TTY 1 - 7 (No GUI installed on system)
Setting Files
None, first basic install.
Edit
Ok, so I can ssh to my Linux system, and run IRB.
irb_info
gives: