Fix display issue with mode help.

This commit is contained in:
Storm Dragon
2025-12-07 01:55:52 -05:00
parent e1d6b71121
commit b964f1566a
3 changed files with 4 additions and 4 deletions

View File

@@ -38,6 +38,6 @@ done
header="Panel Mode Keybindings\n\nPress Control+Alt+Tab to enter panel mode, then use these shortcuts:\n\n"
helpText=("$header" "${helpText[@]}" "End of panel mode help. Press Control+Home to jump to the beginning.")
echo "${helpText[@]}" | yad --text-info --show-cursor --title "I38 - Panel Mode Help" --button "Close:0" --listen
echo -e "${helpText[@]}" | yad --text-info --show-cursor --title "I38 - Panel Mode Help" --button "Close:0" --listen
exit 0

View File

@@ -40,6 +40,6 @@ done
header="Ratpoison Mode Keybindings\n\nEnter ratpoison mode with your configured escape key, then use these shortcuts:\n\n"
helpText=("$header" "${helpText[@]}" "End of ratpoison mode help. Press Control+Home to jump to the beginning.")
echo "${helpText[@]}" | yad --text-info --show-cursor --title "I38 - Ratpoison Mode Help" --button "Close:0" --listen
echo -e "${helpText[@]}" | yad --text-info --show-cursor --title "I38 - Ratpoison Mode Help" --button "Close:0" --listen
exit 0

View File

@@ -11,7 +11,7 @@
# You should have received a copy of the GNU General Public License along with I38. If not, see <https://www.gnu.org/licenses/>.
configPath="$(readlink -f $0)"
configPath="$(readlink -f "$0")"
configPath="${configPath%/*/*}"
if [[ -f "${configPath}/config" ]]; then
@@ -37,6 +37,6 @@ for i in "${!helpText[@]}" ; do
helpText[$i]="${helpText[$i]/, exec spd-say*/$'\n'}"
done
helpText+=("End of text. Please press Control+Home to jump to the beginning of this document.")
echo "${helpText[@]}" | yad --text-info --show-cursor --title "I38 help" --button "Close:0" --listen
echo -e "${helpText[@]}" | yad --text-info --show-cursor --title "I38 help" --button "Close:0" --listen
exit 0