From f37c9b37bdd5c5d7e47036e542e4ec1fbb56e182 Mon Sep 17 00:00:00 2001 From: Ry Date: Sat, 4 Feb 2023 16:29:47 -0800 Subject: [PATCH] sh: Move terminal control character consts to main.asm --- applications/sh/commands/clear.asm | 3 --- applications/sh/commands/help.asm | 2 -- applications/sh/main.asm | 5 ++++- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/applications/sh/commands/clear.asm b/applications/sh/commands/clear.asm index d5570e5..51fedc6 100644 --- a/applications/sh/commands/clear.asm +++ b/applications/sh/commands/clear.asm @@ -1,8 +1,5 @@ ; clear command -const FILL_TERM: 0xF0 -const MOVE_CURSOR: 0xF1 - shell_clear_command_string: data.strz "clear" shell_clear_command: diff --git a/applications/sh/commands/help.asm b/applications/sh/commands/help.asm index 92c66be..0a433d8 100644 --- a/applications/sh/commands/help.asm +++ b/applications/sh/commands/help.asm @@ -1,7 +1,5 @@ ; help command -const SET_COLOR: 0xF2 - shell_help_command_string: data.strz "help" shell_help_command: diff --git a/applications/sh/main.asm b/applications/sh/main.asm index 839a8dc..e6c865a 100644 --- a/applications/sh/main.asm +++ b/applications/sh/main.asm @@ -1,6 +1,9 @@ ; fox32os shell -const CURSOR: 0x8A +const CURSOR: 0x8A +const FILL_TERM: 0xF0 +const MOVE_CURSOR: 0xF1 +const SET_COLOR: 0xF2 const REDRAW_LINE: 0xFE pop [shell_terminal_stream_struct_ptr]