Closed alaz closed 7 years ago
Out of curiosity, what's your OS ?
OS X "El Capitan", 10.11.6. In fact everything was just fine until recently and I don't know what exactly changed.
Aha, it's MacPorts' ncurses
update that was guilty:
$ sudo port provides /opt/local/share/terminfo/78/xterm-256color
/opt/local/share/terminfo/78/xterm-256color is provided by: ncurses
$ sudo port installed ncurses
The following ports are currently installed:
ncurses @6.0_0
ncurses @6.0-20170422_0
ncurses @6.0-20170520_0 (active)
$ sudo port activate ncurses @6.0-20170422_0
---> Deactivating ncurses @6.0-20170520_0
---> Cleaning ncurses
---> Activating ncurses @6.0-20170422_0
---> Cleaning ncurses
$ infocmp
# Reconstructed via infocmp from file: /opt/local/share/terminfo/78/xterm-256color
xterm-256color|xterm with 256 colors,
am, bce, ccc, km, mc5i, mir, msgr, npc, xenl,
colors#256, cols#80, it#8, lines#24, pairs#32767,
acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
…
This change to ncurses
effectively renders old versions of jline and sbt useless once it becomes more widely used. I think we should raise the issue back to the maintainers and lobby against it, or at least let them know of the impact.
Fwiw, I've just released JLine 2.14.4 to fix this issue.
FYI ran into same issue with arch linux (and fish shell):
# Reconstructed via infocmp from file: /usr/share/terminfo/x/xterm-256color
xterm-256color|xterm with 256 colors,
am, bce, ccc, km, mc5i, mir, msgr, npc, xenl,
colors#0x100, cols#80, it#8, lines#24, pairs#0x7fff
...
An workaround for this issue before bugfix is setting TERM
environment variable to xterm-color
.
Same for me on Arch Linux with screen in 256 colors:
# Reconstructed via infocmp from file: /usr/share/terminfo/s/screen-256color
screen-256color|GNU Screen with 256 colors,
am, km, mir, msgr, xenl,
colors#0x100, cols#80, it#8, lines#24, pairs#0x7fff,
I switched the TERM to screen instead of screen-256color
Yes, the output has been changed from colors#256 to colors#0x100 ... The jline code needs to be adapted. If someone could provide a patch...
Guillaume Nodet
Le mer. 16 août 2017 à 09:06, Cecile Tonglet notifications@github.com a écrit :
Same for me on Arch Linux with screen in 256 colors:
Reconstructed via infocmp from file: /usr/share/terminfo/s/screen-256color
screen-256color|GNU Screen with 256 colors, am, km, mir, msgr, xenl, colors#0x100, cols#80, it#8, lines#24, pairs#0x7fff,
I switched the TERM to screen instead of screen-256color
— You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub https://github.com/jline/jline2/issues/281#issuecomment-322697089, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFINjm5d0sus77HgS9SCM57c-2pqoW5ks5sYqLtgaJpZM4NqILD .
--
Guillaume Nodet
Red Hat, Open Source Integration
Email: gnodet@redhat.com Web: http://fusesource.com Blog: http://gnodet.blogspot.com/
Hmmm.... I would gladly change it if the code change is quite obvious but I have never done anything in Java...
I'm in vacation. This problem has actually already been fixed and released in jline 2.14.4.
The terminfo spec says integer values can have any format allowed for C literals, perhaps it would be a good idea to allow octal (and maybe binary) encoding as well?
https://lists.gnu.org/archive/html/bug-ncurses/2017-06/msg00001.html
Hello,
I am running the following command and get the output:
infocmp
shows: