Fix macOS tmux terminfo issue with htop

This commit is contained in:
Kenneth Benzie 2022-12-10 23:22:55 +00:00
parent 6ff50854e0
commit 1ad397771d

View File

@ -14,28 +14,21 @@
failed_when: false failed_when: false
register: terminfo_exists register: terminfo_exists
- name: download latest terminal info descriptions - name: download latest terminfo description
when: terminfo_exists.rc == 1 when: terminfo_exists.rc == 1
get_url: get_url:
url: https://invisible-island.net/datafiles/current/terminfo.src.gz url: https://gist.githubusercontent.com/nicm/ea9cf3c93f22e0246ec858122d9abea1/raw/37ae29fc86e88b48dbc8a674478ad3e7a009f357/tmux-256color
dest: ~/terminfo.src.gz dest: ~/tmux-256color
- name: extract latest terminfo info descriptions
when: terminfo_exists.rc == 1
command: /usr/bin/gunzip ~/terminfo.src.gz
- name: compile terminal info - name: compile terminal info
when: terminfo_exists.rc == 1 when: terminfo_exists.rc == 1
command: /usr/bin/tic -xe tmux-256color ~/terminfo.src command: /usr/bin/tic -x ~/tmux-256color
- name: cleanup downloaded terminal info descriptions - name: cleanup downloaded terminfo description
when: terminfo_exists.rc == 1 when: terminfo_exists.rc == 1
file: file:
path: '{{item}}' path: ~/tmux-256color
state: absent state: absent
with_items:
- ~/temrinfo.src.gz
- ~/terminfo.src
- name: check terminal info description exists - name: check terminal info description exists
when: terminfo_exists.rc == 1 when: terminfo_exists.rc == 1