lukem
1f11bc4cc8
instead of using a private coord_t global variable to store the size of the
...
rprompt, use the previously unused coord_t el->el_rprompt.p_pos
1999-11-13 11:32:12 +00:00
lukem
509864fa8f
- implement printing a right-side prompt. code derived from similar work
...
I wrote for tcsh(1) three years ago.
- implement EL_RPROMPT, which allows a setting/getting of a function which
returns a string to be used as the right-side prompt.
- improve HISTORY and AUTHORS sections in editline(3).
- bump shlib minor version for EL_RPROMPT.
XXX: due to an implementation issue, the rprompt has a 1 space gap before the
edge of the logical screen. editline's logical screen is 1 space less
than the full screen width, so there's a 2 space gap between the rprompt
and the right end of the physical screen. i'm not concerned about this.
1999-11-12 01:05:07 +00:00
lukem
e7d4e16bdf
Fix pointer arithmatic (caused problems on LP64, including ftp dumping
...
core when `edit' was turned off then on).
Problem solved by David Huggins-Daines <dhd@eradicator.org>
1999-10-24 04:04:13 +00:00
jdolecek
7c714abab4
don't assume locales are not working - it may not be the case
...
re_refresh(): cast the character passed to re_addc() to unsigned char,
so we don't end up calling isprint() with negative value
when chars are signed and character value is >= 128
1999-10-15 17:01:19 +00:00
lukem
332ab876a2
update post change to return value of tputs() third argument
1999-10-04 23:24:04 +00:00
lukem
65c98beb1a
remove some lint
1999-10-04 23:23:21 +00:00
lukem
9962715a2e
apparantly need <unistd.h> for portable way of getting _POSIX_VDISABLE
1999-09-26 14:37:47 +00:00
lukem
8494e0e800
* in el_source():
...
- don't reopen fp if it was successfully opened in a previous check
- use strlcpy()/strlcat() instead of snprintf() to build a pathname,
since the former are more portable to other systems than the latter
* whitespace fascism
1999-09-21 00:55:55 +00:00
lukem
250f2917a0
fix id header...
1999-09-21 00:07:03 +00:00
lukem
1dbb61e63e
more whitespace fascism
1999-09-20 23:43:42 +00:00
sommerfeld
15b8b5a50b
minor tweak to previous fix: don't spuriously truncate final newline
...
under emacs.
1999-08-08 01:25:05 +00:00
sommerfeld
3e32553f0b
Fix PR7685 (gdb under emacs prints spurious ^M and messes up terminal)
...
plus a few bogons noted along the way:
1) Set EDIT_DISABLED if terminal type is emacs.
2) fix bug in NO_TTY mode which caused it to not notice CR or LF
3) implement EDIT_DISABLED within libedit to be somewhat like NO_TTY,
except that a prompt is printed first.
1999-08-02 01:01:55 +00:00
christos
9453db6b2d
Use LIBEDITDIR instead of CURDIR so we can use that Makefile to compile
...
libedit from another directory.
1999-07-06 14:10:21 +00:00
lukem
87c1844d34
don't try to free() something allocated with alloca() in rl_complete_internal().
...
(noticed while using completion in gdb and getting inundated with warnings from
the new free())
1999-07-03 11:55:51 +00:00
simonb
1528b77539
More trailing white space.
1999-07-02 15:14:07 +00:00
christos
c3f0ff041d
Make this compile under linux
1999-06-12 18:58:05 +00:00
garbled
38c96853cf
Last of the .Os cleanups. .Os is defined in the tmac.doc-common file,
...
so we shouldn't override it with versions in the manpages. Wheee!
1999-03-22 19:44:33 +00:00
mycroft
b59b039954
Add missing , in he_errlist[] initializer. Yay lint.
1999-03-06 00:17:25 +00:00
itohy
0abd947255
Add minimal dependency to make "make depend" optional
...
after cleandir.
1999-03-04 11:45:22 +00:00
abs
edc1a24a56
Add a note to update src/distrib/sets/lists/base/shl.*, and add a missing
...
RCS Id.
1999-02-25 08:02:19 +00:00
christos
468bdc50fc
PR/6957: Wolfgang Helbig: libedit swaps CR and LF control chars.
1999-02-07 14:34:05 +00:00
christos
571b899770
delint.
1999-02-05 20:53:49 +00:00
christos
84ee55f13e
Encode the history lines using strvis() before saving it. Fixes gdb history
...
problem with missing newlines.
1999-02-05 20:52:23 +00:00
christos
0d4dea9233
M-X:<enter> core-dumped.
1999-02-05 20:38:01 +00:00
kleink
3ed4fcf61e
In userland, pull in <errno.h> instead of <sys/errno.h> for the declaration
...
of errno.
1999-01-11 22:39:59 +00:00
lukem
ddfeeeebfd
fix history() prototype. (d@openbsd.org)
1999-01-05 22:46:22 +00:00
kleink
37709da758
Change multiple inclusion protection symbol name to NetBSD convention which
...
doesn't violate namespace rules.
1998-12-20 17:52:01 +00:00
christos
a6d4afba22
delint
1998-12-12 20:08:21 +00:00
christos
a0be074d8b
many problems; variables hidden by others, size_t <-> confusion
1998-12-12 19:54:16 +00:00
christos
61df62e6a8
- missing error message from array could cause core dump
...
- delint
1998-12-12 19:52:51 +00:00
cgd
244d803bb3
per e-mail with christos: history_next_event() should return -1, not NULL,
...
in case of error, just like history_prev_event() does.
1998-12-03 17:51:16 +00:00
christos
5e435627f6
fix core-dump caused by maps not being initialized before tty is called.
1998-09-28 11:00:05 +00:00
christos
622528ad62
Obey incoming tty char settings.
1998-09-27 18:04:12 +00:00
christos
016aaad0ba
PR/6081: Wolfgang Helbig: search broken in vi mode. When patbuf was changed
...
to be dynamically allocated, sizeof was not changed appropriately.
1998-09-02 21:33:50 +00:00
lukem
f87d250404
* add more checks for NULL pointers in passed arguments
...
* implement el_get(EditLine *, int op, void *result), which does the
inverse of el_set()
* add EL_EDITMODE operation to el_set and el_get; if non zero editing
is enabled (the default).
* add "edit on | off" editrc command, which modifies EL_EDITMODE.
users can now add '*:edit off' in ~/.editrc as an advisory to
disable editing.
NOTE: at this time EL_EDITMODE is just an indication of the
state of the 'edit' command. It's up to the application to check
this after el_source() or el_parse() to determine if editing is still
required.
1998-07-29 02:26:00 +00:00
lukem
a7d411eb83
documentation is always probably incomplete; don't make an issue of it
1998-06-08 10:56:43 +00:00
lukem
fe1a16ac05
* implement CC_REFRESH_BEEP; as per CC_REFRESH but beep as well. this
...
is useful in completion when a partial completion is found
* remove entry in BUGS about el_parse(); that was fixed a while ago
1998-06-01 14:31:26 +00:00
christos
9f2cd5c8ff
Show the simpler way.
1998-05-20 01:38:53 +00:00
christos
eac8b13603
Add H_APPEND to simplify the interface.
1998-05-20 01:37:54 +00:00
christos
116d3cb1aa
Fix for api changes.
1998-05-20 01:12:25 +00:00
christos
e44dec2e4b
Adjust for changes.
1998-05-20 01:05:27 +00:00
christos
34f34f3dd5
change M_* constants to MD_* to avoid clashes with <stream.h>
1998-05-20 01:04:56 +00:00
christos
aa6425fdd4
remove term_beep hack.
1998-05-20 01:04:17 +00:00
christos
a6c5308263
Bump!
1998-05-20 01:03:51 +00:00
christos
32cdebd7ac
cast is*() arg to unsigned char
1998-05-20 01:03:30 +00:00
christos
96c915840c
Adjust to the libedit api changes.
1998-05-20 01:03:06 +00:00
christos
ccac6ba81c
Add a function to be able to set the cursor to a given event number.
1998-05-20 01:02:38 +00:00
christos
4b8b8611ee
- add extra argument to el_init
...
- fix history functions
- add el_beep()
1998-05-20 01:02:09 +00:00
christos
46573afdb6
cast is*() arg to unsigned char
1998-05-20 01:01:28 +00:00
christos
ff2402b524
el_init takes a third stream argument and add el_beep.
1998-05-20 01:01:00 +00:00