|
sanchuan
初级用户
 
积分 113
发帖 51
注册 2008-11-16 来自 武汉
状态 离线
|
『楼 主』:
Config中文菜单驱动Confect.sys (更新为4.3版)
使用 LLM 解释/回答一下
DOS环境下的Config中文菜单驱动程序Confect.sys V4.1
Confect.sys V4.1能够直接驱动中英文菜单,使用简便,只需一个CCDOS或UCDOS的汉字库文件就能在config中显示汉字。V4.1版的字库默认为当前盘的根目录,若在其它路径,则在Config.sys配置文件的开始部分,添加以下语句:
device=Confect.sys c:\dos\hzk16
...... (详细说明见压缩包内文本文件)
特别说明:
1、Confect同原config.sys正文一样,未作严格语法检测。DOS 在处理原 Config 时,一律对错误的语句用一个 Z 替代而不作任何提示。因此,请按压缩包内说明定义confect驱动的菜单;
2、4.1版未对VGA调色板进行设置而利用字符属性选择字符集,故尾注字符较暗、提示字符较亮;
3、Confect默认为9点字符时钟,部分汉字会出现中间竖划粗或中缝的现象。若要使用8点字符时钟,可在set default语句的最后加参数8,即:
set default=1,30,8
4、各版本功能见压缩包内说明,建议使用更新的版本。
Confect V4.3,放在76楼,点击Confect V4.3
Confect.sys V4.2 在28楼
Last edited by sanchuan on 2009-1-13 at 00:25 ]
Configurable Chinese Menu Driver for DOS Environment: Confect.sys V4.1
Confect.sys V4.1 can directly drive Chinese and English menus and is easy to use. Just one Chinese character library file of CCDOS or UCDOS is needed to display Chinese characters in config. The font library of version V4.1 is defaulted to the root directory of the current disk. If it is in another path, add the following statement at the beginning of the Config.sys configuration file:
device=Confect.sys c:\dos\hzk16
...... (For detailed instructions, see the text file in the compressed package)
Special Instructions:
1. Confect, like the original Config.sys text, has not undergone strict grammar checking. When DOS processes the original Config, it uniformly replaces incorrect statements with a Z without any prompt. Therefore, please define the menu driven by confect according to the instructions in the compressed package;
2. Version 4.1 does not set the VGA color palette and uses character attributes to select the character set, so the tail note characters are darker and the prompt characters are brighter;
3. Confect defaults to 9-point character clock, and some Chinese characters may have thick middle vertical strokes or middle seam phenomena. If you want to use 8-point character clock, you can add parameter 8 at the end of the set default statement, that is:
set default=1,30,8
4. For the functions of each version, see the instructions in the compressed package, It is recommended to use a newer version.
Confect V4.3 is on building 76, Click Confect V4.3
Confect.sys V4.2 is on building 28
Last edited by sanchuan on 2009-1-13 at 00:25 ]
附件
1: confect41.rar (2008-12-20 17:46, 4.7 KiB,下载次数: 444)
|

三川一笑 |
|
2008-12-17 23:22 |
|
|
julon
中级用户
  
积分 424
发帖 133
注册 2004-3-1
状态 离线
|
|
2008-12-18 07:27 |
|
|
supertom
初级用户
 
积分 62
发帖 31
注册 2008-3-28
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
呵呵,楼主动作很快,强烈支持一下
Hehe, the owner of the post acted quickly, strongly support it
|
|
2008-12-18 17:43 |
|
|
wuchan
初级用户
 
积分 119
发帖 59
注册 2008-11-21
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
谢谢楼主了.一直关注着
Thanks to the landlord. I've been following it all the time.
|
|
2008-12-19 14:45 |
|
|
本是
银牌会员
    
