summaryrefslogtreecommitdiff
path: root/src/core/ao_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ao_cmd.c')
-rw-r--r--src/core/ao_cmd.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/ao_cmd.c b/src/core/ao_cmd.c
index c0e1a6b5..de5ccc35 100644
--- a/src/core/ao_cmd.c
+++ b/src/core/ao_cmd.c
@@ -29,8 +29,8 @@ static __xdata char cmd_line[CMD_LEN];
static __pdata uint8_t cmd_len;
static __pdata uint8_t cmd_i;
-static void
-put_string(__code char *s)
+void
+ao_put_string(__code char *s)
{
char c;
while ((c = *s++))
@@ -40,7 +40,7 @@ put_string(__code char *s)
static void
backspace(void)
{
- put_string ("\010 \010");
+ ao_put_string ("\010 \010");
}
static void
@@ -48,7 +48,7 @@ readline(void)
{
char c;
if (ao_echo())
- put_string("> ");
+ ao_put_string("> ");
cmd_len = 0;
for (;;) {
flush();
@@ -317,13 +317,13 @@ help(void)
cs = ao_cmds[cmds];
for (cmd = 0; cs[cmd].func; cmd++) {
h = cs[cmd].help;
- put_string(h);
+ ao_put_string(h);
e = strlen(h);
h += e + 1;
e = 45 - e;
while (e--)
putchar(' ');
- put_string(h);
+ ao_put_string(h);
putchar('\n');
}
}