From 9a470d52dc70d8f03a2db249ed50d64d5d04516b Mon Sep 17 00:00:00 2001 From: LangLangBart <92653266+LangLangBart@users.noreply.github.com> Date: Sun, 21 Jan 2024 19:08:55 +0100 Subject: [PATCH] chore: use '--RAW-CONTROL-CHARS' in less (#75) --- gh-notify | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gh-notify b/gh-notify index 79ad40c..8252b3e 100755 --- a/gh-notify +++ b/gh-notify @@ -321,9 +321,10 @@ select_notif() { # less version 643, so only use the short version. # Ref: https://github.com/gwsw/less/issues/452 less_args=( - "--clear-screen" # to be painted from the top line down - "-+F" # disable exiting if the entire file can be displayed on the first screen - "-+X" # disable screen clearing prevention + "--clear-screen" # to be painted from the top line down + "--RAW-CONTROL-CHARS" # Raw color codes in output (don't remove color codes) + "-+F" # reset exiting if the entire file can be displayed on the first screen + "-+X" # reset screen clearing prevention ) local output expected_key selected_line repo type num