Add rl_forced_update_display() from Gerry Swislow

This commit is contained in:
christos 2008-04-04 21:18:34 +00:00
parent eaa1a34779
commit 3bbc95f39d
2 changed files with 12 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: readline.c,v 1.72 2007/08/12 07:41:51 christos Exp $ */
/* $NetBSD: readline.c,v 1.73 2008/04/04 21:18:34 christos Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -34,7 +34,7 @@
#include "config.h"
#if !defined(lint) && !defined(SCCSID)
__RCSID("$NetBSD: readline.c,v 1.72 2007/08/12 07:41:51 christos Exp $");
__RCSID("$NetBSD: readline.c,v 1.73 2008/04/04 21:18:34 christos Exp $");
#endif /* not lint && not SCCSID */
#include <sys/types.h>
@ -1900,6 +1900,14 @@ rl_filename_completion_function (const char *text, int state)
return fn_filename_completion_function(text, state);
}
void
rl_forced_update_display(void)
{
re_clear_display(e);
re_refresh(e);
term__flush();
}
int
_rl_abort_internal(void)
{
@ -1952,4 +1960,3 @@ rl_bind_key_in_map(int key, Function *fun, Keymap k)
{
return 0;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: readline.h,v 1.21 2007/08/12 07:41:51 christos Exp $ */
/* $NetBSD: readline.h,v 1.22 2008/04/04 21:18:35 christos Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -185,6 +185,7 @@ char *rl_filename_completion_function (const char *, int);
int _rl_abort_internal(void);
int _rl_qsort_string_compare(char **, char **);
char **rl_completion_matches(const char *, rl_compentry_func_t *);
void rl_forced_update_display(void);
/*
* The following are not implemented