Skip to content

Commit

Permalink
add set_escdelay function
Browse files Browse the repository at this point in the history
this function is used by GNU nano 2.7.0. it's trivial so we can just add it.
  • Loading branch information
rofl0r committed Sep 19, 2016
1 parent 5b5ec11 commit f982fd9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ CU_SRCS_=acs.c addbytes.c addch.c addchnstr.c addnstr.c attributes.c \
mvwin.c newwin.c nodelay.c notimeout.c overlay.c overwrite.c pause.c \
printw.c putchar.c refresh.c resize.c scanw.c screen.c scroll.c \
scrollok.c setterm.c standout.c timeout.c toucholap.c touchwin.c \
tstp.c tty.c unctrl.c underscore.c
tstp.c tty.c unctrl.c underscore.c escdelay.c


ifndef DISABLE_WCHAR
Expand Down
2 changes: 2 additions & 0 deletions libcurses/curses.h
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,8 @@ int wbkgrnd(WINDOW *, const cchar_t *);
void wbkgrndset(WINDOW *, const cchar_t *);
int wgetbkgrnd(WINDOW *, cchar_t *);

int set_escdelay(int);

/* Private functions that are needed for user programs prototypes. */
int __cputchar(int);
int __waddbytes(WINDOW *, const char *, int, attr_t);
Expand Down
6 changes: 6 additions & 0 deletions libcurses/escdelay.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include "curses.h"

int set_escdelay(int value) {
ESCDELAY = value;
}

0 comments on commit f982fd9

Please sign in to comment.