christos
ec39c1a649
Fix compilation.
2006-03-18 19:23:14 +00:00
christos
a46f31170d
Coverity CID 1668: Plug memory leak.
2006-03-18 09:31:36 +00:00
christos
62bb88223c
Coverity CID 806: Prevent NULL deref
2006-03-18 09:02:08 +00:00
christos
230c3d4ed6
Print the actual eofc, instead of ^D\b\b.
...
Change internal character decoding to prevent buffer oveflows.
2006-03-06 21:11:56 +00:00
christos
2ecb0fb73d
Spelling mistakes and comment errors (from FreeBSD via Stefan Farfeleder; many
...
thanks)
2005-08-08 14:05:37 +00:00
christos
b6b34b8065
fix memory leak; thanks to Logan Gabriel
2004-05-22 23:21:28 +00:00
christos
c8d67a7da2
portability fixes.
2004-01-17 17:57:40 +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
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
mycroft
676fa7ff61
In the `not what I asked for' department:
...
Do NOT return an error from term_init() if term_set() fails. Otherwise
el_init() barfs and libedit fails to work.
2001-11-08 19:39:10 +00:00
christos
41df15832a
Finish initializing all the term data structures even if the terminal init
...
fails. This makes editline work on dumb terminals again. Noted by mycroft.
Oops, too agressive error checking.
2001-11-02 04:42:09 +00:00
jdolecek
86ebf640b0
sprinkle couple const
2001-01-23 15:55:30 +00:00
jdolecek
d64e200968
term_rebuffer_display(): set el->el_term.t_size.v to terminals
...
height, not a magic value, so that e.g. el_display[] and el_vdisplay[]
are not bigger than needed.
Discussed with Christos Zoulas.
2001-01-10 22:42:56 +00:00
jdolecek
c8093bd336
term_beep(): use ordinary bell, don't attempt to use visual bell - if user wants
...
visual instead of ordinary bell, they should set their environment
appropriately
2001-01-09 19:43:15 +00:00
jdolecek
a76c617ce5
make constant arrays a const
2001-01-09 17:22:09 +00:00
christos
2f3389ce5e
consistently check for allocation failures and return -1, if we could not
...
get more memory.
2001-01-04 15:56:31 +00:00
jdolecek
c860130fa0
term_beep(): if terminal supports both visual and ordinary bell, 'ring' both
2000-12-30 22:46:05 +00:00
jmc
50b6095c16
Alloc the keys structure with A_K_NKEYS as the multiplier rather than a
...
hardcoded value of 4.
A_K_NKEYS is currently 6 and this mismatch was stomping memory when
initializing the keys. (specifically gdb lost the exec file name if it was
a long path name).
2000-11-28 22:37:51 +00:00
christos
ff59a2fadd
- add support for home and end keys.
...
- improve debugging support
2000-11-11 22:18:57 +00:00
sommerfeld
acf589519a
format string audit (silence warnings, save space)
2000-10-04 16:21:39 +00:00
lukem
d30d584a91
convert to new style guide, which includes:
...
- ansi prototypes & features (such as stdargs)
- 8 space indents
2000-09-04 22:06:28 +00:00
lukem
fd194fea27
use strtol() (instead of atoi()) for sane error detection
2000-06-02 13:37:12 +00:00
mycroft
05fc321ebf
Fix refresh glitches when using auto-margin.
2000-02-19 09:08:16 +00:00
christos
0dded5f65c
Add support for automatic and magic margins (from tcsh)
...
This makes the rightmost column usable on all programs
that use editline.
2000-01-20 22:56:21 +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
lukem
332ab876a2
update post change to return value of tputs() third argument
1999-10-04 23:24:04 +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
simonb
1528b77539
More trailing white space.
1999-07-02 15:14:07 +00:00
christos
a6d4afba22
delint
1998-12-12 20:08:21 +00:00
christos
aa6425fdd4
remove term_beep hack.
1998-05-20 01:04:17 +00:00
perry
58a555d4a2
update to lite-2 (just an sccsid change)
1998-01-30 02:27:34 +00:00
thorpej
c8160e6ecd
Un-"protect" term_beep() and rename it to __term_beep() to keep it out
...
of the user's namespace. We need to do this because the readline
emulation functions call term_beep(), but readline isn't built using
the same (funky) namespace-protection method as the rest of libedit (it's
included like a normal library object).
Without this (fairly disgusting) hack, any program linked against
libedit will fail to link with an unresolved reference to term_beep()
if using an Elf toolchain (e.g. on the Alpha).
XXX Why this doesn't happen with NetBSD's a.out toolchain is a mystery
XXX to me, and I'm not sure I really want to know (given that a.out
XXX _should_ break the same way as Elf does in this case).
1997-11-13 04:48:48 +00:00
lukem
55c1036e4f
use <termcap.h> instead of "termcap.h" (which was repository copied to libterm)
1997-10-13 16:09:01 +00:00
christos
54fac6850e
Fix compiler warnings.
1997-07-06 18:25:21 +00:00
christos
9593d7acb3
Return -1 if the terminal set operation resulted in dumb terminal settings.
1997-04-11 22:40:06 +00:00
mrg
9cd5492c02
- convert unsafe strcpy(), strcat() and sprintf() to the `n' versions.
...
- some KNF.
1997-01-23 14:01:45 +00:00
lukem
2543e3e651
RCSid police
...
editline first appeared in 4.4BSD not NetBSD1.0
1997-01-11 06:47:47 +00:00
christos
42c2892cc9
Fixed the key mapping code and reverted Charles' changes.
1995-04-29 20:44:00 +00:00
mycroft
c1a3077d03
Remove dead code that can't possibly work.
1995-04-27 04:49:26 +00:00
mycroft
e94c4d1ac4
Fix typo.
1994-10-07 11:40:53 +00:00
mycroft
5251d09ee1
Don't even *try* to print out the name of the termcap file; it's hidden
...
in libtermcap, and it normally uses the DB file anyway.
1994-10-02 04:27:28 +00:00
mycroft
5e53b2b629
Nuke bogus baud rate conversion code.
1994-10-02 04:23:08 +00:00
cgd
6dc2f1db52
libedit!
1994-05-06 06:01:42 +00:00