回文章列表
作者tomin.bbs@cpu.tfcis.org (tomin) 看板: itoc
標題Re: [問題] 新版改ANSILINELEN
時間動力核心 (2007/05/03 Thu 00:38:52)
※ 引述《hpo14.bbs@ntust.org ( )》之銘言:
> ※ 引述《hpo14 (陽光下)》之銘言:
> > 使用版本 070120 PACK
> > struct.h
> > ! #define ANSILINELEN     500     /* Maximum Screen width in chars */
改成1000後 跟250差不多啊
ANSI長度超過1.5倍螢幕就會斷行(許多圖片的ANSI都做到3倍螢幕長了)

貼上、編輯、預覽 都是ok的
但是存檔後再看 就斷行了

再編輯 再看 也還是好的
> > struct.h::typedef struct screenline{}
> > typedef struct screenline
> >  {
> > !  int oldlen;                /* previous line length */
> > !  int len;                      /* current length of line */
>   !  uschar width;                 /* padding length of ANSI codes */
> > !  int smod;                  /* start of modified data */
> > !  int emod;                  /* end of modified data */
> > !  int sso;                   /* start of standout data */
> > !  int eso;                   /* end of standout data */
也都改int了
> >    uschar mode;                  /* status of line, as far as update */
> >    uschar data[ANSILINELEN];
> >  }          screenline;
> 新版還有哪邊要改嗎?
> 我試了好久,都一樣不行

--
=[:摃�◣�:Origin ]|[  Ocpu.tfcis.org  ]|[�搟說:]=
=[:摃�╱�:Author ]|[ tomin.dorm9.nccu.edu.tw  ]|[�:]=
文章選讀←離開[主題上]主題下(k)上篇(j)下篇S/a搜尋 G串列 TAB精華 ↑↓捲 Pg/Space翻