[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>
This commit is contained in:
12
rc.c
12
rc.c
@@ -1,4 +1,4 @@
|
||||
/* $Id: rc.c,v 1.71 2002/12/14 15:24:04 ukai Exp $ */
|
||||
/* $Id: rc.c,v 1.72 2002/12/18 16:42:31 ukai Exp $ */
|
||||
/*
|
||||
* Initialization file etc.
|
||||
*/
|
||||
@@ -80,6 +80,7 @@ static char *config_file = NULL;
|
||||
#endif
|
||||
#define CMT_MULTICOL "<22>ե<EFBFBD><D5A5><EFBFBD><EFBFBD><EFBFBD>̾<EFBFBD>Υޥ<CEA5><DEA5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɽ<EFBFBD><C9BD>"
|
||||
#define CMT_ALT_ENTITY "<22><><EFBFBD><EFBFBD><EFBFBD>ƥ<EFBFBD><C6A5>ƥ<EFBFBD><C6A5><EFBFBD> ASCII <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɽ<EFBFBD><C9BD><EFBFBD><EFBFBD>ɽ<EFBFBD><C9BD>"
|
||||
#define CMT_GRAPHIC_CHAR "<22>ơ<EFBFBD><C6A1>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˥塼<CBA5><E5A1BC><EFBFBD>Ȥ<EFBFBD> graphic ʸ<><CAB8><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD>"
|
||||
#define CMT_FOLD_TEXTAREA "TEXTAREA <20>ιԤ<CEB9><D4A4>ޤ<EFBFBD><DEA4>֤<EFBFBD><D6A4><EFBFBD>ɽ<EFBFBD><C9BD>"
|
||||
#define CMT_DISP_INS_DEL "DEL, S, STRIKE <20><><EFBFBD>Ǥ<EFBFBD><C7A4><EFBFBD><EFBFBD>Ƥ<EFBFBD>ɽ<EFBFBD><C9BD><EFBFBD><EFBFBD><EFBFBD>롣"
|
||||
#define CMT_COLOR "<22><><EFBFBD>顼ɽ<E9A1BC><C9BD>"
|
||||
@@ -93,6 +94,7 @@ static char *config_file = NULL;
|
||||
#define CMT_C_COLOR "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><F2A4B5A4>Ƥ<EFBFBD><C6A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ο<F3A5AFA4>"
|
||||
#define CMT_VISITED_ANCHOR "ˬ<>줿<EFBFBD><ECA4BF><EFBFBD>Ȥ<EFBFBD><C8A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ͽ<F3A5AFA4><CFBF><EFBFBD><EFBFBD>Ѥ<EFBFBD><D1A4><EFBFBD>"
|
||||
#define CMT_V_COLOR "ˬ<>줿<EFBFBD><ECA4BF><EFBFBD>Ȥ<EFBFBD><C8A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ο<F3A5AFA4>"
|
||||
#define CMT_USE_PROXY "<22>ץ<EFBFBD><D7A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ѥ<EFBFBD><D1A4><EFBFBD>"
|
||||
#define CMT_HTTP_PROXY "HTTP<54>ץ<EFBFBD><D7A5><EFBFBD><EFBFBD><EFBFBD>(URL<52><4C><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)"
|
||||
#ifdef USE_SSL
|
||||
#define CMT_HTTPS_PROXY "HTTPS<50>ץ<EFBFBD><D7A5><EFBFBD><EFBFBD><EFBFBD>(URL<52><4C><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)"
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user