Fix display issue with mode help.
This commit is contained in:
@@ -38,6 +38,6 @@ done
|
|||||||
header="Panel Mode Keybindings\n\nPress Control+Alt+Tab to enter panel mode, then use these shortcuts:\n\n"
|
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.")
|
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
|
exit 0
|
||||||
|
|||||||
@@ -40,6 +40,6 @@ done
|
|||||||
header="Ratpoison Mode Keybindings\n\nEnter ratpoison mode with your configured escape key, then use these shortcuts:\n\n"
|
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.")
|
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
|
exit 0
|
||||||
|
|||||||
@@ -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/>.
|
# 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%/*/*}"
|
configPath="${configPath%/*/*}"
|
||||||
|
|
||||||
if [[ -f "${configPath}/config" ]]; then
|
if [[ -f "${configPath}/config" ]]; then
|
||||||
@@ -37,6 +37,6 @@ for i in "${!helpText[@]}" ; do
|
|||||||
helpText[$i]="${helpText[$i]/, exec spd-say*/$'\n'}"
|
helpText[$i]="${helpText[$i]/, exec spd-say*/$'\n'}"
|
||||||
done
|
done
|
||||||
helpText+=("End of text. Please press Control+Home to jump to the beginning of this document.")
|
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
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user