Annotation of MiNT/src/welcome.c, revision 1.1.1.4

1.1       root        1: /* welcome.c - MiNT welcome message
                      2: 
1.1.1.3   root        3:  * Copyright 1992,1993,1994 Atari Corp.  All Rights Reserved.
1.1       root        4: 
                      5:  *=======================================================================
                      6: 
                      7:  * 920625 kbad
                      8: 
                      9:  */
                     10: 
                     11: #include "mint.h"
                     12: 
                     13: #include "version.h"
                     14: 
                     15: 
                     16: 
                     17: const char *memprot_notice = "\
                     18: 
                     19: You have used -m to turn off memory\r\n\
                     20: 
                     21: protection.  On a 68000, you don't\r\n\
                     22: 
                     23: need to do this because MiNT will\r\n\
                     24: 
                     25: do it for you automagically.\r\n";
                     26: 
                     27: 
                     28: 
                     29: const char *memprot_warning = "\033p\
                     30: 
                     31:             *** WARNING ***            \033q\r\n\
                     32: 
                     33: You have turned off memory protection.\r\n\
                     34: 
                     35: This is not recommended, and may not be\r\n\
                     36: 
                     37: supported in the future.\r\n";
                     38: 
                     39: 
                     40: 
                     41: const char *insuff_mem_warning = "\033p\
                     42: 
                     43:             *** WARNING ***            \033q\r\n\
                     44: 
                     45: Your system's memory is not large enough\r\n\
                     46: 
                     47: to permit memory protection to be enabled.\r\n";
                     48: 
                     49: 
                     50: 
                     51: const char *greet1 = "\r\n\033p\033f\
                     52: 
                     53:  MiNT is Now TOS (" __DATE__ ")         \033q\r\n\
                     54: 
                     55:  MiNT v"; /*x.xx prelim version PL xx*/
                     56: 
                     57: 
                     58: 
1.1.1.4 ! root       59: #ifdef MULTITOS
1.1       root       60: 
1.1.1.4 ! root       61: #define MINT_NAME      "MultiTOS"
1.1       root       62: 
1.1.1.4 ! root       63: #else
1.1       root       64: 
1.1.1.4 ! root       65: #define MINT_NAME      "MiNT"
1.1       root       66: 
1.1.1.4 ! root       67: #endif
1.1       root       68: 
                     69: 
                     70: 
                     71: const char *greet2 = "\r\n\
                     72: 
                     73:  \xbd 1990,1991,1992 Eric R. Smith\r\n\
                     74: 
                     75:  MultiTOS kernel\r\n\
                     76: 
1.1.1.4 ! root       77:  \xbd 1992,1993,1994 Atari Corporation\r\n\
1.1       root       78: 
1.1.1.4 ! root       79:  All Rights Reserved.\r\n\033p\
1.1       root       80: 
1.1.1.4 ! root       81:  Use this program at your own risk!    \033q\r\n\r\n";
1.1       root       82: 
                     83: 
                     84: 
                     85: /*
                     86: 
1.1.1.4 ! root       87:  * "boot MiNT?" messages, in various langauges:
1.1       root       88: 
                     89:  */
                     90: 
                     91: 
                     92: 
                     93: 
                     94: 
                     95: struct yn_message {
                     96: 
                     97:        const char *message;    /* message to print */
                     98: 
                     99:        char    yes_let;        /* letter to hit for yes */
                    100: 
                    101:        char    no_let;         /* letter to hit for no */
                    102: 
                    103: } boot_it[MAXLANG] = {
                    104: 
1.1.1.4 ! root      105: { "Load " MINT_NAME "?   (y)es (n)o ", 'y', 'n' },
1.1       root      106: 
1.1.1.4 ! root      107: { MINT_NAME " laden?   (j)a (n)ein ", 'j', 'n' },
1.1       root      108: 
1.1.1.4 ! root      109: { "Charger " MINT_NAME "?   (o)ui (n)on ", 'o', 'n' },
1.1       root      110: 
1.1.1.4 ! root      111: { "Load " MINT_NAME "?   (y)es (n)o ", 'y', 'n' },             /* reserved */
1.1       root      112: 
1.1.1.4 ! root      113: { "�Cargar " MINT_NAME "?   (s)i (n)o ", 's', 'n' },   /* upside down ? is 168 dec. */
1.1       root      114: 
1.1.1.4 ! root      115: { "Carica " MINT_NAME "?   (s)i (n)o ", 's', 'n' }
1.1       root      116: 
                    117: };
                    118: 
                    119: 
                    120: 
                    121: 
                    122: 
                    123: /*
                    124: 
                    125:  * ask the user whether s/he wants to boot MultiTOS; returns 1 if
                    126: 
                    127:  * yes, 0 if no
                    128: 
                    129:  */
                    130: 
                    131: 
                    132: 
                    133: int
                    134: 
                    135: boot_kernel_p()
                    136: 
                    137: {
                    138: 
                    139:        extern int gl_lang;
                    140: 
                    141:        struct yn_message *msg;
                    142: 
                    143:        int y;
                    144: 
                    145: 
                    146: 
                    147:        msg = &boot_it[gl_lang];
                    148: 
                    149:        Cconws(msg->message);
                    150: 
                    151:        y = (int) Cconin();
                    152: 
                    153:        if (tolower(y) == msg->yes_let)
                    154: 
                    155:                return 1;
                    156: 
                    157:        else
                    158: 
                    159:                return 0;
                    160: 
                    161: }
                    162: 
                    163: 
                    164: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.