- 主题:process_control_chars
彩色代码是用啥软件弄得?
【 在 Dog@bbs.tongji.edu.cn-SPAM.no ( 乐 逍 遥 | 多晒太阳) 的大作中提到: 】
: 看了两遍不懂,郁闷地继续看ing
: 无注解
: 变量都是一字母的
: ...................
--
FROM 159.226.158.*
? 那里配置? 我的vim 怎么就是黑白的ascii。。
debian 4.0
【 在 Dog@bbs.tongji.edu.cn-SPAM.no ( 乐 逍 遥 | 多晒太阳) 的大作中提到: 】
: 宇宙超级无敌的vim,不是专门弄彩色用的,是个*nix下的文本编辑软件
--
FROM 159.226.158.*
终端可以看到彩色
但是用fterm ssh 或者telnet到主机后看不到彩色
看到是这样的东东:
int check_readonly(char *checked)
{ /* Leeward 98.03.28 */
if (checkreadonly(checked)) { /* Checking if DIR access mode is "555"
*/
if (!strcmp(currboard->filename,checked)) {
move(0, 0);
clrtobot();
move(8, 0);
prints(" "); /* 40 spaces */
move(8, (80 - (24 + strlen(checked))) / 2); /* Set text in center */
prints("\033[1m\033[33m很抱歉:\033[31m%s 版目前是只读模式\033[33m\nn
\n 您不能在该版发表或者修改文章\033[m\n", checked);
pressreturn();
clear();
}
return true;
} else
return false;
例如printf 后面的明显应该是彩色的
用 putty telnet上去後倒是能vim看到彩色。。。 可是copy出来就是黑白的了
【 在 Debian@bbs.tongji.edu.cn-SPAM.no (etch) 的大作中提到: 】
: 用fterm先ssh到主机,然后彩色复制彩色粘帖到bbs就可以了
--
FROM 159.226.158.*
en,Thx, 吃饱了果然一下就弄好了,哈
*/
/* 所有 的注释 由 Alex&Sissi 添加 , alex@mars.net.edu.cn */
#include "bbs.h"
#include "read.h"
#include "md5.h"
/*#include "../SMTH2000/cache/cache.h"*/
int scrint = 0;
int local_article = 0; //0:转信版面默认转信,1:非转信版面,2:转信版面默认不转信
- atppp
int readpost;
int helpmode = 0;
struct boardheader* currboard=NULL;
int currboardent;
char currBM[BM_LEN - 1];
int check_upload = 0; //发表文章时是否要检查添加附件
int Anony;
char genbuf[1024];
【 在 Dog@bbs.tongji.edu.cn-SPAM.no ( 乐 逍 遥 | 多晒太阳) 的大作中提到: 】
: fterm键盘设成XTERM,终端设成xterm-color
--
FROM 159.226.158.*