Index: kernel/generic/include/console/prompt.h
===================================================================
--- kernel/generic/include/console/prompt.h	(revision f0d7bd959c3be29cd9d56901480b064516cd54ec)
+++ kernel/generic/include/console/prompt.h	(revision aca4a04f4f74053450eb044698771dc0fe13d2ef)
@@ -40,4 +40,5 @@
 #define MAX_TAB_HINTS 37
 
+extern bool console_prompt_display_all_hints(indev_t *, size_t);
 extern bool console_prompt_more_hints(indev_t *, size_t *);
 
Index: kernel/generic/src/console/kconsole.c
===================================================================
--- kernel/generic/src/console/kconsole.c	(revision f0d7bd959c3be29cd9d56901480b064516cd54ec)
+++ kernel/generic/src/console/kconsole.c	(revision aca4a04f4f74053450eb044698771dc0fe13d2ef)
@@ -231,10 +231,6 @@
 	/* If possible completions are more than MAX_TAB_HINTS, ask user whether to display them or not. */
 	if (found > MAX_TAB_HINTS) {
-		printf("\nDisplay all %zu possibilities? (y or n)", found);
-		wchar_t display;
-		do {
-			display = indev_pop_character(indev);
-		} while (display != 'y' && display != 'n' && display != 'Y' && display != 'N');
-		continue_showing_hints = (display == 'y') || (display == 'Y');
+		printf("\n");
+		continue_showing_hints = console_prompt_display_all_hints(indev, found);
 	}
 	
Index: kernel/generic/src/console/prompt.c
===================================================================
--- kernel/generic/src/console/prompt.c	(revision f0d7bd959c3be29cd9d56901480b064516cd54ec)
+++ kernel/generic/src/console/prompt.c	(revision aca4a04f4f74053450eb044698771dc0fe13d2ef)
@@ -39,4 +39,23 @@
 #include <console/prompt.h>
 
+bool console_prompt_display_all_hints(indev_t *indev, size_t hints)
+{
+	printf("Display all %zu possibilities? (y or n)", hints);
+
+	while (true) {
+		wchar_t answer = indev_pop_character(indev);
+
+		if (answer == 'y' || answer == 'Y') {
+			printf(" y");
+			return true;
+		}
+
+		if (answer == 'n' || answer == 'N') {
+			printf(" n");
+			return false;
+		}
+	}
+}
+
 bool console_prompt_more_hints(indev_t *indev, size_t *display_hints)
 {
Index: kernel/generic/src/debug/symtab.c
===================================================================
--- kernel/generic/src/debug/symtab.c	(revision f0d7bd959c3be29cd9d56901480b064516cd54ec)
+++ kernel/generic/src/debug/symtab.c	(revision aca4a04f4f74053450eb044698771dc0fe13d2ef)
@@ -255,10 +255,6 @@
 	/* If possible completions are more than MAX_TAB_HINTS, ask user whether to display them or not. */
 	if (found > MAX_TAB_HINTS) {
-		printf("\nDisplay all %zu possibilities? (y or n)", found);
-		wchar_t display;
-		do {
-			display = indev_pop_character(indev);
-		} while (display != 'y' && display != 'n' && display != 'Y' && display != 'N');
-		continue_showing_hints = (display == 'y') || (display == 'Y');
+		printf("\n");
+		continue_showing_hints = console_prompt_display_all_hints(indev, found);
 	}
 	