积分 2221
发帖 789
注册 2005-1-27
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
RE: Sanchuan:
首先,你的软件很不错,菜单使用方式特别、方便,希望有更多的人使用。
你在说明文件中说
”特别说明:
1、为了在文本方式能够显示更多的汉字,在Confect中激活了两个字符集(理论上可以容纳128个不重复汉字)。由于利用字符属性选择字符集,故尾注字符较暗、提示字符较亮。“
这是因为调色板设置问题引起的,可以先保存原寄存器值,设置成前后8个寄存器值一样,最后不需要时恢复保存的值。
getpal:
push cs
pop es
mov dx,offset _palbuf
mov ax,1009h
int 10h ; Video; get palette regs to es:dx
_palbuf db 17 dup(0)
setpal:
mov dx,offset _colo
push es
xor ax,ax
mov es,ax
test byte ptr es:410h,2
jz __
mov dx,offset _mono
__:
pop es
mov ax,1002h
int 10h ; Video; set palette regs from es:dx
_colo db 0,1,2,3,4,5,6,7, 0,1,2,3,4,5,6,7 ,0
_mono db 0,7,7,7,7,7,7,7, 0,7,7,7,7,7,7,7 ,0
resetpal:
push cs
pop es
mov dx,offset _palbuf
mov ax,1002h
int 10h ; Video; set palette regs from es:dx
(当然最简单的恢复方法是mov ax,3和int 10h重置视频模式3)
你可以考虑加到CONFECT.SYS下一个版本中。
另外,CONFECT.SYS与什么相联系?我的理解是MenuEnv.CTL(意思是Menu菜单Env环境CTL控制驱动)。
我再附一个激活双字符集并重置调色板的实例,下载附件后改扩展名RAR为COM。运行后先显示同一亮度的6个汉字,按一键后显示西文和不同亮度。
Last edited by 本是 on 2008-12-19 at 16:07 ]
RE: Sanchuan:
First of all, your software is very good, and the menu usage method is special and convenient. I hope more people will use it.
In your instruction file, you said:
"Special Note:
1. In order to display more Chinese characters in text mode, two character sets are activated in Confect (theoretically, 128 non - repeating Chinese characters can be accommodated). Since the character set is selected by using the character attribute, the endnote characters are darker and the prompt characters are brighter."
This is caused by the palette setting problem. You can first save the original register values, set the previous 8 register values to be the same as the next 8, and finally restore the saved values when not needed.
getpal:
push cs
pop es
mov dx, offset _palbuf
mov ax, 1009h
int 10h ; Video; get palette regs to es:dx
_palbuf db 17 dup(0)
setpal:
mov dx, offset _colo
push es
xor ax, ax
mov es, ax
test byte ptr es:410h, 2
jz __
mov dx, offset _mono
__:
pop es
mov ax, 1002h
int 10h ; Video; set palette regs from es:dx
_colo db 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 0
_mono db 0, 7, 7, 7, 7, 7, 7, 7, 0, 7, 7, 7, 7, 7, 7, 7, 0
resetpal:
push cs
pop es
mov dx, offset _palbuf
mov ax, 1002h
int 10h ; Video; set palette regs from es:dx
(Of course, the simplest recovery method is to mov ax, 3 and int 10h to reset the video mode 3)
You can consider adding it to the next version of CONFECT.SYS.
In addition, what is CONFECT.SYS associated with? My understanding is MenuEnv.CTL (meaning Menu menu Env environment CTL control driver).
I will attach an example of activating the dual character set and resetting the palette. After downloading the attachment, change the extension RAR to COM. After running, it will first display 6 Chinese characters with the same brightness, and after pressing a key, it will display Western characters and different brightness.
Last edited by 本是 on 2008-12-19 at 16:07 ]
附件
1: 2sets.RAR (2008-12-19 16:07, 398 bytes, 下载附件所需积分 1 点
,下载次数: 51)
|

my major is english----my love is dos----my teacher is the buddha----my friends--how about U |
|
2008-12-19 16:00 |
|
|
wuchan
初级用户
 
积分 119
发帖 59
注册 2008-11-21
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
有个问题.用个这个文件替换原来4.0的,原来设置好的菜单表头无法显示,还有默认选项变成全黑了.要移动后才变成高亮的.
There is a problem. After replacing the original 4.0 with this file, the original set menu header cannot be displayed, and the default option becomes all black. It only becomes highlighted after moving.
|
|
2008-12-19 16:46 |
|
|
sanchuan
初级用户
 
