中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net  论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

游客:  注册 | 登录 | 命令行 | 会员 | 搜索 | 上传 | 帮助 »
作者:
标题: 求一个DOS下显示标题的工具 上一主题 | 下一主题
yangjie007
新手上路





积分 6
发帖 2
注册 2010-12-27
状态 离线
『楼 主』:  求一个DOS下显示标题的工具

主要达到的目的:进去DOS系统后,运行工具,可以在屏幕上方或右上角一直显示一些字幕。字幕可以工具需要自己更改。

2011-1-7 11:53
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
DOSforever
金牌会员





积分 4633
发帖 2236
注册 2005-1-30
状态 离线
『第 2 楼』:  

可以用 4DOS 的 SCRPUT 命令

  Quote:
4DOS Help Topic:  SCRPUT


Purpose:  Position text on the screen and display it in color.

Format:   SCRPUT row col [BRIght] [BLInk] fg ON [BRIght] bg text

          row:   Starting row
          col:   Starting column
          fg:    Foreground character color
          bg:    Background character color
          text:  The text to display

See also: ECHO, SCREEN, TEXT, and VSCRPUT.

Usage

SCRPUT allows you to create attractive screen displays in batch files.  You
use it to specify where a message will appear on the screen and what colors
will be used to display the message text.  You can use SCRPUT to create menu
displays, logos, etc.

SCRPUT works like SCREEN, but requires you to specify the display colors.  
See Colors and Color Names for details about colors and notes on the use of
bright background colors.

The row and column values are zero-based, so on a standard 25 line by 80
column display, valid rows are 0 - 24 and valid columns are 0 - 79.  SCRPUT
checks for a valid row and column, and displays a "Usage" error message if
either value is out of range.

You can also specify the row and column as offsets from the current cursor
position.  Begin the value with a plus sign [+] to move down the specified
number of rows or to the right the specified number of columns, or with a
minus sign [-] to move up or to the left.

If you specify 999 for the row, SCRPUT will center the text vertically.  If
you specify 999 for the column, SCRPUT will center the text horizontally.

SCRPUT normally does not move the cursor when it displays the text.  
However, if you have set OutputBIOS to Yes in 4DOS.INI, SCRPUT will leave
the cursor at the end of the displayed text.

The following batch file fragment displays part of a menu, in color:

     cls white on blue
     scrput 3 10 bri whi on blu Select an option:
     scrput 6 20 bri red on blu 1 - Word Processing
     scrput 7 20 bri yel on blu 2 - Spreadsheet
     ...

If you have an unusual display adapter which does not support the direct
video output used by SCRPUT, see the OutputBIOS directive.





DOS倒下了,但永远不死
DOS NEVER DIES !

投票调查:
http://www.cn-dos.net/forum/viewthread.php?tid=46187

本人尚未解决的疑难问题:
http://www.cn-dos.net/forum/viewthread.php?tid=15135
http://www.cn-dos.net/forum/viewthread.php?tid=47663
http://www.cn-dos.net/forum/viewthread.php?tid=48747
2011-1-9 15:01
查看资料  发短消息 网志   编辑帖子  回复  引用回复

请注意:您目前尚未注册或登录,请您注册登录以使用论坛的各项功能,例如发表和回复帖子等。


可打印版本 | 推荐给朋友 | 订阅主题 | 收藏主题



论坛跳转: