发信人: shipping (小平~~~~繁华落尽), 信区: ANSI
标 题: menu.ini最易出现的问题
发信站: 日月光华 (2002年06月03日05:24:59 星期一), 站内信件
menu.ini修改过程中容易出现的问题
1. 菜单修改之后cterm等不支持鼠标点取
这是因为背景上一行末尾少了一个*[m
2. 修改menu之后shift~刷新的时候会吊线
这个需要修改BBS源程序。 具体在 comm_lists.c中的#define SC_BUFSIZE 10240,将这个数值增大,比如20480。
3. 有些浏览工具比如Telnet, Netterm的用户会发现界面折叠起来像百叶窗
这是因为背景一行代码过长, 请精简代码。 另外Netterm用户窗口本身过窄也会有这个问题,那是客户端的事情了。
4. 每一行背景会有不同程度偏移
参看上面的“补充位移”。一种解决办法是对背景的每一行用强行定位显示。这里需要注意的是,虽然使用的是ANSI的绝对定位,但是仍然只能在本行内有效而不会显示在其他行。(典型例子是光华的主界面, 右边那一首词就是用了绝对定位的)
5. 修改menu.ini之后发现某些菜单不能用了
赶快检查menu, 有可能是引用下级菜单不正确,or下级菜单本身有问题。
最不希望出现的是连admin也进入不了,这往往是某一个块缺少了结束符%,最直接
的后果就是在此之后定义的所有菜单都不可用,并且糟糕的是不能简单修改——
需要登陆主机直接修改menu.ini文件才可以。
--
◢//ハミ◣
〃へ へ”
大家好我是阿饼,右边那个是免冠近照,请点击放大 C--●-●-O
っ
◥ ~ ◤
※ 来源:·日月光华 bbs.fudan.edu.cn·[FROM: 10.83.0.81]
Sender: shipping Xiaoping bustling, letter area: ANSI
Title: The most common problems with menu.ini
Sending station: Sun and Moon Guanghua June 03, 2002 05:24:59 Monday, in-site mail
Problems that may easily occur during the modification of menu.ini
1. After the menu is modified, cterm, etc. do not support mouse clicks.
This is because there is one less *[m at the end of the line in the background
2. After modifying the menu, the line will hang when shift is refreshed.
This requires modifying the BBS source program. Specifically, #define SC BUFSIZE 10240 in comm lists.c increases this value, such as 20480.
3. Users of some browsing tools such as Telnet and Netterm will find that the interface folds like a blind.
This is because the background line of code is too long. Please simplify the code. In addition, the Netterm user window itself will also have this problem if it is too narrow. That is a matter of the client.
4. The background of each row will be offset to varying degrees.
See the supplementary displacement above. One solution is to use forced positioning to display each line of the background. It should be noted here that although ANSI absolute positioning is used, it is still only valid within this line and will not be displayed in other lines. A typical example is The word on the right side of Guanghua’s main interface uses absolute positioning.
5. After modifying menu.ini, I found that some menus are no longer available.
Check the menu quickly. It may be that the reference to the lower-level menu is incorrect or there is something wrong with the lower-level menu itself.
The last thing you want to happen is that even the admin cannot enter. This is often because a certain block is missing the end character %. The most direct
The consequence is that all menus defined after this are unavailable, and worst of all, they cannot be simply modified.
You need to log in to the host and directly modify the menu.ini file.
ハミ
へ へ
Hello everyone, my name is Abing. The one on the right is a recent photo without a hat. Please click to enlarge. C O
っ
Source: Sun and Moon Guanghua bbs.fudan.edu.cn [FROM: 10.83.0.81]