blob: 61c34f0a4202a45d5169476d9f9e233003a55f1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
From 1e45f226ef35b649cb2889e23ad90ad39d0db947 Mon Sep 17 00:00:00 2001
From: Joshua Jensch <jenschjoshua@gmail.com>
Date: Sat, 14 Mar 2020 03:11:58 +0100
Subject: [PATCH] Use 25ms as escdelay
By default ncurses will use 1000ms, which will cause freezing.
Fixes #44
---
src/pamix.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/pamix.cpp b/src/pamix.cpp
index d5f7ead..368639d 100644
--- a/src/pamix.cpp
+++ b/src/pamix.cpp
@@ -206,6 +206,7 @@ int main(int argc, char **argv) {
initscr();
init_colors();
nodelay(stdscr, true);
+ set_escdelay(25);
curs_set(0);
keypad(stdscr, true);
meta(stdscr, true);
|