-
Notifications
You must be signed in to change notification settings - Fork 147
/
BUGS
65 lines (45 loc) · 2.3 KB
/
BUGS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
Whenever you suspect a bug, if possible, please reconfigure with
./configure --enable-debug and run rlwrap with a -d7 option. This will
create a file /tmp/rlwrap.debug that will help you (or me) find the
problem.
Many (most) bug reports, especially the really weird ones, stem from
"version skew" on distributions (RedHat, Debian) that have separate
development packages (e.g. readline and readline-dev). For some reason
it can happen that the devel package is out of sync with the main
package, and then really strange things may happen. So: always update your
{readline, ncurses}-devel packages before you complain to me!
* Gotcha's
If rlwrap doesn't seem to do anything, chances are that the rlwrapped
program already does its own line editing. Using the -a (--always-readline)
option will make rlwrap use its own line editor.
If such programs do their own completion, it will be unusable under rlwrap
* General inadequacy and weak spots
The more sophisticated the terminal handling of rlwrapped program (the
"client") gets, the less rlwrap will be able to maintain its
transparency. Of course, more sophisticated programs generally have
less need for rlwrap.
---
rlwrap cannot handle prompts that contain control characters (except
ANSI colour), though you may not notice this until your cursor almost
reaches end-of-line
---
older QNX: If 'configure' complains "Oops! Your 'rm' program seems unable to run
without file operands specified", export
ACCEPT_INFERIOR_RM_PROGRAM=yes before running 'configure'
---
The -m option uses the system() (3) library function to call an
external editor. I'm not quite sure how system() handles signals like
TSTP an WINCH (and "system" is a difficult name to Google for...)
Re-sizing the terminal may confuse the editor
--
The code that determines whether a cooked prompt should be overwritten
(when it turns out to not have been a prompt) is needlessly complex
and not quite correct (e.g. substitute prompts may be left standing
when they should be erased).
--
readline < 8.2 doesn't account for the fact that rl_deprep_terminal()
outputs a "\r" when enable-bracketed-paste is on.
rlwrap < 0.46.1 compensated for that, but will therefore mis-print
accepted user input when compiled with readline-8.2
rlwrap-0.46.1 now *disables* bracketed paste when compiled with readline 8.1
or earlier