summaryrefslogtreecommitdiff
path: root/print.c
diff options
context:
space:
mode:
Diffstat (limited to 'print.c')
-rw-r--r--print.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/print.c b/print.c
index d9152971b9..558181ea72 100644
--- a/print.c
+++ b/print.c
@@ -29,6 +29,19 @@
bool print_enable = false;
+void print_S(const char *s)
+{
+ if (!print_enable) return;
+ char c;
+
+ while (1) {
+ c = *s++;
+ if (!c) break;
+ if (c == '\n') sendchar('\r');
+ sendchar(c);
+ }
+}
+
void print_P(const char *s)
{
if (!print_enable) return;