Questions tagged [editline]
27 questions
36
votes
9 answers
editline/history.h and editline/readline.h not found/working on macOS when trying to compile with developer tools installed already
I am working on this tutorial on building your own LISP (http://www.buildyourownlisp.com/chapter4_interactive_prompt) and for some reason when I try to compile I get this:
REPL.c:4:10: fatal error: 'editline/readline.h' file not found
#include…

yburyug
- 1,070
- 1
- 8
- 13
25
votes
6 answers
Using GNU Readline; how can I add ncurses in the same program?
The title is a bit more specific than my actual goal:
I have a command-line program which uses GNU Readline, primarily for command history (i.e. retrieving previous commands using up-arrow) and some other niceties. Right now the program's output…

John Zwinck
- 239,568
- 38
- 324
- 436
6
votes
3 answers
How to colorize the prompt of an editline application
I am trying to colorize the prompt of an application powered by libedit, but I the color simply does not show up. Any ideas what I'm doing wrong here?
#include
#include
char* prompt(EditLine *e)
{
static char p[] =…

mavam
- 12,242
- 10
- 53
- 87
3
votes
0 answers
Faking standard input for an XS function
I'm trying to test a function that reads from standard input by redirecting the standard input to read from a file, more or less as advised here
Here's the script:
use strict;
use warnings;
use Term::EditLine qw(CC_EOF);
use v5.14;
my $el =…

jjmerelo
- 22,578
- 8
- 40
- 86
3
votes
4 answers
fatal error: editline/readline.h: No such file or directory compilation terminated
Fatal Error
I am working on makeyourownlisp,where in editline/readline.h and
editline/history.h have to be added to the program.
Following is the code snippet…
user6208365
3
votes
0 answers
How to get php readline() to default to Vim mode?
This is on CentOS 7.2, PHP version 5.6.20. According to readline_info():
[point] => 0
[end] => 0
[library_version] => EditLine wrapper
[readline_name] =>
…

Nairebis
- 283
- 1
- 8
3
votes
1 answer
Can't compile with editline on OpenBSD
I think that I must install the editline (libedit?) library but where can I get it for OpenBSD? The code compiles fine with PC-BSD, but with OpenBSD I get this error
implicit declaration of rl_bind_key
It is the editline library that is not found.…

Niklas Rosencrantz
- 25,640
- 75
- 229
- 424
2
votes
0 answers
Editline/readline function in C adds extra line-feed to input when using cyrillic
I'm writing a program in which I use the editline C library to receive user input.
#include
#include
#include
#include
#include
int main(int argc, char **argv)
{
…

stayhere
- 41
- 6
2
votes
1 answer
Editline with non-blocking input
I use editline library in my program, for user commands input in shell. But becides shell, program have a gui interface, so I need to run editline's readline() function in separate thread, because it blocks until Enter pressed. Is there a way to use…

Sasun Hambardzumyan
- 285
- 1
- 3
- 8
1
vote
1 answer
Is there any WORDCHARS alternative in Bash?
Conculusion:
No WORDCHARS alternative in Bash, where C-w ends can't be configured.
mysql depends on editline, which is customizable with ~/.editrc.
redis-cli depends on linenoise, it deletes the whole word without considering :, -
In zsh,…

Simba
- 23,537
- 7
- 64
- 76
1
vote
3 answers
Let MySQL client command line accept characters with accents as input
I don't know how to enable my MySQL client to accept letters with accents as input on the command line on Ubuntu. These chars are not echoed on the console nor accepted as input. As far as I remember, in previous versions of mysql, I solved this…

Pierre François
- 5,850
- 1
- 17
- 38
1
vote
1 answer
LLDB command history search by starting characters similar to GDB readline?
Is there a way to search LLDB commands similar to the readline library's history-search-backward in bash and GDB?
I want to be able to type some characters, and use up arrow to cycle through all commands that start with those characters.

ghostlygray
- 21
- 1
- 2
1
vote
0 answers
QLineEdit accepts only Integer
I already tried QIntvalidator and QRegExp but they are not working on my app. I don't know the problem.
This is my code in QIntvalidator:
self.lineEdit =…

Jefer Bulan
- 43
- 6
1
vote
1 answer
How to append history in editline?
I'm trying to add history appension to the MacPorts shell. MacPorts currently uses a bash-like history wherein the history is written after a session is over. This can be problematic if the session should crash, so I'm trying to make the MacPorts…

GDP2
- 1,948
- 2
- 22
- 38
1
vote
0 answers
macOS, .editrc and vi-mode
According to man editrc, you have to put bind -v in your ~/.editrc file to enable vi-like mappings in software that uses editline. Which in its turn will allow you to press v there to launch vi itself.
But is it possible to tell a REPL (I'm…

A S
- 1,195
- 2
- 12
- 26