aboutsummaryrefslogtreecommitdiff
path: root/display.c
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2011-06-21 00:57:08 +0200
committerDaniel Lezcano <daniel.lezcano@linaro.org>2011-06-21 00:57:08 +0200
commit73b400238f53a18c4d35b7ba9a7de7dd26755035 (patch)
tree58a078f05554a33a9fd8e5e1c5aa61bc228c7a17 /display.c
parenta12163dafb3c38d08b85b4389de68369d69edf93 (diff)
downloadpowerdebug-73b400238f53a18c4d35b7ba9a7de7dd26755035.tar.gz
add a select callback on a clock from the search result
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'display.c')
-rw-r--r--display.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/display.c b/display.c
index 1dc11dd..38596b0 100644
--- a/display.c
+++ b/display.c
@@ -447,9 +447,14 @@ static int display_find_keystroke(int fd, void *data)
string[strlen(string) - 1] = '\0';
break;
- case KEY_ENTER:
- /* next patch */
- break;
+ case '\r':
+ if (!windata[current_win].ops || !windata[current_win].ops->selectf)
+ return 0;
+
+ if (windata[current_win].ops->selectf())
+ return -1;
+
+ return 0;
default: