Created
January 22, 2014 23:57
-
-
Save jnthn/8570089 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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