automerge commit

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@13747 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2-netsec
Automerge script 20 years ago
parent c9d7d267cd
commit 00461229c2

@ -64,10 +64,16 @@ __RCSID("$NetBSD: term.c,v 1.35 2002/03/18 16:00:59 christos Exp $");
#ifdef HAVE_NCURSES_H #ifdef HAVE_NCURSES_H
#include <ncurses.h> #include <ncurses.h>
#endif #endif
/* Solaris's term.h does horrid things. */ #if defined(HAVE_TERM_H)
#if (defined(HAVE_TERM_H) && !defined(SUNOS)) #include "term.h"
#include <term.h> /* Can not use /usr/include/term.h because of a lot of incompatibilities, so just define some prototypes */
#endif extern int tgetent(char *, const char *);
extern int tgetflag(const char *);
extern int tgetnum(const char *);
extern char *tgetstr(const char *, char **);
extern int tputs (const char *, int, int (*)(int));
extern char *tgoto (const char *, int, int);
#endif /* defined(HAVE_TERM_H) */
#include <sys/types.h> #include <sys/types.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
@ -1190,15 +1196,15 @@ term_bind_arrow(EditLine *el)
if (p && *p) { if (p && *p) {
j = (unsigned char) *p; j = (unsigned char) *p;
/* /*
* Assign the arrow keys only if: * Assign the arrow keys only if:
* *
* 1. They are multi-character arrow keys and the user * 1. They are multi-character arrow keys and the user
* has not re-assigned the leading character, or * has not re-assigned the leading character, or
* has re-assigned the leading character to be * has re-assigned the leading character to be
* ED_SEQUENCE_LEAD_IN * ED_SEQUENCE_LEAD_IN
* 2. They are single arrow keys pointing to an * 2. They are single arrow keys pointing to an
* unassigned key. * unassigned key.
*/ */
if (arrow[i].type == XK_NOD) if (arrow[i].type == XK_NOD)
key_clear(el, map, p); key_clear(el, map, p);
else { else {

Loading…
Cancel
Save