about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-01-15 01:21:24 +0000
committerJames Booth <boothj5@gmail.com>2015-01-15 01:21:24 +0000
commitaec14848065765c0101f0ee09fbcf81c920a22d7 (patch)
tree5db660e7b8c040fdd561a8f6b1f94dcda436e6c7 /src/ui
parent3b69ad7b610cbd9a5f77ebe0af5b9d58c32c4050 (diff)
downloadprofani-tty-aec14848065765c0101f0ee09fbcf81c920a22d7.tar.gz
Removed ch from main loop
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/core.c4
-rw-r--r--src/ui/ui.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/core.c b/src/ui/core.c
index 6918a658..9668a7a3 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -174,7 +174,7 @@ ui_close(void)
     endwin();
 }
 
-wint_t
+gboolean
 ui_get_char(char *input, int *size)
 {
     int result = 0;
@@ -193,7 +193,7 @@ ui_get_char(char *input, int *size)
         ui_input_nonblocking(FALSE);
     }
 
-    return ch;
+    return (ch != '\n');
 }
 
 void
diff --git a/src/ui/ui.h b/src/ui/ui.h
index 1e78ce40..a482826b 100644
--- a/src/ui/ui.h
+++ b/src/ui/ui.h
@@ -229,7 +229,7 @@ void ui_update_presence(const resource_presence_t resource_presence,
 void ui_about(void);
 void ui_statusbar_new(const int win);
 
-wint_t ui_get_char(char *input, int *size);
+gboolean ui_get_char(char *input, int *size);
 void ui_input_clear(void);
 void ui_input_nonblocking(gboolean);
 void ui_replace_input(char *input, const char * const new_input, int *size);