summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-04-19 17:48:53 +0200
committerSven Eden <yamakuzure@gmx.net>2018-08-24 16:47:08 +0200
commit15f9c17dd3ccf9dc21ceb795feb27a6b6dee1b1f (patch)
treeb65445fe5295a64278fd00efd0f0a1ea9b443091 /man
parent536b23f78a8668907e5e0f59f39c81126308eeee (diff)
terminal: add internal API to format URLs for display in capable terminals
Newer terminals (in particular gnome-terminal) understand special escape sequence for formatting clickable links. Let's support that to make our tool output more clickable where that's appropriate. For details see this: https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda The one big issue is that 'less' currently doesn't grok this, and doesn't ignore sequence like regular terminal implementations do if they don't support it. Hence for now, let's disable URL output if a pager is used. We should revisit that though as soon as less added support for it and enough time passed for it to enter various distributions.
Diffstat (limited to 'man')
-rw-r--r--man/elogind.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/man/elogind.xml b/man/elogind.xml
index 9fee8d105..6dce20386 100644
--- a/man/elogind.xml
+++ b/man/elogind.xml
@@ -948,6 +948,15 @@
</varlistentry>
<varlistentry>
+ <term><varname>$SYSTEMD_URLIFY</varname></term>
+
+ <listitem><para>The value must be a boolean. Controls whether clickable links should be generated in the output
+ for terminal emulators supporting this. This can be specified to override the decision that
+ <command>systemd</command> makes based on <varname>$TERM</varname> and other conditions.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
<term><varname>$LISTEN_PID</varname></term>
<term><varname>$LISTEN_FDS</varname></term>
<term><varname>$LISTEN_FDNAMES</varname></term>