Question: how to change border color of tables?
Unable to find a config option to change color of table borders. If there isn't, it would be nice to have one.
html tables? Not implemented yet, AFAIK.
@rkd77 Table borders are not visible with non-default config as elinks emits black foreground color \e[30m for table borders and black background color \e[40m. So it's black over black.
In the following video you can see how the table is hidden, and becomes visible only when terminal makes background colors transparent. First the contents of file:
<table width="100%" border="1" cellspacing="5" class="calibre7">
<colgroup class="calibre20">
<col width="550" class="calibre9"/>
</colgroup>
<tbody class="calibre10">
<tr class="calibre11">
<td class="calibre21"></td>
</tr>
</tbody>
</table>
https://github.com/rkd77/elinks/assets/25681815/66716c13-d2eb-48df-9ef4-dd41683e4a0a
Ah, foreground and background colors being same can be fixed with set document.colors.ensure_contrast = 1. For now I have done that to be able to see table borders. Though not sure where it is getting the black color from. Here's a minimal conf file that shows black is being emitted for table border, even though there is no option for it.
Open test.html from above comment with command TERM=tmux-256color elinks test.html.
elinks.conf:
## document.colors
# Default document color settings.
## document.colors.text <color|#rrggbb>
# Default text color.
set document.colors.text = "gray75"
## document.colors.background <color|#rrggbb>
# Default background color.
set document.colors.background = "black"
## document.colors.link <color|#rrggbb>
# Default link color.
set document.colors.link = "brown"
## document.colors.vlink <color|#rrggbb>
# Default visited link color.
set document.colors.vlink = "brown"
## document.colors.image <color|#rrggbb>
# Default image link color.
set document.colors.image = "brown"
## document.colors.bookmark <color|#rrggbb>
# Default bookmarked link color.
set document.colors.bookmark = "hotpink"
## document.colors.dirs <color|#rrggbb>
# Default directory color.
#
# See document.browse.links.color_dirs option.
set document.colors.dirs = "yellow"
## document.colors.use_link_number_color [0|1]
# Whether to use link number color even when colors specified by the
# document are used.
set document.colors.use_link_number_color = 0
## document.colors.link_number <color|#rrggbb>
# Default link number color.
set document.colors.link_number = "green"
## document.colors.increase_contrast [0|1]
# Increase the contrast between the foreground and background colors to
# ensure readability. For example it disallows dark colors on a black
# background. Note, this is different from ensuring the contrast with the
# ensure_contrast option.
set document.colors.increase_contrast = 0
## document.colors.ensure_contrast [0|1]
# Makes sure that the back- and foreground colors are never equal.
set document.colors.ensure_contrast = 0
## document.colors.use_document_colors <num>
# Use colors specified in document:
# 0 is use always the default settings
# 1 is use document colors if available, except background
# 2 is use document colors, including background. This can
# mostly look very impressive, but some sites will appear
# really ugly. Note, that obviously if the background is
# not black, it will break the behaviour of transparency.
set document.colors.use_document_colors = 0
## terminal.tmux-256color
# Options specific to this terminal type (according to $TERM value).
## terminal.tmux-256color.charset <codepage>
set terminal.tmux-256color.charset = "System"
## terminal.tmux-256color.underline [0|1]
set terminal.tmux-256color.underline = 1
## terminal.tmux-256color.italic [0|1]
set terminal.tmux-256color.italic = 1
## terminal.tmux-256color.transparency [0|1]
set terminal.tmux-256color.transparency = 0
## terminal.tmux-256color.colors <num>
set terminal.tmux-256color.colors = 1
## terminal.tmux-256color.block_cursor [0|1]
set terminal.tmux-256color.block_cursor = 0
## terminal.tmux-256color.restrict_852 [0|1]
set terminal.tmux-256color.restrict_852 = 0
## terminal.tmux-256color.utf_8_io [0|1]
set terminal.tmux-256color.utf_8_io = 0
## terminal.tmux-256color.m11_hack [0|1]
set terminal.tmux-256color.m11_hack = 0
## terminal.tmux-256color.latin1_title [0|1]
set terminal.tmux-256color.latin1_title = 1
## terminal.tmux-256color.type <num>
set terminal.tmux-256color.type = 0