aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Skec <skec@protonmail.ch>2021-03-07 18:48:51 +1100
committerFelix Queißner <felix@ib-queissner.de>2021-03-07 11:25:59 +0100
commit9b522bdd8cdd262e04b2fee0d5db7b7bbc8b3dd8 (patch)
tree3c3edf6cb19db9972f07390e891ee2b4b6da0ac4 /src
parent27236f6ef005674dd5799e277dd7843be3b39aac (diff)
downloadkristall-9b522bdd8cdd262e04b2fee0d5db7b7bbc8b3dd8.tar.gz
help.gemini: mention ANSI escapes
Diffstat (limited to 'src')
-rw-r--r--src/about/help.gemini5
-rw-r--r--src/dialogs/settingsdialog.cpp2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/about/help.gemini b/src/about/help.gemini
index 05780b7..753d634 100644
--- a/src/about/help.gemini
+++ b/src/about/help.gemini
@@ -151,6 +151,11 @@ This is a purely cosmetic feature that may aid in readability.
[Render emojis] allows you to toggle whether to render emojis using installed emoji fonts. Disabling this can help prevent text rendering issues due to emojis. Note that emojis are only supported in Kristall builds with Qt 5.13 or later.
+[ANSI Escape Sequences] determines the method of handling ANSI escape codes. This allows a document to alter some of the format (colour, etc) of text.
+* [Ignore] ignores ANSI sequences and leaves them in the text. This option will often create eyesores out of pages that have fancy ANSI art!
+* [Interpret (preformatted text only)] will allow Kristall to interpret ANSI escape sequences in *preformatted* text blocks.
+* [Strip] is a hybrid of the above. It strips ANSI sequences from the text, and displays the text normally, as if the escape sequences were not there.
+
[Max. Number of Redirections] is a setting that allows you to restrict sites to redirect you only a certain number of times before erroring out. Setting this to 0 will disable redirections completely, displaying an error with the target URL.
[Redirection Handling] allows you to fine-tune the way Kristall allows redirections. Each of the options defines if Kristall should ask you to allow the redirect or do it silently. [Ask for cross-scheme redirection] will pop up a message box if a host tries to redirect you from one URL scheme to another, e.g. when a web server redirects you from HTTP to HTTPS. [Ask for cross-host redirection] will pop up the message box for all redirections through host boundaries, e.g. when example.com redirects you to www.example.com. [Ask for cross-scheme or cross-host redirection] will enable both of the previous behaviours, asking when any cross-boundary redirection happens. [Ask for all redirections] will pop up a message box every time a server tries to redirect you, keeping you in full control over all redirections. [Silently redirect everything] is the exact oppositve of that, accepting all redirections without warning or notice.
diff --git a/src/dialogs/settingsdialog.cpp b/src/dialogs/settingsdialog.cpp
index 941b1d0..9a65efd 100644
--- a/src/dialogs/settingsdialog.cpp
+++ b/src/dialogs/settingsdialog.cpp
@@ -46,7 +46,7 @@ SettingsDialog::SettingsDialog(QWidget *parent) :
this->ui->ansi_escapes->clear();
this->ui->ansi_escapes->addItem(tr("Ignore"), QVariant::fromValue<int>(int(AnsiEscRenderMode::ignore)));
- this->ui->ansi_escapes->addItem(tr("Render"), QVariant::fromValue<int>(int(AnsiEscRenderMode::render)));
+ this->ui->ansi_escapes->addItem(tr("Interpret (preformatted text only)"), QVariant::fromValue<int>(int(AnsiEscRenderMode::render)));
this->ui->ansi_escapes->addItem(tr("Strip"), QVariant::fromValue<int>(int(AnsiEscRenderMode::strip)));
this->ui->list_symbol->clear();