willsort 
元老会员
 
          Batchinger
  
 
积分 4432 
发帖 1512 
注册 2002-10-18 
状态 离线
 | 
『第 6 楼』:
 
 
使用 LLM 解释/回答一下
  
Re F60: 
  字符代表屏幕上可显示的符号,它不仅可以是一个英文字母,也可以数字、标点和其他键盘上的可打印字符,它还可以是一个中文字,一个阿拉伯字母或者任意的一个多国语言符号,甚至它可以是一个图形(当然,它需要有对应的编码与字模)。
 
  一个汉字是一个字符,只是在很多汉字编码(例如GB 2312)中它占用两个字节,它通常在DOS屏幕显示占用两个英文字符的位置,所以很多材料中近似的把双字节编码的字符看作两个“字符”。在Windows或其它新型的操作环境和应用程序中,汉字都已作为一个字符看待,比如编程语言VB或者CMD命令set。
 
Re fdsiuha:
 
  赞同你的见解,现补充一篇Qbasic关于屏幕显示模式的文档:
 ------------------------------------------------------------------------------ 
The following table summarizes screen modes: 
 
----------MDPA, CGA, Hercules, Olivetti, EGA, VGA, or MCGA Adapters----------- 
SCREEN 0: Text mode only 
    - 40 x 25, 40 x 43, 40 x 50, 80 x 25, 80 x 43, or 80 x 50 text format, 
      8 x 8 character box (8 x 14, 9 x 14, or 9 x 16 with EGA or VGA) 
    - 16 colors assigned to any of 16 attributes (with CGA or EGA) 
    - 64 colors assigned to any of 16 attributes (with EGA or VGA) 
    - Depending on the text resolution and adapter, 8 video memory pages 
      (0-7), 4 pages (0-3), 2 pages (0-1), or 1 page (0) 
 
-----------------------CGA, EGA, VGA, or MCGA Adapters------------------------ 
SCREEN 1: 320 x 200 graphics 
    - 40 x 25 text format, 8 x 8 character box 
    - 16 background colors and one of two sets of 3 foreground colors 
      assigned using COLOR statement with CGA 
    - 16 colors assigned to 4 attributes with EGA or VGA 
    - 1 video memory page (0) 
SCREEN 2: 640 x 200 graphics 
    - 80 x 25 text format, 8 x 8 character box 
    - 16 colors assigned to 2 attributes with EGA or VGA 
    - 1 video memory page (0) 
 
---------------------Hercules, Olivetti, or AT&T Adapters--------------------- 
SCREEN 3: Hercules adapter required, monochrome monitor only 
    - 720 x 348 graphics 
    - 80 x 25 text format, 9 x 14 character box 
    - Usually 2 video memory pages (0-1); 1 page (0) if a second color 
      display adapter is installed 
    - PALETTE statement not supported 
    - Invoke the Hercules driver MSHERC.COM before using screen mode 3 
SCREEN 4: 
    - Supports Olivetti Personal Computers models M24, M240, M28, M280, 
      M380, M380/C, and M380/T and AT&T Personal Computers 6300 series 
    - 640 x 400 graphics 
    - 80 x 25 text format, 8 x 16 character box 
    - 1 of 16 colors assigned as the foreground color (selected by the 
      COLOR statement); background is fixed at black 
    - 1 video memory page (0) 
    - PALETTE statement not supported 
 
-----------------------------EGA or VGA Adapters------------------------------ 
SCREEN 7: 320 x 200 graphics 
    - 40 x 25 text format, 8 x 8 character box 
    - Assignment of 16 colors to any of 16 attributes 
    - If 64K EGA adapter memory, 2 video memory pages (0-1); otherwise, 
      8 pages (0-7) 
SCREEN 8: 640 x 200 graphics 
    - 80 x 25 text format, 8 x 8 character box 
    - Assignment of 16 colors to any of 16 attributes 
    - If 64K EGA adapter memory, 1 video memory page (0); otherwise, 
      4 pages (0-3) 
SCREEN 9: 640 x 350 graphics 
    - 80 x 25 or 80 x 43 text format, 8 x 14 or 8 x 8 character box 
    - 16 colors assigned to 4 attributes (64K adapter memory), or 
      64 colors assigned to 16 attributes (more than 64K adapter memory) 
    - If 64K EGA adapter memory, 1 video memory page (0); otherwise, 
      2 pages (0-1) 
 
-----------------EGA or VGA Adapters, Monochrome Monitor Only----------------- 
SCREEN 10: 640 x 350 graphics, monochrome monitor only 
    - 80 x 25 or 80 x 43 text format, 8 x 14 or 8 x 8 character box 
    - Up to 9 pseudocolors assigned to 4 attributes 
    - 2 video memory pages (0-1), 256K adapter memory required 
 
-----------------------------VGA or MCGA Adapters----------------------------- 
Screen 11 (VGA or MCGA) 
    - 640 x 480 graphics 
    - 80 x 30 or 80 x 60 text format, 8 x 16 or 8 x 8 character box 
    - Assignment of up to 256K colors to 2 attributes 
    - 1 video memory page (0) 
Screen 12 (VGA) 
    - 640 x 480 graphics 
    - 80 x 30 or 80 x 60 text format, 8 x 16 or 8 x 8 character box 
    - Assignment of up to 256K colors to 16 attributes 
    - 1 video memory page (0) 
Screen 13 (VGA or MCGA) 
    - 320 x 200 graphics 
    - 40 x 25 text format, 8 x 8 character box 
    - Assignment of up to 256K colors to 256 attributes 
    - 1 video memory page (0) 
 
 Last edited by willsort on 2005-8-13 at 19:04 ]  
 
    
 
  
  |  
                  
  
                    ※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得! |   
 |