⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fglobal.cpp

📁 串行通信编程源码
💻 CPP
字号:
// ******************************************************************** //
//                                                                      //
//      FGLOBAL.CPP                                                     //
//      Copyright (c) 1993, Michael Holmes and Bob Flanders             //
//      C++ Communication Utilities                                     //
//                                                                      //
//      This file contains the global definitions for the fax           //
//      utility program.                                                //
//                                                                      //
// ******************************************************************** //


/* ******************************************************************** *
 *
 *  Messages and strings
 *
 * ******************************************************************** */

char    copyright[]    = "FAXUTIL 1.00 \xfe Copyright (c) 1993, "
                         "Michael Holmes and Bob Flanders\n\r"
                         "C++ Communication Utilities\n\n\r",
        bad_width[]    = "Screen must be at least 80 columns wide\n",
        no_memory[]    = "Insufficient memory to continue processing\n",
        read_error[]   = "Error reading G3 file\n",
        stop_here[]    = "\nStopping at user's request\n",
        status[]       = "   FAXUTIL 1.00    \xb3"
                         "   %-34.34s  \xb3"
                         "                    ",
        status_file[]  = "%-25.25s %d Page",
        status_conv[]  = "Converting: %s",
        create_msg[]   = "\n\r Creating: %s\n\r",
        answer_yes[]   = "Yes\r",
        answer_no[]    = "No\r",
        fmt_msg[]      = " Formatting page %d ",
        done[]         = "FAXUTIL completed normally\n",
        open_msg[]     = " Filename: ",
        write_msg[]    = "   Page %d, %ld%% complete   \r",
        print_msg[]    = " Printing FAX -- press any key to quit\n\r",
        page_msg[]     = " Page %d of %d\r",
        beep[]         = "\a",
        help[]         =
            "  Usage:  FAXUTIL\n\n  This program takes no operands";



/* ******************************************************************** *
 *
 *  Globals
 *
 * ******************************************************************** */

int     rc = 1,                             // errorlevel return code
        quit_flag,                          // termination flag
        full_screen,                        // full screen mode active
        term_cn = MIX(WHITE, BLUE),         // terminal screen normal
        term_cr = MIX(GREEN, BLUE),         // ..and reverse colors
        stat_cn = MIX(BLUE, CYAN),          // status line
        mono_1 = MIX(WHITE, BLACK),         // mono color schemes
        mono_2 = MIX(BLACK, LIGHTGRAY);     // ..for all windows

char    huge *page;                         // page bitmap (1728 x 1143)

void    interrupt far (*old_break)(...);    // old ^break handler address

Window  *term;                              // terminal emulator window



/* ******************************************************************** *
 *
 *  Menu tree
 *
 * ******************************************************************** */

Menu main_menu(          "File");           // File menu
Menu menu_10(&main_menu,   "Open", f_open, 1);  // Open G3 file
Menu menu_11(&menu_10,     "Format", f_format); // Format ASCII into G3

Menu menu_20(&main_menu, "Print");          // Print menu
Menu menu_21(&menu_20,     "LPT1", f_lpt1, 1);
Menu menu_22(&menu_21,     "LPT2", f_lpt2);
Menu menu_23(&menu_21,     "LPT3", f_lpt3);

Menu menu_30(&main_menu, "View", f_view);   // View fax

Menu menu_40(&main_menu, "Exit", f_exit);   // Exit

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -