Questions tagged [rlwrap]

rlwrap is a utility based on the GNU readline library that allows editing keyboard input for other command.

rlwrap is a utility based on the GNU readline library that allows editing keyboard input for other command. rlwrap maintains an input history for each command, and allows users to TAB-expand words using previously encountered words.

31 questions
14
votes
2 answers

yum showing readline installed but readline command not working

yum My system shows readline installed rlwrap-0.41]$ sudo yum install readline Loaded plugins: fastestmirror, presto, security Loading mirror speeds from cached hostfile . . . Package readline-6.0-4.el6.x86_64 already installed and latest…
Akshay Hiremath
  • 950
  • 2
  • 12
  • 34
13
votes
3 answers

How can I get readline/rlwrap-like functionality when using clojure.main/repl?

How can I get readline-like (or rlwrap-like) functionality from my REPL when I use the repl function from clojure.main? The background to this is that I'm utilizing and customizing the break function from The Joy of Clojure, First Edition. I'm…
user457586
9
votes
1 answer

Using rlwrap with Node.js REPL, how could node '.break' (Ctrl-C) not be interpreted as a SIGINT by rlwrap?

Following this discussion on how to preserve command line history between sessions, I defined the following alias: alias node='env NODE_NO_READLINE=1 rlwrap node' It works perfectly for the history persistance but now, everytime I do a Ctrl-C to…
maxlath
  • 1,804
  • 15
  • 24
5
votes
1 answer

Is there a python (3) native equivalent to invoking the script with rlwrap?

I'm using input() to ask a user for a command in a Python (3) CLI script. I'd like them to be able to press ↑ to reuse older commands. For that matter I'd like them to be able to do other basic line editing too. I can get these features by running…
artfulrobot
  • 20,637
  • 11
  • 55
  • 81
4
votes
2 answers

read(fd, buf, N>0) == 0, but fd not at EOF?

The following little C program (let's call it pointless): /* pointless.c */ #include #include void main(){ write(STDOUT_FILENO, "", 0); /* pointless write() of 0 bytes */ sleep(1); write(STDOUT_FILENO, "still there!\n",…
Hans Lub
  • 5,513
  • 1
  • 23
  • 43
4
votes
2 answers

Bash on Ubuntu on Windows - rlwrap could not open master pty

After installing Bash on Ubuntu on Windows, I'm receiving an error from any rlwrap command. root@localhost:~# rlwrap ls rlwrap: Could not open master pty: No such file or directory I've made sure that /dev/ptmx has the correct…
puradox
  • 1,358
  • 1
  • 12
  • 13
4
votes
1 answer

How to get rlwrap to work inside Emacs' shell / eshell?

When I try to get rlwrap to work inside an Emacs (version 24.3.50.1) shell buffer (either M-x shell or M-x eshell), I get this error message: rlwrap: Oops, crashed (caught SIGFPE) - this should not have happened! For example: rlwrap telnet…
Cedric Martin
  • 5,945
  • 4
  • 34
  • 66
2
votes
2 answers

Handle EOF in RLWrap

I'm using RLWrap to "tame" a really good REPL, Dyalog APL, that unfortunately had its origins in Windows land and therefore does not comply with UNIX conventions. Moreover, being a closed source product, it cannot be modified to do so. I managed to…
Tobia
  • 17,856
  • 6
  • 74
  • 93
2
votes
0 answers

Directory not writable according to access(), user still able to create files in it

I received a bug report that has me scratching my head. In my program, I test the writability of a directory (which is the user's home directory by default) before having readline collect history and write it to a file in that directory at program…
Hans Lub
  • 5,513
  • 1
  • 23
  • 43
2
votes
1 answer

rlwrap: Could not open master pty: No such file or directory

When trying to run rlwrap tclsh I am getting this error message: rlwrap: Could not open master pty: No such file or directory What causes this? How to fix this issue? P.S. I am running 64 bit CentOS.
Vahagn
  • 4,670
  • 9
  • 43
  • 72
2
votes
3 answers

rlwrap hangs jobs while running at the background

I have a problem with rlwrap (see the man page here). Consider this situation: empty.tcl is an empty file. At bash this line tclsh empty.tcl & runs the job in the background and exits it, so i get this prompt [1]+ Done tclsh…
Vahagn
  • 4,670
  • 9
  • 43
  • 72
2
votes
3 answers

rlwrap cannot read/write its own history

I created a simple script like the following called "/usr/bin/mytool1" and make it executable. #!/usr/bin/rlwrap /usr/bin/perl while (1) { chomp($cmd = ); print "cmd=$cmd\n"; } The problem is, if I run it as a regular user, it works…
packetie
  • 4,839
  • 8
  • 37
  • 72
2
votes
2 answers

Installing rlwrap on linux - without root permission

I am trying to install rlwrap. I do not have root permissions. I did the following to install rlwrap using some steps mentioned online : gunzip rlwrap*.gz tar -xvf rlwrap*.tar cd rlwrap ./configure make make check make install But in the last step…
Darzen
  • 1,105
  • 3
  • 13
  • 29
2
votes
1 answer

OS X `rlwrap coqtop` not working

rlwrap is a good program handling arrow keys in REPL loop. In most cases it works. For example rlwrap sbcl, rlwrap sml, and so on. But when it comes to rlwrap coqtop, it fails. The error information is below. rlwrap: error: Couldn't read…
eccstartup
  • 501
  • 8
  • 24
2
votes
1 answer

rlwrap mac os x install error

I am trying to install RLWrap into my mac os x (Snow Leopard), I have XCode and am able to run the ./configure command sucessfuly, however when I try the make command I get the following error: make all-recursive Making all in doc make[2]: Nothing…
Matt C
  • 137
  • 1
  • 3
  • 15
1
2 3