Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work under FreeBSD. #117

Open
dmilith opened this issue Jan 21, 2015 · 2 comments
Open

Doesn't work under FreeBSD. #117

dmilith opened this issue Jan 21, 2015 · 2 comments

Comments

@dmilith
Copy link

dmilith commented Jan 21, 2015

There's no such command "infocmp" - which is hardcoded into rb-readline code.

@jemc
Copy link

jemc commented Jan 21, 2015

`infocmp -C`.split(':').select{|x| x =~ /(.*)=(.*)/ and hash[$1]=$2.gsub('\\E',"\e").gsub(/\^(.)/){($1[0].ord ^ ((?a..?z).include?($1[0]) ? 0x60 : 0x40)).chr}}

`infocmp -C -r`.scan(/\w{2}/).include?(name)

@dmilith
Copy link
Author

dmilith commented Jan 21, 2015

I suggest looking on other commands built into FreeBSD - termcap, terminfo.

brixen added a commit to rubinius/rubinius that referenced this issue Jan 23, 2015
We will install rubysl-readline or rb-readline depending on Platform.
See eg ConnorAtherton/rb-readline#117,
#3288
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants