summaryrefslogtreecommitdiff
path: root/src/ui_readline.h
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2015-10-23 10:27:31 +0200
committerLars-Dominik Braun <lars@6xq.net>2015-10-23 10:31:25 +0200
commit436a1d4012553a2f33d0e3a5180b3b5ae0378bdd (patch)
tree984f5007600dcf9029eaf8750740e10226196af1 /src/ui_readline.h
parentaf0f9d4bbff4f7a166c15df8c60ad61791740207 (diff)
downloadpianobar-436a1d4012553a2f33d0e3a5180b3b5ae0378bdd.tar.gz
pianobar-436a1d4012553a2f33d0e3a5180b3b5ae0378bdd.tar.bz2
pianobar-436a1d4012553a2f33d0e3a5180b3b5ae0378bdd.zip
Interruptible requests
^C now works as expected: It interrupts API requests, input prompts and audio streaming. Timeouts have been removed.
Diffstat (limited to 'src/ui_readline.h')
-rw-r--r--src/ui_readline.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui_readline.h b/src/ui_readline.h
index cf8ed52..f8221bc 100644
--- a/src/ui_readline.h
+++ b/src/ui_readline.h
@@ -27,10 +27,12 @@ THE SOFTWARE.
#include <stdbool.h>
#include <sys/select.h>
+/* bitfield */
typedef enum {
BAR_RL_DEFAULT = 0,
BAR_RL_FULLRETURN = 1, /* return if buffer is full */
BAR_RL_NOECHO = 2, /* don't echo to stdout */
+ BAR_RL_NOINT = 4, /* don’t change interrupted variable */
} BarReadlineFlags_t;
typedef struct {