Skip to content

Commit f982fd9

Browse files
committed
add set_escdelay function
this function is used by GNU nano 2.7.0. it's trivial so we can just add it.
1 parent 5b5ec11 commit f982fd9

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ CU_SRCS_=acs.c addbytes.c addch.c addchnstr.c addnstr.c attributes.c \
8888
mvwin.c newwin.c nodelay.c notimeout.c overlay.c overwrite.c pause.c \
8989
printw.c putchar.c refresh.c resize.c scanw.c screen.c scroll.c \
9090
scrollok.c setterm.c standout.c timeout.c toucholap.c touchwin.c \
91-
tstp.c tty.c unctrl.c underscore.c
91+
tstp.c tty.c unctrl.c underscore.c escdelay.c
9292

9393

9494
ifndef DISABLE_WCHAR

libcurses/curses.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,6 +1010,8 @@ int wbkgrnd(WINDOW *, const cchar_t *);
10101010
void wbkgrndset(WINDOW *, const cchar_t *);
10111011
int wgetbkgrnd(WINDOW *, cchar_t *);
10121012

1013+
int set_escdelay(int);
1014+
10131015
/* Private functions that are needed for user programs prototypes. */
10141016
int __cputchar(int);
10151017
int __waddbytes(WINDOW *, const char *, int, attr_t);

libcurses/escdelay.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#include "curses.h"
2+
3+
int set_escdelay(int value) {
4+
ESCDELAY = value;
5+
}
6+

0 commit comments

Comments
 (0)