diff options
author | ache <ache@FreeBSD.org> | 1994-10-02 01:33:28 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1994-10-02 01:33:28 +0000 |
commit | 68177f2606095b3d125426cefcb4dba56a7a700c (patch) | |
tree | eab6a15f7e9cd40928ea07e3ce7ef065405c3146 /lib/libedit/term.c | |
parent | 2d378393a19100eb8ee1b967803d2b1c735bd99a (diff) | |
download | FreeBSD-src-68177f2606095b3d125426cefcb4dba56a7a700c.zip FreeBSD-src-68177f2606095b3d125426cefcb4dba56a7a700c.tar.gz |
Rewritten using POSIX regex
Add 57600 and 115200 speeds
Correct termcap path
Diffstat (limited to 'lib/libedit/term.c')
-rw-r--r-- | lib/libedit/term.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/libedit/term.c b/lib/libedit/term.c index 4971ef1..053f052 100644 --- a/lib/libedit/term.c +++ b/lib/libedit/term.c @@ -135,6 +135,12 @@ private struct { #ifdef B38400 { "38400", B38400 }, #endif +#ifdef B57600 + { "57600", B57600 }, +#endif +#ifdef B115200 + { "115200", B115200 }, +#endif { NULL, 0 } }; @@ -834,7 +840,11 @@ term_set(el, term) if (i <= 0) { if (i == -1) +#ifdef __FreeBSD__ + (void) fprintf(el->el_errfile, "Cannot open /usr/share/misc/termcap.\n"); +#else (void) fprintf(el->el_errfile, "Cannot open /etc/termcap.\n"); +#endif else if (i == 0) (void) fprintf(el->el_errfile, "No entry for terminal type \"%s\"\n", term); |