summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-03-10 12:06:35 +0000
committerMaxime Coste <mawww@kakoune.org>2017-03-10 12:06:35 +0000
commit564da076a6fa93ceedad1ff1c430de7a4e8919fa (patch)
treeb3bf819c50fbeb45cb21bef9f77f15a0afe91b58
parent3fb05ada86e5dc33d88d517beba0e28d289e542a (diff)
parent59b65bb9fbf287df2c1f528ebaefb2f4415ff901 (diff)
Merge remote-tracking branch 'lenormf/assistant-dilbert'
-rw-r--r--README.asciidoc2
-rw-r--r--doc/manpages/options.asciidoc2
-rw-r--r--src/ncurses_ui.cc14
3 files changed, 16 insertions, 2 deletions
diff --git a/README.asciidoc b/README.asciidoc
index 9a237083..26635dbb 100644
--- a/README.asciidoc
+++ b/README.asciidoc
@@ -978,7 +978,7 @@ Some options are built in Kakoune, and can be used to control it's behaviour:
- `ncurses_status_on_top`: if `yes`, or `true` the status line will be placed
at the top of the terminal rather than at the bottom.
- `ncurses_assistant`: specify the nice assistant you get in info boxes, can
- be 'clippy' (the default), 'cat' or 'none'
+ be 'clippy' (the default), 'cat', 'dilbert' or 'none'
- `ncurses_enable_mouse`: boolean option that enables mouse support
- `ncurses_change_colors`: boolean option that can disable color palette
changing if the terminfo enables it but the terminal does not support it.
diff --git a/doc/manpages/options.asciidoc b/doc/manpages/options.asciidoc
index 20fa5ce8..728a4d41 100644
--- a/doc/manpages/options.asciidoc
+++ b/doc/manpages/options.asciidoc
@@ -153,7 +153,7 @@ Builtin options
*ncurses_assistant*:::
specify the nice assistant you get in info boxes,
- can be *clippy* (the default), *cat* or *none*
+ can be *clippy* (the default), *cat*, *dilbert* or *none*
*ncurses_enable_mouse*:::
boolean option that enables mouse support
diff --git a/src/ncurses_ui.cc b/src/ncurses_ui.cc
index a6e0d31a..e33abd79 100644
--- a/src/ncurses_ui.cc
+++ b/src/ncurses_ui.cc
@@ -51,6 +51,18 @@ static constexpr StringView assistant_clippy[] =
" ╰───╯ ",
" " };
+static constexpr StringView assistant_dilbert[] =
+ { R"( დოოოოოდ )",
+ R"( | | )",
+ R"( | | ╭)",
+ R"( |-ᱛ ᱛ-| │)",
+ R"( Ͼ ∪ Ͽ │)",
+ R"( | | ╯)",
+ R"( ˏ`-.ŏ.-´ˎ )",
+ R"( @ )",
+ R"( @ )",
+ R"( )"};
+
static void set_attribute(WINDOW* window, int attribute, bool on)
{
if (on)
@@ -1010,6 +1022,8 @@ void NCursesUI::set_ui_options(const Options& options)
m_assistant = assistant_clippy;
else if (it->value == "cat")
m_assistant = assistant_cat;
+ else if (it->value == "dilbert")
+ m_assistant = assistant_dilbert;
else if (it->value == "none" or it->value == "off")
m_assistant = ConstArrayView<StringView>{};
}