From 088f79aa11c32499b0cbc083505c9b12dd6c1f4b Mon Sep 17 00:00:00 2001 From: kieran Date: Sat, 5 Mar 2011 13:34:25 +1100 Subject: [PATCH] add mendel_print_interactive to func.sh for stepping through prints Signed-off-by: Michael Moon --- func.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/func.sh b/func.sh index 56e7dab..c4075a8 100755 --- a/func.sh +++ b/func.sh @@ -188,6 +188,21 @@ mendel_print() { ) } +# Print a gcode file. Press a key after each line. Echos commands and replies. +mendel_print_interactive() { + ( + for F in "$@" + do + local IFS=$'\n' + for L in $(< $F) + do + mendel_cmd_hr "$L" + read + done + done + ) +} + # Use the debug interface to directly read memory. # Usage: # mendel_readsym 0x
(:)