Permalink
Browse files

Fix for user prompt.

  • Loading branch information...
1 parent 855ea75 commit 83fbed519c62337f980944f6881b054c9ec5c640 Jonas Kramer committed May 1, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 source/readline.c
View
4 source/readline.c
@@ -21,6 +21,8 @@ char * readline(struct prompt * setup) {
static char line[1024];
unsigned length = 0;
+ canon(0);
+
assert(setup != NULL);
/* Print prompt if present. */
@@ -143,6 +145,8 @@ char * readline(struct prompt * setup) {
fputc(10, stderr);
+ canon(1);
@grampajoe
grampajoe added a line comment May 8, 2012

Enabling canonical mode here keeps it enabled when keyboard commands are being read. Is there somewhere else it needs to be disabled?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+
return line;
}

0 comments on commit 83fbed5

Please sign in to comment.