From 46a0824ddcdd5771e5be8c566b2683dc4c90481e Mon Sep 17 00:00:00 2001 From: nino-porcino Date: Tue, 15 Feb 2022 17:44:37 +0100 Subject: [PATCH] configurable input line prompt character --- lib/apple1.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/apple1.h b/lib/apple1.h index d1d0926..8964331 100644 --- a/lib/apple1.h +++ b/lib/apple1.h @@ -116,12 +116,14 @@ void apple1_input_line(byte *buffer, byte max) { buffer[x]=0; } -const byte prompt_char = ']'; +#ifndef INPUT_LINE_PROMPT_CHAR +#define INPUT_LINE_PROMPT_CHAR '>' +#endif void apple1_input_line_prompt(byte *buffer, byte max) { byte x=0; - woz_putc(prompt_char); + woz_putc(INPUT_LINE_PROMPT_CHAR); while(1) { byte c = apple1_getkey(); @@ -141,7 +143,7 @@ void apple1_input_line_prompt(byte *buffer, byte max) { x--; buffer[x] = 0; woz_putc('\r'); - woz_putc(prompt_char); + woz_putc(INPUT_LINE_PROMPT_CHAR); woz_puts(buffer); } }