diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-03-11 06:34:33 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-03-11 06:47:38 -0400 |
| commit | c74f74bf0e9e76ba712fa84a3206ded7654a083d (patch) | |
| tree | d9cffee7cb2c875a2daa89fcd35aa329aecc204e /uitest | |
| parent | 8069f9f429ddcab0695bcd97c49ae5c98c833ba2 (diff) | |
| download | fujinet-chat-c74f74bf0e9e76ba712fa84a3206ded7654a083d.tar.gz | |
Fix Makefile
Diffstat (limited to 'uitest')
| -rw-r--r-- | uitest/test.c | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/uitest/test.c b/uitest/test.c deleted file mode 100644 index 5e13559..0000000 --- a/uitest/test.c +++ /dev/null @@ -1,76 +0,0 @@ -#include <atari.h> -#include <stdio.h> -#include <conio.h> -#include <string.h> -#include "../src/screen.h" -#include "../src/edbox.h" - -void got_line(void) { - scr_print(SCR_CURR, edit_box); - scr_putc(SCR_CURR, '\n'); -} - -int main() { - char i, s; - char buf[40]; - - OS.color2 = 0xc2; - OS.color1 = 0x0e; - - scr_init(); - edbox_callback = got_line; - - /* - for(i = 0; i < 4; i++) { - sprintf(buf, "screen%d", i); - s = scr_create(buf, 0); - scr_set_topic(s + 1, "This is screen #%d."); - } - */ - - for(i = 0; i < 19; i++) { - sprintf(buf, "line %d\n", i); - scr_print(0, buf); - } - - scr_print_current("login:\n"); - strcpy(buf, "Urchlay"); - edbox_readline(buf, sizeof(buf)); - scr_print_current("You are logged in as "); - scr_print_current(buf); - - scr_print_current("Hold Start and press:\n"); - scr_print_current("N: Create new screen, C: Close screen\n"); - scr_print_current("1-7: Switch to screen (if exists).\n"); - scr_print_current("To enter text, just start typing.\n"); - - while(1) { - if(OS.ch != 0xff) { - if(GTIA_READ.consol == 6) { /* start pressed */ - i = cgetc(); - if(i == 's') { - scr_scrollback(); - cgetc(); - scr_end_scrollback(); - } else if(i >= '1' && i <= '7') { - if(scr_status[i - '1'] != SCR_UNUSED) - scr_display(i - '1'); - } else if(i == 'n') { - s = scr_create("new screen", 1); - if(s != 0xff) { - scr_print(0, "Screen #"); - scr_putc(0, s + '1'); - scr_print(0, " created.\n"); - } else { - scr_print(scr_current, "Can't create screen (all in use)\n"); - } - } else if(i == 'c') { - scr_destroy(scr_current); - } - } else { - edbox_keystroke(); - } - } - } - return 0; -} |
