summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--misc/dotfiles/screenrc.j28
-rw-r--r--roles/dotfiles/tasks/main.yml3
2 files changed, 5 insertions, 6 deletions
diff --git a/misc/dotfiles/screenrc.j2 b/misc/dotfiles/screenrc.j2
index acc934a..f7c9c07 100644
--- a/misc/dotfiles/screenrc.j2
+++ b/misc/dotfiles/screenrc.j2
@@ -19,18 +19,18 @@ term xterm
altscreen on
# Always display windows captions with the following format.
-# %{Wb}: bright white letters on blue background.
+# %{255;4}: bright white letters on blue background.
# %H: hostname of the system.
# %c: current time HH:MM in 24h format.
-# %{wk}: white letter on black background.
+# %{7;0}: white letter on black background.
# %-w: all window numbers and names up to the current window.
-# %{kw}: black letters on white background.
+# %{0;7}: black letters on white background.
# [%n %t]: window number and window title.
# %{-}: restores the attributes and colors that were set before the last change
# was made.
# %+w: all window numbers and names starting with the window after the current
# one.
-caption always "%{Wb} %H - %c %{wk} %-w%{kw}[%n %t]%{-}%+w"
+caption always "%{255;4} %H - %c %{7;0} %-w%{0;7w}[%n %t]%{-}%+w"
# Enable visual bell.
vbell off
diff --git a/roles/dotfiles/tasks/main.yml b/roles/dotfiles/tasks/main.yml
index f34335f..36445e2 100644
--- a/roles/dotfiles/tasks/main.yml
+++ b/roles/dotfiles/tasks/main.yml
@@ -53,8 +53,7 @@
ansible.builtin.template:
src: misc/dotfiles/screenrc.j2
dest: ~{{ user }}/.screenrc
- # For some reason screen's exit status is 1 for --version.
- when: has_screen.rc == 1
+ when: has_screen.rc == 0
- name: Configure ssh if installed
tags: ssh