Skip to content
This repository
Browse code

Fix for user prompt.

  • Loading branch information...
commit 83fbed519c62337f980944f6881b054c9ec5c640 1 parent 855ea75
Jonas Kramer authored

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. +4 0 source/readline.c
4 source/readline.c
@@ -21,6 +21,8 @@ char * readline(struct prompt * setup) {
21 21 static char line[1024];
22 22 unsigned length = 0;
23 23
  24 + canon(0);
  25 +
24 26 assert(setup != NULL);
25 27
26 28 /* Print prompt if present. */
@@ -143,6 +145,8 @@ char * readline(struct prompt * setup) {
143 145
144 146 fputc(10, stderr);
145 147
  148 + canon(1);
  149 +
146 150 return line;
147 151 }
148 152

0 comments on commit 83fbed5

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.