diff options
-rw-r--r-- | 078run_interactive.cc | 9 | ||||
-rw-r--r-- | repl.mu | 4 |
2 files changed, 11 insertions, 2 deletions
diff --git a/078run_interactive.cc b/078run_interactive.cc index 25ca4dd9..1075c922 100644 --- a/078run_interactive.cc +++ b/078run_interactive.cc @@ -17,8 +17,9 @@ case RUN_INTERACTIVE: { :(code) // manual tests: // just an integer prints value of that location in memory -// instruction executes [not yet working] +// instruction executes // backspace at start begins new attempt +// ctrl-d working [not after first instruction is run] void run_interactive(long long int address) { //? tb_shutdown(); //? 1 long long int size = Memory[address]; @@ -52,7 +53,11 @@ void run_interactive(long long int address) { //? cerr << "AAA 1\n"; //? 1 Recipe.erase(Recipe_number["interactive"]); // call run(string) but without the scheduling - load("recipe interactive [\n"+tmp.str()+"]\n"); +//? cerr << ("recipe interactive [\n"+tmp.str()+"\n]\n"); //? 1 + load("recipe interactive [\n"+tmp.str()+"\n]\n"); transform_all(); +//? cerr << "names: " << Name[Recipe_number["interactive"]].size() << "; "; //? 1 +//? cerr << "steps: " << Recipe[Recipe_number["interactive"]].steps.size() << "; "; //? 1 +//? cerr << "interactive transformed_until: " << Recipe[Recipe_number["interactive"]].transformed_until << '\n'; //? 1 Current_routine->calls.push_front(call(Recipe_number["interactive"])); } diff --git a/repl.mu b/repl.mu index dce9b033..daa59189 100644 --- a/repl.mu +++ b/repl.mu @@ -18,6 +18,10 @@ recipe main [ # assume run-interactive printed on the current line #? $print [a7] #? 1 move-cursor-down-on-display +#? move-cursor-down-on-display #? 1 +#? move-cursor-down-on-display #? 1 +#? move-cursor-down-on-display #? 1 +#? move-cursor-down-on-display #? 1 clear-line-on-display # just to refresh the screen loop } |