christos
|
40b42dfe79
|
provide an el_init_fd function.
|
2013-01-22 20:23:21 +00:00 |
|
christos
|
82f197ec94
|
PR/46942: Steffen Nurpmeso: editline(3): el_get(): fix UNBUFFERED return
|
2012-09-11 11:58:53 +00:00 |
|
christos
|
75b1bb5aad
|
use arraycount
|
2012-03-11 21:14:56 +00:00 |
|
christos
|
9bee9dd870
|
remove unrecheable code (Kamil Dudka)
|
2011-11-18 20:22:03 +00:00 |
|
christos
|
b71bed95b3
|
KNF return (\1); -> return \1;
|
2011-07-29 15:16:33 +00:00 |
|
christos
|
a13cd75612
|
kill ptr_t and ioctl_t, add * sizeof(*foo) to all allocations.
|
2011-07-28 20:50:55 +00:00 |
|
christos
|
d47f958456
|
Rename key to keymacro to avoid conflicts with term.h. The renaming of term
to terminal was again to avoid conflicts with term.h. term.h is a moving
namespace violation.
|
2011-07-28 01:56:26 +00:00 |
|
christos
|
fd46b57ee4
|
avoid shadowed variable
|
2011-07-28 01:04:41 +00:00 |
|
christos
|
82edb784c6
|
term -> terminal
eliminate MAXPATHLEN
|
2011-07-28 00:49:18 +00:00 |
|
christos
|
3021376b9c
|
don't stop reading after empty lines from: Nirbhay Choubey
|
2011-07-26 21:03:17 +00:00 |
|
bouyer
|
6d537d7313
|
Fix use-after-free. Discovered by running tests with MALLOC_OPTIONS=J
(should this be the default for tests ?), pointed out by njoly@
|
2011-03-20 12:36:14 +00:00 |
|
christos
|
b2ce31d086
|
don't turn on editing if stdout is not a tty.
|
2011-01-27 23:11:40 +00:00 |
|
christos
|
7741aae941
|
setup a callback to be invoked on resize buffers so that readline can
reset rl_line_buffer which unfortunately some applications use it directly.
|
2010-08-28 15:44:59 +00:00 |
|
christos
|
5443e9b772
|
From Jess Thrysoee
- use nl_langinfo to test for UTF-8, because some locales are UTF-8 without
reflecting it in their names.
|
2010-04-15 00:56:40 +00:00 |
|
christos
|
dc8498bec8
|
- Document and enable wide character support.
- Fix read function compatibility.
|
2009-12-31 15:58:26 +00:00 |
|
christos
|
0b9ae3fdf0
|
Fix wide build, test it, but don't turn it on yet.
|
2009-12-30 23:54:52 +00:00 |
|
christos
|
34e53048e6
|
Wide character support (UTF-8) from Johny Mattsson; currently disabled.
|
2009-12-30 22:37:40 +00:00 |
|
christos
|
085c78fd1f
|
Ignore comment lines in .editrc from Jess Thrysoee
|
2009-07-25 21:19:23 +00:00 |
|
christos
|
bafe66c2cc
|
Only need path if we have issetugid... From Anon Ymous
|
2009-07-22 18:25:26 +00:00 |
|
christos
|
17a17e3aeb
|
Move filename to the scope it is being used.
From Michael Cook mcook at bbn dot com
|
2009-07-22 15:56:29 +00:00 |
|
christos
|
b627b61f7f
|
restore binary compatibility by providing new prompt functions that take
an extra literal character.
|
2009-05-11 18:33:30 +00:00 |
|
christos
|
c8754a5b44
|
Implement literal prompt sequences. Now someone can implement
RL_PROMPT_START_LITERAL/RL_PROMPT_END_LITERAL :-)
|
2009-03-31 17:38:27 +00:00 |
|
christos
|
c51877c3f4
|
back out all prompt changes. they are not needed.
|
2009-02-21 00:05:23 +00:00 |
|
cube
|
0931c75c7a
|
Order of evaluation of arguments is undefined, so call va_arg() in an
explicit order. Fixes a segfault with bc reported by Patrick Welche on
current-users.
|
2009-02-19 20:27:11 +00:00 |
|
christos
|
62dbbc55bc
|
allow for a prompt argument.
|
2009-02-17 21:34:26 +00:00 |
|
lukem
|
a06595c27b
|
fix -Wsign-compare issues
|
2009-01-18 12:14:16 +00:00 |
|
christos
|
872a7369cc
|
Allow a single process to control multiple ttys (for pthreads using _REENTRANT)
using multiple EditLine objects. Mostly from Preston A. Elder.
|
2008-09-10 15:45:37 +00:00 |
|
christos
|
0cb4d42e16
|
add EL_REFRESH for the benefit of readline
|
2008-04-05 15:53:28 +00:00 |
|
christos
|
3a1928de28
|
add EL_GETFP, and EL_SETFP.
|
2006-12-15 22:13:33 +00:00 |
|
freza
|
37b5672028
|
s/el->errfile/el->el_errfile/g in debug code, fixes MKDEBUGLIB build.
|
2006-11-25 17:54:38 +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
|
af079a3097
|
PR/31012: Barry Naujok: libedit el_get with EL_EDITOR op does not work
Fixed as suggested.
|
2005-08-19 04:21:47 +00:00 |
|
christos
|
0895008a17
|
Don't reset the macro strings each time we enter el_gets(), otherwise
el_push() is unusable programmatically.
|
2005-08-01 23:00:15 +00:00 |
|
christos
|
18c8edba4d
|
PR/23486: Andreas Gustafsson: gdb no longer works with emacs
- make sure that we keep previous contents of the buffer in unbuffered mode.
- when turning editing on and off keep tty consistent.
|
2004-07-08 00:51:36 +00:00 |
|
christos
|
ac4e17d0c7
|
Better fix for rl_prep_terminal() from Gerry Swislow.
|
2004-02-27 14:52:18 +00:00 |
|
christos
|
9f2ccd7938
|
Separate tty separation from the prompt printing function. From Gerry Swislow.
|
2004-02-21 16:42:30 +00:00 |
|
christos
|
6e782349a3
|
change allocation policy in el_push to allocate the string itself.
fix issues with strdup.
|
2003-10-18 23:48:42 +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 |
|
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 |
|
agc
|
eb7c1594f1
|
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
|
2003-08-07 16:42:00 +00:00 |
|
christos
|
839ca00b3c
|
From michael@moria.de:
- use __attribute__((__unused__)) in arguments where appropriate.
- some int -> size_t and char * to const char * conversions.
|
2003-06-19 15:55:05 +00:00 |
|
thorpej
|
aa27d116a6
|
Avoid strict alias warning.
|
2002-11-12 00:00:23 +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 |
|
christos
|
e09118a532
|
Don't use HAVE_ yet.
|
2002-02-03 23:37:19 +00:00 |
|
christos
|
06968e10a6
|
Fix a warning.
|
2002-02-03 23:30:03 +00:00 |
|
mycroft
|
09aca455ce
|
Remove an unused variable.
|
2001-11-08 19:34:41 +00:00 |
|
christos
|
18c98749bf
|
If term_init() fails, cleanup and return NULL. This avoids other lossage.
Pointed by charles.
|
2001-11-02 04:47:47 +00:00 |
|
christos
|
545f12e0c5
|
PR/14188: Anthony Mallet: Provide an opaque data pointer to client programs.
|
2001-10-09 13:50:29 +00:00 |
|
christos
|
eabba8b507
|
PR/14067: Anthony Mallet: Provide a programmatic way to set the read_char
function via a new el_set() operation.
Thanks, nicely done :-)
|
2001-09-27 19:29:50 +00:00 |
|