Skip to content

Instantly share code, notes, and snippets.

@jnthn
Created January 22, 2014 23:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnthn/8570089 to your computer and use it in GitHub Desktop.
Save jnthn/8570089 to your computer and use it in GitHub Desktop.
diff --git a/src/core/interp.c b/src/core/interp.c
index a650dc2..89a5909 100644
--- a/src/core/interp.c
+++ b/src/core/interp.c
@@ -3316,7 +3316,10 @@ void MVM_interp_run(MVMThreadContext *tc, void (*initial_invoke)(MVMThreadContex
cur_op += 4;
goto NEXT;
OP(readlineint_fh):
- GET_REG(cur_op, 0).s = MVM_file_readline_interactive_fh(tc, GET_REG(cur_op, 2).o, GET_REG(cur_op, 4).s);
+ /* XXX Avoid readline for now; spews infinite prompts on some
+ * platforms. */
+ MVM_file_write_fhs(tc, tc->instance->stdout_handle, GET_REG(cur_op, 4).s, 0);
+ GET_REG(cur_op, 0).s = MVM_file_readline_fh(tc, GET_REG(cur_op, 2).o);
cur_op += 6;
goto NEXT;
OP(chdir):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment