Skip to content

Commit

Permalink
hotfix(main/termux-tools): fixed motd logo wrap (#11294)
Browse files Browse the repository at this point in the history
* hotfix(main/termux-tools): fixed motd logo wrap

Fixed motd logo being destroyed by text wrap when zoom-in.

* use \e instead of \033

Co-authored-by: Lucinda May Phipps <[email protected]>
  • Loading branch information
TermuxMonet and landfillbaby authored Jul 21, 2022
1 parent 078b053 commit 26e9f91
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions packages/termux-tools/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://termux.dev/
TERMUX_PKG_DESCRIPTION="Basic system tools for Termux"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.22
TERMUX_PKG_VERSION=1.23
TERMUX_PKG_SKIP_SRC_EXTRACT=true
TERMUX_PKG_PLATFORM_INDEPENDENT=true
TERMUX_PKG_ESSENTIAL=true
Expand Down Expand Up @@ -55,13 +55,13 @@ termux_step_make_install() {

{
echo 'echo ""'
echo 'echo -e " \033[47m \033[0m \e[1mWelcome to Termux!\e[0m"'
echo 'echo -e " \033[47m \033[0m \033[47m \033[0m"'
echo 'echo -e " \033[47m \033[0m \033[47m \033[0m \033[47m \033[0m \e[1mDocs:\e[0m \e[4mtermux.dev/docs\e[0m"'
echo 'echo -e " \033[47m \033[0m \033[47m \033[0m \033[47m \033[0m \e[1mGitter:\e[0m \e[4mgitter.im/termux/termux\e[0m"'
echo 'echo -e " \033[47m \033[0m \033[47m \033[0m \e[1mCommunity:\e[0m \e[4mtermux.dev/community\e[0m"'
echo 'echo -e " \033[47m \033[0m \033[47m \033[0m"'
echo 'echo -e " \033[47m \033[0m \e[1mTermux version:\e[0m ${TERMUX_VERSION-Unknown}"'
echo 'echo -e " \e[47m \e[0m \e[1mWelcome to Termux!\e[0m"'
echo 'echo -e " \e[47m \e[0m \e[0;37m\e[47m .\e[0m"'
echo 'echo -e " \e[47m \e[0m \e[47m \e[0m \e[47m \e[0m \e[1mDocs:\e[0m \e[4mtermux.dev/docs\e[0m"'
echo 'echo -e " \e[47m \e[0m \e[47m \e[0m \e[47m \e[0m \e[1mGitter:\e[0m \e[4mgitter.im/termux/termux\e[0m"'
echo 'echo -e " \e[47m \e[0m \e[47m \e[0m \e[1mCommunity:\e[0m \e[4mtermux.dev/community\e[0m"'
echo 'echo -e " \e[47m \e[0m \e[0;37m\e[47m .\e[0m"'
echo 'echo -e " \e[47m \e[0m \e[1mTermux version:\e[0m ${TERMUX_VERSION-Unknown}"'
echo 'echo ""'
echo 'echo -e " \e[1mWorking with packages:\e[0m"'
echo 'echo -e " \e[1mSearch:\e[0m pkg search <query>"'
Expand Down
2 changes: 1 addition & 1 deletion packages/termux-tools/login
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if tty >/dev/null 2>&1 && [ $# = 0 ] && [ ! -f ~/.hushlogin ] && [ -z "$TERMUX_H
if [ -f @TERMUX_PREFIX@/etc/motd.sh ]; then
# Dynamic motd is preferred over plain-text.
bash @TERMUX_PREFIX@/etc/motd.sh
elif [ -f @TERMUX_PREFIX@/etc/motd.sh ]; then
elif [ -f @TERMUX_PREFIX@/etc/motd ]; then
cat @TERMUX_PREFIX@/etc/motd
fi
else
Expand Down

0 comments on commit 26e9f91

Please sign in to comment.