有没有办法改变 w3m 的颜色主题?

Zen*_*Zen 5 w3m

最近我在我的 .bashrc 中做了一些事情,这样我就可以在不打开浏览器的情况下用我的 bash 轻松地在线查询生词。

我选择w3m作为我的代理实用程序,问题是,它的默认颜色主题在我们的黑色背景终端下似乎不可读。我可以使用它的-M选项使其更具可读性。

但我仍然想知道,有没有办法改变它的颜色集,可能在一些配置文件中我可以改变一些参数来做到这一点?

PS:我在 OSX 上使用 iterm2。

我这个词查询的别名是:

function dee {w3m"http://www.oxfordlearnersdictionaries.com/definition/american_english/$1"; } 
export -f dee
Run Code Online (Sandbox Code Playgroud)

因此,您可以dee stack在将上述内容放入 bashrc 后使用 来搜索堆栈的定义。

fre*_*ini 3

来自w3m 常见问题解答

w3m 以黑色背景上的黑色字符开头。我该如何改变这个?

When compiled with colour support, w3m assumes a white background and therefore displays black characters.
You may either change the background colour of your terminal (e.g. with the -bg option in a xterm) or take these steps:

    invoke w3m with 'w3m -M' (for monochrome),
    type 'o' for getting to the options screen
    Mark 'Display with colour' as ON and choose an arbitrary colour. Click on [OK].
Run Code Online (Sandbox Code Playgroud)

如何更改锚点/图像/表单链接的颜色?

Type 'o' within w3m to get the 'options' screen. You can change these settings there.
Run Code Online (Sandbox Code Playgroud)