From da6b904ce90ec32e13812bedd7ad173379c92159 Mon Sep 17 00:00:00 2001 From: LangLangbart <92653266+LangLangBart@users.noreply.github.com> Date: Sun, 21 Jan 2024 19:02:07 +0100 Subject: [PATCH 1/2] feat: set raw color code --- gh-notify | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gh-notify b/gh-notify index 79ad40c..d34ef47 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" # disable exiting if the entire file can be displayed on the first screen + "-+X" # disable screen clearing prevention ) local output expected_key selected_line repo type num From 9cb6624598370a8607e3e924df4cc48d7a1f11ba Mon Sep 17 00:00:00 2001 From: LangLangbart <92653266+LangLangBart@users.noreply.github.com> Date: Sun, 21 Jan 2024 19:06:48 +0100 Subject: [PATCH 2/2] chore: replace disbale with reset in comment --- gh-notify | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gh-notify b/gh-notify index d34ef47..8252b3e 100755 --- a/gh-notify +++ b/gh-notify @@ -323,8 +323,8 @@ select_notif() { less_args=( "--clear-screen" # to be painted from the top line down "--RAW-CONTROL-CHARS" # Raw color codes in output (don't remove color codes) - "-+F" # disable exiting if the entire file can be displayed on the first screen - "-+X" # disable screen clearing prevention + "-+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