看板 mud_sanc 關於我們 聯絡資訊
某程式段 write(to_chinese("devil")+"\n"); write(COLOR_D->msg_remove_ansi(to_chinese("devil"))+"\n"); write(COLOR_D->msg_remove_ansi(to_chinese("devil"))[0..1]+"\n"); 執行結果 魔人 魔人 問題1.要怎樣才能去除文字中的顏色檔.. 問題2.我要做一個東東...給一個詞,只能顯示一個中文字(包涵原顏色的) -- ║☆█ █☆║ ║☆█ 克 迷 倫  █☆║ ║☆█ (Kemilen Town0m) █☆║ ║☆█▃▃▃▃▃▃▃▃▃▃█☆║ ║☆█◤ ◥█☆║ ║☆◤ ◥☆║ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.129.136.77
laechan :remove 顏色可以自己寫, "*[1;37m"-> "", substr 08/28 18:14
justinj :沒法子....因為*那個打不出來所以無法替換.... 08/28 19:30
hlead :打的出來的 只是顯示無法看到而已... 08/28 19:40
hlead :可是實際上是有的... 08/28 19:41
justinj :有空來試試這種可不可以..substr(t,HIW,"");... 08/28 21:57