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
2
votes
1 answer

Can I create completions file for rlwrap?

I use the following script to start the toplevel: breakchars="(){}[],^%$#@\"\";:''\\" exec rlwrap --remember -c -b "$breakchars" -f "$HOME"/.ml_completions -S '> ' ocaml -init ~/.ocamlinit "$@" Then how can I build the .ml_completions file so that…
z_axis
  • 8,272
  • 7
  • 41
  • 61
1
vote
1 answer

Can I install rlwrap on windows? Or this is only for linux?

I can't find a guide to install on Windows. https://github.com/hanslub42/rlwrap. If installation on Windows is not possible, are there analogues for Windows?
w1cee
  • 75
  • 8
1
vote
2 answers

Is there a fast way to exit the debugger in MIT Scheme's REPL?

Suppose I try to use an undefined variable in MIT Scheme's REPL: 1 ]=> blablabla ;Unbound variable: blablabla ;To continue, call RESTART with an option number: ; (RESTART 3) => Specify a value to use instead of blablabla. ; (RESTART 2) => Define…
Flux
  • 9,805
  • 5
  • 46
  • 92
1
vote
2 answers

Getting error to install rlwrap

I am trying to install rlwrap for Oracle Goldengate installation but at the time of installation I got following error. yum install rlwrap-0.37-1.el6.i686.rpm Loaded plugins: fastestmirror, langpacks Cannot open: rlwrap-0.37-1.el6.i686.rpm.…
1
vote
3 answers

How to delegate key press handling to rlwrap in raw mode terminal with tcl

I use stty raw -echo in my tcl terminal program. What I want is to do some actions for only a few key press events such as Tab. For the rest of the key press events I want to delegate to rlwrap or other default handling program, such as ← to move…
Herbert
  • 538
  • 1
  • 4
  • 15
1
vote
1 answer

LD_PRELOAD in rlwrap?

When I do something in my script like rlwrap -f words.txt LD_PRELOAD=mylib.so command "$@" I always get something like rlwrap: error: cannot execute LD_PRELOAD=mylib.so no such file or directory Even though that file totally exists and…
CuriousMind
  • 15,168
  • 20
  • 82
  • 120
1
vote
1 answer

Is there a way to have rlwrap automatically delete history files?

I am using rlwrap to give command history to sqlplus/rman/etc on a linux server. I can see the command history files such as .sqlplus_history being generated and because these are plain text files that could possible contain passwords, e.g. if a…
SamTheMan
  • 23
  • 4
1
vote
0 answers

Can the Babel CLI be made to remember command history?

With the Node CLI, I can add this to my shell statup file: alias node='env NODE_NO_READLINE=1 rlwrap -S "> " node' When I now run node, I can press the 'up' arrow key and the previous command from the previous session is put on the command prompt.…
Prem
  • 15,911
  • 11
  • 31
  • 35
1
vote
2 answers

How do I run an interpreter with command history support?

I know there is a way to run an interactive console with command history support (even though the program does not inherently support it). However, I don't remember the command. Can anyone help me?
August Karlstrom
  • 10,773
  • 7
  • 38
  • 60
0
votes
2 answers

Is it possible to pretty print JSON or array output from a device accessed by telnet?

At work we use telnet to directly connect to embedded devices on our network to issue REST API calls to the device during testing and setup. We later use those calls when developing a web interface. I like my history and cursor control in the…
the digitalmouse
  • 223
  • 3
  • 25
0
votes
1 answer

How do I stop rlwrap --remember from including version and copyright messages in the completion list?

Suppose I am using rlwrap like this: rlwrap --remember sml. That will start Standard ML of New Jersey: Standard ML of New Jersey v110.79 [built: Sat Oct 26 12:27:04 2019] - If I enter Jer at the prompt and press Tab, rlwrap will complete it to…
Flux
  • 9,805
  • 5
  • 46
  • 92
0
votes
2 answers

Ctrl-C in a rlwrap command substitution stops echo

I'm using something like this in a script: REPLY=$(rlwrap head -n 1) Actually with more options but that suffices to reproduce the issue. It works perfectly for my purposes... as long as I don't press Ctrl-C to quit. If I do, input echo stops on…
Pedro Gimeno
  • 2,837
  • 1
  • 25
  • 33
0
votes
1 answer

How to make rlwrap tab complete a word that was fully typed?

I use rlwrap to get readline features not available by default (on Ubuntu) in interactive consoles such as gnuplot, sqlite3. It allows one to specify a completion word list in a file ~/._completions. Consider this example using…
arekolek
  • 9,128
  • 3
  • 58
  • 79
0
votes
0 answers

Asking for readline library while Installing rlwrap in linux

I'm following this tutorial for installing rlwrap for sql*plus on linux. But it gives me an error I'm quit new to linux and I tryied installing readline library apartly. It executed without errors, But it didn't help to this. What will be the…
PrazSam
  • 1,166
  • 2
  • 12
  • 20
0
votes
2 answers

Using rlwrap with an ssh session

I am using SSH to login to an ubuntu server. However, I am not able to use commands such as tab auto-complete, or using arrow keys to view previous history. I have installed rlwrap on the remote machine and on my local directory. I was wondering if…
user1413793
  • 9,057
  • 7
  • 30
  • 42