China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-23 20:56
中国DOS联盟论坛 » DOS汉化世界 & 中文系统 (中文化室) » Config Chinese menu-driven Confect.sys (updated to version 4.3) View 29,593 Replies 117
Original Poster Posted 2008-12-17 23:22 ·  中国 湖北 武汉 电信
初级用户
★★
Credits 113
Posts 51
Joined 2008-11-16 23:24
17-year member
UID 131196
Gender Male
From 武汉
Status Offline
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 ]
Attachments
confect41.rar (4.7 KiB, Downloads: 446)
三川一笑
Floor 2 Posted 2008-12-18 07:27 ·  中国 上海 电信
中级用户
★★
Credits 424
Posts 133
Joined 2004-03-01 00:00
22-year member
UID 18893
Gender Male
Status Offline
Support
http://hi.baidu.com/julon
Floor 3 Posted 2008-12-18 17:43 ·  中国 辽宁 沈阳 联通
初级用户
Credits 62
Posts 31
Joined 2008-03-28 22:19
18-year member
UID 114297
Gender Male
Status Offline
Hehe, the owner of the post acted quickly, strongly support it
Floor 4 Posted 2008-12-19 14:45 ·  中国 福建 福州 台江区 电信
初级用户
★★
Credits 119
Posts 59
Joined 2008-11-21 14:07
17-year member
UID 131656
Gender Male
Status Offline
Thanks to the landlord. I've been following it all the time.
Floor 5 Posted 2008-12-19 16:00 ·  中国 江苏 苏州 电信
银牌会员
★★★
Credits 2,227
Posts 790
Joined 2005-01-27 00:00
21-year member
UID 35703
Gender Male
Status Offline
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 ]
Attachments
2sets.RAR (398 bytes, Credits to download 1 pts, Downloads: 51)
my major is english----my love is dos----my teacher is the buddha----my friends--how about U
Floor 6 Posted 2008-12-19 16:46 ·  中国 福建 福州 台江区 电信
初级用户
★★
Credits 119
Posts 59
Joined 2008-11-21 14:07
17-year member
UID 131656
Gender Male
Status Offline
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.
Floor 7 Posted 2008-12-19 17:07 ·  中国 湖北 武汉 电信
初级用户
★★
Credits 113
Posts 51
Joined 2008-11-16 23:24
17-year member
UID 131196
Gender Male
From 武汉
Status Offline
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 ]
三川一笑
Floor 8 Posted 2008-12-19 17:11 ·  中国 湖北 武汉 电信
初级用户
★★
Credits 113
Posts 51
Joined 2008-11-16 23:24
17-year member
UID 131196
Gender Male
From 武汉
Status Offline
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
三川一笑
Floor 9 Posted 2008-12-19 20:25 ·  中国 江苏 苏州 电信
银牌会员
★★★
Credits 2,227
Posts 790
Joined 2005-01-27 00:00
21-year member
UID 35703
Gender Male
Status Offline
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
Floor 10 Posted 2008-12-19 22:44 ·  中国 湖北 武汉 电信
初级用户
★★
Credits 113
Posts 51
Joined 2008-11-16 23:24
17-year member
UID 131196
Gender Male
From 武汉
Status Offline
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.
三川一笑
Floor 11 Posted 2008-12-20 11:51 ·  中国 福建 福州 台江区 电信
初级用户
★★
Credits 119
Posts 59
Joined 2008-11-21 14:07
17-year member
UID 131656
Gender Male
Status Offline
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... ^_^
Floor 12 Posted 2008-12-20 17:50 ·  中国 湖北 武汉 电信
初级用户
★★
Credits 113
Posts 51
Joined 2008-11-16 23:24
17-year member
UID 131196
Gender Male
From 武汉
Status Offline
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.
三川一笑
Floor 13 Posted 2008-12-23 11:44 ·  中国 辽宁 沈阳 联通
初级用户
Credits 62
Posts 31
Joined 2008-03-28 22:19
18-year member
UID 114297
Gender Male
Status Offline
Looking forward to a more perfect new version of Sanshui
Floor 14 Posted 2008-12-27 19:29 ·  中国 广东 湛江 电信
初级用户
Credits 37
Posts 17
Joined 2008-12-22 20:52
17-year member
UID 134656
Gender Male
Status Offline
Floor 15 Posted 2008-12-27 22:55 ·  中国 广东 湛江 电信
初级用户
Credits 37
Posts 17
Joined 2008-12-22 20:52
17-year member
UID 134656
Gender Male
Status Offline
Strange,

After execution, there is a beginning and an end, but no middle???

Automatically return after ending according to English letters or time

A:>
1 2 3 8 Next ›
Forum Jump: