set_escdelay(0).
This commit is contained in:
parent
c545fe025e
commit
137bb109d6
15
lib/curses.c
15
lib/curses.c
@ -4,13 +4,14 @@
|
|||||||
#include "curses.h"
|
#include "curses.h"
|
||||||
|
|
||||||
void initialize_curses() {
|
void initialize_curses() {
|
||||||
setlocale(LC_ALL, "en_US.utf-8"); /* supporting unicode characters */
|
setlocale(LC_ALL, "en_US.utf-8"); /* Support unicode characters. */
|
||||||
initscr(); /* initialize the terminal in curses mode */
|
initscr();
|
||||||
raw(); /* disable line buffers */
|
raw(); /* Disable line buffers. */
|
||||||
noecho(); /* character echo is unnecessary */
|
noecho();
|
||||||
keypad(stdscr, TRUE); /* enable F and arrow keys */
|
keypad(stdscr, TRUE); /* Enable arrow keys. */
|
||||||
start_color(); /* I want colors */
|
start_color(); /* I want colors. */
|
||||||
curs_set(FALSE); /* invisible cursor */
|
curs_set(FALSE); /* Invisible cursor. */
|
||||||
|
set_escdelay(0);
|
||||||
assume_default_colors(COLOR_WHITE, COLOR_GREEN);
|
assume_default_colors(COLOR_WHITE, COLOR_GREEN);
|
||||||
|
|
||||||
init_pair(1, COLOR_BLACK, COLOR_WHITE);
|
init_pair(1, COLOR_BLACK, COLOR_WHITE);
|
||||||
|
Loading…
Reference in New Issue
Block a user