christos
72dd3db662
PR/54280: rl_completer_quote_characters should be const for readline compat
2019-06-07 15:19:29 +00:00
christos
52b10dfde0
PR/53983: Jonathan Perkins: Fix types for readline compatibility
2019-02-15 23:20:35 +00:00
christos
85390d7315
Add a couple more readline compat functions.
2018-12-02 16:58:13 +00:00
christos
a3c16b5549
Provide more compatibility with readline headers; now python-3.6.5 works
...
when changing 'readline' -> 'edit' in setup.py.
Revert previous conditional setting of unbuffered.
2018-06-09 17:41:55 +00:00
christos
27916d7c22
PR/51517: Jay West: Tty settings not restored on exit
...
PR/51518: Jay West: prompt is interleaved with client output
Both these issues are caused by rl_restore_handler not DTRT; fix
it so that it kills the internal libedit state completely. This is
inefficient, but it works.
Also fix:
1. add append_history()/H_NSAVE_FP
2. call the rl_startup_hook before printing the first prompt as documented.
callint it from rl_initialize breaks python, because the callback ends
up being invoked before the readline module is installed, and we end up
dereferencing a NULL pointer.
3. add el_resize_terminal.
With those changes, s/lreadline/ledit/g in python works.
2017-09-01 10:19:10 +00:00
christos
931e76f255
export rl_done
2016-10-28 18:32:35 +00:00
christos
78abb1b97e
more compatible with readline history functions.
2016-08-24 13:10:59 +00:00
christos
22383670cc
whitespace and header sorting changes (Ingo Schwarze). No functional changes.
2016-02-17 19:47:49 +00:00
christos
92b1772005
OpenBSD readline.c rev. 1.13 2015/01/13 08:33:12 reyk
...
rl_set_keyboard_input_timeout() for readline 4.2 compat
2016-02-15 21:58:37 +00:00
christos
14ccb7c1cc
remove duplicate declaration
2015-06-02 15:36:45 +00:00
christos
0804279dff
Adjust API to a more modern readline (Ryo Onodera)
2015-06-02 15:35:31 +00:00
christos
0b61093115
- fix types of rl_completion_entry_function and rl_add_defun
...
- call update pos before completion to refresh the screen
From Thomas Eriksson
2015-05-26 19:59:21 +00:00
christos
45fd2d25ac
expose rl_catch_signals and explain what we are doing.
2013-05-28 00:10:34 +00:00
christos
f5b586b16d
Add rl_completion_word_break_hook from:
...
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ \
5ec6a45fa762b8cbd0305ca06acb8780335a486a
2012-05-15 17:30:04 +00:00
christos
b354315033
unbreak readline history.
2010-09-16 20:08:51 +00:00
christos
6e1c968db3
provide rl_on_newline
2010-08-04 20:29:18 +00:00
christos
ea3813ed2f
apply apple patches from:
...
http://opensource.apple.com/source/libedit/libedit-11/patches/
2009-09-07 21:24:33 +00:00
christos
461d0372fd
delete defined(sun), it could be invaded in the user namespace. Suggested
...
by mrg@
2009-08-31 00:05:43 +00:00
christos
5aa87ec494
use __sun || sun instead of _SunOS, from Jess Thrysoee
2009-08-30 15:41:05 +00:00
christos
8e714f4b6e
add stdio.h since we are using FILE. From Grant Erickson
2009-07-09 19:02:04 +00:00
christos
e6ec3d065c
implement RL_PROMPT_{START,END}_IGNORE
2009-03-31 17:53:03 +00:00
sketch
fc16547f5e
More fixes for existing portability stuff.
2009-02-12 13:39:49 +00:00
christos
d052ee7b7f
add rl_set_prompt
2009-02-05 19:15:26 +00:00
martin
3028e483e4
Convert to new 2 clause license
2008-04-29 06:53:00 +00:00
christos
3bbc95f39d
Add rl_forced_update_display() from Gerry Swislow
2008-04-04 21:18:34 +00:00
christos
5f3802ca6e
patches from Axel Thimm
2007-08-12 07:41:51 +00:00
christos
2d9dad6f00
Add rl_completion_matches, fix remove_history
2007-05-27 19:45:37 +00:00
christos
6b8a793080
- Add more readline functions, enough for gdb-6.5
...
- Make el_get varyadic, and implement EL_GETTC.
- XXX: the EL_SETTC api will change in the future.
2006-11-24 00:01:17 +00:00
christos
f1fff5b02e
Change to a 3 clause copyright after permission of the holders.
2006-08-21 12:45:30 +00:00
christos
45542456a5
PR/30747: David N. Williams: libedit is missing remove_history()
...
Added, please test.
2005-07-14 15:00:58 +00:00
christos
19c38590ee
PR/30500: Paul Shupak: Inconsistent definition of tilde_expand().
...
Provide a layer of indirection between the readline compatibility functions
and our internal implementation, so that we have the freedom to change the
function signature.
2005-06-11 18:18:59 +00:00
christos
0320b64715
tilde expand should take a const argument.
2005-06-10 20:18:11 +00:00
agc
26abf58dee
Sync the alternative readline interface with reality:
...
+ the rl_callback_handler_install takes a pointer to a void function
which has one char * argument (it's called that way in the readline
emulation source, otherwise there's no way to pass the line buffer
to the function which processes the line when EOL is encountered)
+ provide a prototype for that function signature and use it
Makes the callback readline interface work now.
2005-05-27 11:35:07 +00:00
christos
a76abbed58
PR/29958: Peter Bex: add rl_variable_bind and rl_attempted_completion_over
2005-04-12 22:01:40 +00:00
christos
742c0a6b61
make rl_inhibit_completion visible.
2004-09-08 18:15:37 +00:00
christos
c8d67a7da2
portability fixes.
2004-01-17 17:57:40 +00:00
christos
8b40dcaecf
Make readline csh-like history work.
...
From Gerry Swislow <gerry at certif dot com>.
2003-10-27 22:26:35 +00:00
christos
5d79eff8f5
More libedit readline emulation functions from: Gerry Swislow
...
<gerry at certif dot com>
2003-10-16 22:26:32 +00:00
christos
552716dcff
Implement enough of readline's 4.0 async mode to make gdb happy. This is
...
not complete yet, but it seems to work...
This required to introduce an unbuffered mode to el_gets(), but that was
a minor change.
2003-09-26 17:44:51 +00:00
tron
e9c2e92b36
Include "sys/ttydefaults.h" to get standard definition of "CTRL" macro
...
which avoids clash with custom one.
2003-09-15 11:33:33 +00:00
christos
2e7dfdfa24
kludge around CTRL redef.
2003-09-15 01:29:36 +00:00
christos
7fb5c922f1
Match the stupid function pointer declarations with actual readline's 4.0.
...
This is gross.
2003-09-14 22:15:23 +00:00
christos
705c04f0bc
Avoid pre-ansi warning.
2003-09-14 21:55:19 +00:00
christos
166e18a7fd
- provide enough hooks to compile gdb-5.3
...
- fix el_get(e, EL_TERMINAL, (char **))
2003-09-14 21:48:54 +00:00
lukem
64b5a0fe7b
Add INCSYMLINKS to <bsd.inc.mk> and <bsd.kinc.mk>, and use that instead of
...
SYMLINKS to install symlinked header files. INCSYMLINKS are installed with
'make includes'. This avoids using SYMLINKS and hacks with the 'linkinstall'
target in <bsd.links.mk>, as linksinstall occurs in 'make install' and hacks
to get it to occur in 'make includes' weren't robust, as seen in lib/libdes.
Yet more improvements to bsd.README.
2003-08-03 09:23:14 +00:00
lukem
91d06a031b
More use of ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path
2002-08-19 13:35:05 +00:00
christos
0e0ac6b723
- constify; passes all gcc and lint strict checks.
...
- add config.h [Jason Evans], to create a portable version of libedit that
can be easily compiled on other OS's.
2002-03-18 16:00:50 +00:00
tv
001067bbd1
Readability cleanups; MKfoo=no -> NOfoo.
2001-12-12 00:51:00 +00:00
enami
e58d00a406
Use relative path for symlink target so that it won't point outside of tree.
2001-05-16 07:09:26 +00:00
jdolecek
049f74e997
Back off previous and do differently:
...
Ensure that the <readline/history.h> link to <readline/readline.h> is
installed too for 'make includes'. Also, avoid creating obj dir.
This is finally real fix for lib/12929.
XXX Is this right?
2001-05-14 18:39:14 +00:00