Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix for user prompt.

  • Loading branch information...
commit 83fbed519c62337f980944f6881b054c9ec5c640 1 parent 855ea75
Jonas Kramer authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 source/readline.c
4 source/readline.c
View
@@ -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);

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;
}
Joe Friedl

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

Please sign in to comment.
Something went wrong with that request. Please try again.