commit 9a598a8a2a46dd4783b07413de0c92a1b444ee12
parent f849dc1dfdb0edca5ebccfa723e0e56648da9efc
Author: ukai <ukai>
Date: Wed, 18 Dec 2002 16:42:30 +0000
[w3m-dev 03582] add config options graphic_char and use_proxy
* NEWS: rc: graphic_char, use_proxy
* fm.h (Do_no_use_proxy): macro using use_proxy
(use_proxy): added
(no_graphic_char): deleted
(UseGraphicChar): added
* main.c (main): UseGraphicChar, use_proxy
* rc.c (CMT_GRAPHIC_CHAR): added
(CMT_USE_PROXY): added
(params1): graphic_char
(params4): use_proxy
* terms.c (graph_ok): UseGraphicChar
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat:
6 files changed, 33 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,5 +1,20 @@
2002-12-19 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
+ * [w3m-dev 03582] add config options graphic_char and use_proxy
+ * NEWS: rc: graphic_char, use_proxy
+ * fm.h (Do_no_use_proxy): macro using use_proxy
+ (use_proxy): added
+ (no_graphic_char): deleted
+ (UseGraphicChar): added
+ * main.c (main): UseGraphicChar, use_proxy
+ * rc.c (CMT_GRAPHIC_CHAR): added
+ (CMT_USE_PROXY): added
+ (params1): graphic_char
+ (params4): use_proxy
+ * terms.c (graph_ok): UseGraphicChar
+
+2002-12-19 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
+
* [w3m-dev 03581] MARK_URL, MARK_WORD
* main.c (chkWORD): accept ()[]{}&|;*?$ as anchor
diff --git a/NEWS b/NEWS
@@ -1,5 +1,7 @@
w3m 0.3.3 or 0.4?
+* rc: graphic_char
+* rc: use_proxy
* rc: preserve_timestamp
* func: REDO, UNDO
* func: LIST, LIST_MENU, MOVE_LIST_MENU
diff --git a/fm.h b/fm.h
@@ -813,7 +813,8 @@ extern int ai_family_order_table[3][3]; /* XXX */
#endif /* INET6 */
global TextList *NO_proxy_domains;
global char NoCache init(FALSE);
-global int Do_not_use_proxy init(FALSE);
+global char use_proxy init(TRUE);
+#define Do_not_use_proxy (!use_proxy)
global int Do_not_use_ti_te init(FALSE);
global char *document_root init(NULL);
@@ -1005,7 +1006,7 @@ global char UseAutoDetect init(TRUE);
#define url_quote_conv(x,c) url_quote(x)
#endif /* JP_CHARSET */
#ifndef KANJI_SYMBOLS
-global int no_graphic_char init(FALSE);
+global char UseGraphicChar init(TRUE);
extern char alt_rule[];
#endif /* not KANJI_SYMBOLS */
extern char UseAltEntity;
diff --git a/main.c b/main.c
@@ -511,7 +511,7 @@ main(int argc, char **argv, char **envp)
#endif /* JP_CHARSET */
#ifndef KANJI_SYMBOLS
else if (!strcmp("-no-graph", argv[i]))
- no_graphic_char = TRUE;
+ UseGraphicChar = FALSE;
#endif /* not KANJI_SYMBOLS */
else if (!strcmp("-T", argv[i])) {
if (++i >= argc)
@@ -610,7 +610,7 @@ main(int argc, char **argv, char **envp)
else if (!strcmp("-num", argv[i]))
showLineNum = TRUE;
else if (!strcmp("-no-proxy", argv[i]))
- Do_not_use_proxy = TRUE;
+ use_proxy = FALSE;
else if (!strcmp("-post", argv[i])) {
if (++i >= argc)
usage();
diff --git a/rc.c b/rc.c
@@ -80,6 +80,7 @@ static char *config_file = NULL;
#endif
#define CMT_MULTICOL "ファイル名のマルチカラム表示"
#define CMT_ALT_ENTITY "エンティティを ASCII の代替表現で表す"
+#define CMT_GRAPHIC_CHAR "テーブルやメニューの枠に graphic 文字を使う"
#define CMT_FOLD_TEXTAREA "TEXTAREA の行を折り返して表示"
#define CMT_DISP_INS_DEL "DEL, S, STRIKE 要素の内容を表示する。"
#define CMT_COLOR "カラー表示"
@@ -93,6 +94,7 @@ static char *config_file = NULL;
#define CMT_C_COLOR "現在選択されているリンクの色"
#define CMT_VISITED_ANCHOR "訪れたことがあるリンクは色を変える"
#define CMT_V_COLOR "訪れたことがあるリンクの色"
+#define CMT_USE_PROXY "プロキシを使用する"
#define CMT_HTTP_PROXY "HTTPプロキシ(URLで入力)"
#ifdef USE_SSL
#define CMT_HTTPS_PROXY "HTTPSプロキシ(URLで入力)"
@@ -236,6 +238,7 @@ static char *config_file = NULL;
#endif
#define CMT_MULTICOL "Display file names in multi-column format"
#define CMT_ALT_ENTITY "Use ASCII equivalents to display entities"
+#define CMT_GRAPHIC_CHAR "Use graphic char for border of table and menu"
#define CMT_FOLD_TEXTAREA "Fold lines in TEXTAREA"
#define CMT_DISP_INS_DEL "Display DEL, S and STRIKE element"
#define CMT_COLOR "Display with color"
@@ -249,6 +252,7 @@ static char *config_file = NULL;
#define CMT_V_COLOR "Color of visited link"
#define CMT_BG_COLOR "Color of background"
#define CMT_MARK_COLOR "Color of mark"
+#define CMT_USE_PROXY "Use proxy"
#define CMT_HTTP_PROXY "URL of HTTP proxy host"
#ifdef USE_SSL
#define CMT_HTTPS_PROXY "URL of HTTPS proxy host"
@@ -526,6 +530,10 @@ struct param_ptr params1[] = {
{"multicol", P_INT, PI_ONOFF, (void *)&multicolList, CMT_MULTICOL, NULL},
{"alt_entity", P_CHARINT, PI_ONOFF, (void *)&UseAltEntity, CMT_ALT_ENTITY,
NULL},
+#ifndef KANJI_SYMBOLS
+ {"graphic_char", P_CHARINT, PI_ONOFF, (void *)&UseGraphicChar,
+ CMT_GRAPHIC_CHAR, NULL},
+#endif
{"fold_textarea", P_CHARINT, PI_ONOFF, (void *)&FoldTextarea,
CMT_FOLD_TEXTAREA, NULL},
{"display_ins_del", P_INT, PI_ONOFF, (void *)&displayInsDel,
@@ -650,6 +658,8 @@ struct param_ptr params3[] = {
};
struct param_ptr params4[] = {
+ {"use_proxy", P_CHARINT, PI_ONOFF, (void *)&use_proxy, CMT_USE_PROXY,
+ NULL},
{"http_proxy", P_STRING, PI_TEXT, (void *)&HTTP_proxy, CMT_HTTP_PROXY,
NULL},
#ifdef USE_SSL
diff --git a/terms.c b/terms.c
@@ -1204,7 +1204,7 @@ int
graph_ok(void)
{
#ifndef KANJI_SYMBOLS
- if (no_graphic_char)
+ if (!UseGraphicChar)
return 0;
#endif /* not KANJI_SYMBOLS */
return T_as[0] != 0 && T_ae[0] != 0 && T_ac[0] != 0;