From bff62fa21fe8d7b2cd8e93dc54be3b07f8b89dfc Mon Sep 17 00:00:00 2001 From: Dmitry Ilvokhin Date: Sat, 5 Oct 2024 20:19:01 +0100 Subject: Make screenrc compatible with screen 5.0.0 version GNU Screen does not support colors specification as letters anymore. Here is relevant quote from manpage: > The old format of specifying colors by letters (k,r,g,y,b,m,c,w) is > now deprecated. And by deprecated they mean doesn't work anymore. Unfortunately, macOS ships screen version 4.00.03 and I couldn't figure out a way to have screenrc syntax to work on both 5.0 and 4.0 versions at the same time. One more problem is `screen --version` changed return code, so even code for checking if screen is installed at all doesn't work anymore. Need to figure out a proper way forward. For now I just installed screen version 5.0.0 from homebrew to fix macOS setup and at the same time make Linux machines happy as well. --- roles/dotfiles/tasks/main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'roles/dotfiles/tasks') 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 -- cgit v1.2.3-70-g09d2