积分 113
发帖 51
注册 2008-11-16 来自 武汉
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
Originally posted by 本是 at 2008-12-19 16:00:
RE: Sanchuan:
首先,你的软件很不错,菜单使用方式特别、方便,希望有更多的人使用。
你在说明文件中说
”特别说明:
1、为了在文本方式能 ...
谢谢 本是 赐教!愿多多交流。
关于CONFECT.SYS与什么相联系的问题,其实confect就是一个简单的DOS驱动程序,只不过不驻留内存罢了。
另外,如果设计巧妙,在文本方式是可以显示150个不重复汉字,现在最棘手的是9点制表符从0c0h扩展到0ffh的问题。
Last edited by sanchuan on 2008-12-19 at 17:30 ]
Originally posted by Ben Shi at 2008-12-19 16:00:
RE: Sanchuan:
First of all, your software is very good. The menu usage method is special and convenient. I hope more people will use it.
You said in the instruction file
"Special note:
1、In order to be able to... in text mode..."
Thank you, Ben Shi, for the advice! Wish to communicate more.
Regarding the issue of what CONFECT.SYS is associated with, actually confect is just a simple DOS driver, but it does not reside in memory.
In addition, if designed cleverly, 150 non-repeating Chinese characters can be displayed in text mode. The most difficult problem now is the issue of extending the 9-dot tab character from 0c0h to 0ffh.
Last edited by sanchuan on 2008-12-19 at 17:30 ]
|

三川一笑 |
|
2008-12-19 17:07 |
|
|
sanchuan
初级用户
 
积分 113
发帖 51
注册 2008-11-16 来自 武汉
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
Originally posted by wuchan at 2008-12-19 16:46:
有个问题.用个这个文件替换原来4.0的,原来设置好的菜单表头无法显示,还有默认选项变成全黑了.要移动后才变成高亮的.
4.0的版本在自定义时用的是 rem default:,现在用的是 set default=
注意将冒号改为等号
Originally posted by wuchan at 2008-12-19 16:46:
There is a problem. Replacing the original 4.0 with this file, the original set menu header cannot be displayed, and the default option becomes completely black. It only becomes highlighted after moving.
In version 4.0, when customizing, it uses rem default:, now it uses set default=
Note to change the colon to an equal sign
|

三川一笑 |
|
2008-12-19 17:11 |
|
|
本是
银牌会员
    
积分 2221
发帖 789
注册 2005-1-27
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
Originally posted by sanchuan at 2008-12-19 17:07:
现在最棘手的是9点制表符从0c0h扩展到0ffh的问题。 ...
其实,这就是我在开发VtMagik.com的过程曾经伤透脑筋的我称之为单字节新汉字内码问题,这在9点显示方式下尤其突出。在9点显示方式下,有一种办法可以让汉字看上去不断开——0c0h,80h;0c1h,81h;...——这样可以有32个汉字无缝显示。顺序方式n,n+1;n+2,n+3;...容易编程,但无法利用这种制表符自动复制第8列到第9列的自动特性。
而且,不管设置8点还是9点,都对VGA卡的寄存器进行了设置,所以可能带来兼容性问题——显示器频率超界,引起黑屏;不作设置,即跳了这段程序,差别是很大的,尽管视觉上看不出。程序设计中有很多东东对用户都是“不可见的”,可程序员不能不清楚。这就是我通常不想解释的原因。对于用户是要简单,难题就专为程序员独享!真是有苦说不出。所以,我的VtMagik有-M0与-M8、-M9之分。一般用户可能会嫌软件命令和参数复杂,可这是不得已的。
Originally posted by sanchuan at 2008-12-19 17:07:
The most difficult problem now is the issue of extending the 9-point tab from 0c0h to 0ffh. ...
In fact, this is the single-byte new Chinese character internal code problem that I once racked my brains over during the development of VtMagik.com, which is particularly prominent in the 9-point display mode. In the 9-point display mode, there is a way to make Chinese characters appear unbroken - 0c0h, 80h; 0c1h, 81h;... - so that 32 Chinese characters can be displayed seamlessly. The sequential method n, n+1; n+2, n+3;... is easy to program, but cannot take advantage of the automatic feature of this tab to copy the 8th column to the 9th column.
Moreover, whether setting 8 points or 9 points, the registers of the VGA card are set, so it may bring compatibility problems - the monitor frequency exceeds the limit, causing a black screen; if this program segment is skipped, there is a big difference, although it is not visually noticeable. There are many things in program design that are "invisible" to users, but programmers must not be unaware. This is the reason why I usually don't want to explain. For users, simplicity is required, and the difficulties are exclusively for programmers! It's really a pain. So, my VtMagik has -M0, -M8, and -M9. General users may find the software commands and parameters complicated, but this is a last resort.
|

