ELinks 0.18.0
ftp_dir_html_format Struct Reference

How to format an FTP directory listing in HTML. More...

Data Fields

int libc_codepage
 Codepage used by C library functions such as strftime().
int colorize_dir
 Nonzero if directories should be displayed in a different color.
char dircolor [8]
 The color of directories, in "#rrggbb" format.

Detailed Description

How to format an FTP directory listing in HTML.

Field Documentation

◆ colorize_dir

int ftp_dir_html_format::colorize_dir

Nonzero if directories should be displayed in a different color.

From the document.browse.links.color_dirs option.

◆ dircolor

char ftp_dir_html_format::dircolor[8]

The color of directories, in "#rrggbb" format.

This is initialized and used only if colorize_dir is nonzero.

◆ libc_codepage

int ftp_dir_html_format::libc_codepage

Codepage used by C library functions such as strftime().

If the FTP server sends non-ASCII bytes in file names or such, ELinks normally passes them straight through to the generated HTML, which will eventually be parsed using the codepage specified in the document.codepage.assume option. However, when ELinks itself generates strings with strftime(), it turns non-ASCII bytes into entity references based on libc_codepage, to make sure they become the right characters again.


The documentation for this struct was generated from the following file: