Questions tagged [libreadline]

The Gnu readline library is used by other programs, such as shells and interpreters, to provide common line-editing capabilities.

83 questions
6
votes
1 answer

“readline” when there is output at beginning of line

I am using the readline (version 6.3, default [non-vi] mode, Ubuntu 14.04) library from within my own program, running in a Terminal window (on a PC). There is a problem when there is previous output not terminated by newline when readline() is…
JonBrave
  • 4,045
  • 3
  • 38
  • 115
6
votes
4 answers

Bash usage of vi or emacs

From a programming standpoint, when you set the bash shell to use vi or emacs via set -o vi or set -o emacs What is actually going on here? I've been reading a book where it claims the bash shell uses either of these editors for the input to the…
Recursion
  • 2,915
  • 8
  • 38
  • 51
5
votes
3 answers

no such file to load -- readline (Load Error)

When I want to execute Rails 3 console, it throws this: $ script/rails c /usr/local/rvm/rubies/ruby-1.9.2-p318/lib/ruby/1.9.1/irb/completion.rb:9:in `require': no such file to load -- readline (Load Error) I tried to install libreadline-dev: $ sudo…
Israel
  • 3,252
  • 4
  • 36
  • 54
5
votes
1 answer

Ruby line editing telnet server

I am implementing a little telnet server in Ruby. The problem I'm currently facing is that I want to add readline support so that I can have tab-completion and command-line history support. I have looked at the Readline library, but it seems as…
wcmatthysen
  • 445
  • 4
  • 19
5
votes
0 answers

How to correctly link patched GNU readline library to all existing programs?

My original issue was that I wanted a way to distinguish between whether I am in vi-command mode or vi-insert mode while using bash in vi-mode. I understand that as of GNU readline 7.0 there is a way to set an indicator in the command prompt;…
jinscoe123
  • 1,467
  • 14
  • 24
4
votes
2 answers

Need a progress indicator for a Perl system() command using T:R:G mod

I want a progress indicator that takes the output of a Perl system('make') and for each line output to STDOUT from the make command, I want to output a dot as a progress indicator. Unfortunately, I'm using the Term::ReadLine::Gnu Perl mod. How…
bitbucket
  • 1,171
  • 1
  • 9
  • 20
3
votes
3 answers

Why do I get a Readline error when trying to start rails console?

UPDATE: I probably messed up my system while trying solutions found somewhere else. I started from scratch and Ruby 1.9.3 installed without a hitch. Now to try to get ree-1.8.7 to play nice alongside... I'm trying to install Ruby 1.9.3 using RVM on…
mbillard
  • 38,386
  • 18
  • 74
  • 98
3
votes
0 answers

clang-8: error: linker command failed with exit code 1

I was writing a simple shell program in Termux in Android 5 (Lollipop) with GNU readline library in C program. I am getting linker error on compiling the below code. The same code is works fine in Android 9' Termux. I have verified the readline Dev…
Kirubakaran
  • 378
  • 4
  • 20
3
votes
3 answers

python line editing telnet server

I am creating a server in python (what it is doing is irrelevant), but I would like it to accept telnet connections and provide a command line interface with line editing capabilities (tabcompletion, emacs/vi-mode, etc) and history per session. I…
ext
  • 2,593
  • 4
  • 32
  • 45
3
votes
3 answers

Installing Heroku on Ubuntu Lucid Lynx is broken

I am trying to get a Ruby on Rails app hosted free somewhere, and Heroku is looking like my last resource. It is supposed to work on Linux, and the gem installs with no errors, but whenever I run any Heroku command it spits out several errors, all…
3
votes
3 answers

pty functionality for socket

I'm writing the linux daemon and I want to implement ability to configure its params via telnet. I have a cli interface code, written using gnu readline library with history and completers and I'd like to using that interface code for daemon. I…
3
votes
2 answers

Autoclose GNU Readline

Working on various GNU Readline-based CLIs and it would dramatically speed me up if there was a way to have brackets and quotes automatically closed when you type. Thus typing a ' or ( on Bash (or other CLIs) would actually append the closing quote…
nikola
  • 5,286
  • 3
  • 22
  • 19
2
votes
1 answer

How do I change my readline path?

I'm trying to install ipython, which appears to require the readline library. I did install readline via easy_install. But every test I run iptest (or any other file) it spits this back: dyld: Library not loaded:…
2
votes
1 answer

How to highlight text using readline?

I'm trying to make a CLI that highlights text using readline. However, whenever I replace the line with a string containing ANSI codes so it can be colored, instead of the line showing up in color, the ANSI codes are displayed. How can I make the…
user
  • 7,435
  • 3
  • 14
  • 44
2
votes
1 answer

R: set command line Readline init file location

Per https://cran.r-project.org/doc/manuals/r-release/R-intro.html#The-command_002dline-editor, for the R command line, the Readline init file defaults to ~/.inputrc. Is there a way to specify another location for this file?
flow2k
  • 3,999
  • 40
  • 55