my major is english----my love is dos----my teacher is the buddha----my friends--how about U |
|
2008-12-19 20:25 |
|
|
sanchuan
初级用户
 
积分 113
发帖 51
注册 2008-11-16 来自 武汉
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
Originally posted by 本是 at 2008-12-19 20:25:
其实,这就是我在开发VtMagik.com的过程曾经伤透脑筋的我称之为单字节新汉字内码问题,这在9点显示方式下尤其突出。在9点显示方式下,有一种办 ...
文本方式9点字符汉字编码也简单:n+40h, n, n1+40h, n1,.....
这种方式编码,可以去掉M0的设置,默认值为M9。一般在屏幕上有缝的汉字都排在后面,如果汉字不多,几乎就看不出来有缝的了。
另:3c0h寄存器——索引号为10h的属性方式控制寄存器有一功能是控制线图字符码的。我试过,没有成功,可能是在10h中断底层又修复了我的设置。
Originally posted by Benshi at 2008-12-19 20:25:
Actually, this is the single-byte new Chinese character internal code problem that I once racked my brains over during the development of VtMagik.com, which is particularly prominent in the 9-point display mode. In the 9-point display mode, there is a way...
The Chinese character encoding in text mode 9-point characters is also simple: n+40h, n, n1+40h, n1,.....
This encoding method can remove the setting of M0, with the default value being M9. Generally, Chinese characters with seams on the screen are arranged at the back. If there are not many Chinese characters, it is almost impossible to see the seams.
Also: The 3c0h register - the attribute mode control register with index number 10h has a function to control the line graph character code. I tried it but didn't succeed. Maybe the setting was repaired at the bottom of the 10h interrupt.
|

三川一笑 |
|
2008-12-19 22:44 |
|
|
wuchan
初级用户
 
积分 119
发帖 59
注册 2008-11-21
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
可以了
衷心的谢谢,
提醒下压缩包里的TXT文档实例用的是":"号,但文档前部的格式说明没有错.我粗心只看了实例...^_^
Okay.
Sincerely thank you.
Remind that the TXT document examples in the compressed package use the ":" symbol, but the format description at the front of the document is correct. I was careless and only looked at the examples... ^_^
|
|
2008-12-20 11:51 |
|
|
sanchuan
初级用户
 
积分 113
发帖 51
注册 2008-11-16 来自 武汉
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
Originally posted by wuchan at 2008-12-20 11:51:
可以了
衷心的谢谢,
提醒下压缩包里的TXT文档实例用的是":"号,但文档前部的格式说明没有错.我粗心只看了实例...^_^
谢谢你指正,是我疏忽。现在实例中都是等号了。
Originally posted by wuchan at 2008-12-21 11:51:
It's okay.
Sincerely thank you,
Remind that the TXT document example in the compressed package uses ":" numbers, but the format description at the front of the document is correct. I was careless and only looked at the example...^_^
Thank you for pointing it out, I was negligent. Now all the examples are equal signs.
|

三川一笑 |
|
2008-12-20 17:50 |
|
|
supertom
初级用户
 
积分 62
发帖 31
注册 2008-3-28
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
期待三川更完美的新版本
Looking forward to a more perfect new version of Sanshui
|
|
2008-12-23 11:44 |
|
|
joinnow2008
初级用户
 
积分 37
发帖 17
注册 2008-12-22
状态 离线
|
|
2008-12-27 19:29 |
|
|
joinnow2008
初级用户
 
积分 37
发帖 17
注册 2008-12-22
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
奇怪,
执行之后,有头,有尾,就是没有中间????
按英文字母,或时间自动结束后,自动返回
A:>
Strange,
After execution, there is a beginning and an end, but no middle???
Automatically return after ending according to English letters or time
A:>
|
|
2008-12-27 22:55 |
|
|