这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@TermuxMonet
Copy link
Contributor

@TermuxMonet TermuxMonet commented Jul 20, 2022

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

Screenshot_20220720-105014_Termux

Solution explanation:
#11250 (comment)

Bug report:
#11250 (comment)

Also fixed regular motd display when dynamic motd is missing (bug found in 9678f88)

@TermuxMonet
Copy link
Contributor Author

Please anyone merge this asap, there's fixes for bugs on two merged PRs related to termux tools

DevMoxxie and others added 2 commits July 21, 2022 00:52
Fixed motd logo being destroyed by text wrap when zoom-in.
@landfillbaby landfillbaby merged commit 26e9f91 into termux:master Jul 21, 2022
@agnostic-apollo
Copy link
Member

How does adding a dot prevent word wrap? Whether there is a dot or space in a cell, doesn't affect other cells. Motd will get broken on small devices or people who zoom to around 50 char width.

And why are pull requests being submitted (and merged) without testing, specially one for a fix?

Also @landfillbaby, I know you have been away, but please follow (the new) commit messages format. Thanks :)

motd

@TermuxMonet
Copy link
Contributor Author

TermuxMonet commented Jul 21, 2022

How does adding a dot prevent word wrap? Whether there is a dot or space in a cell, doesn't affect other cells. Motd will get broken on small devices or people who zoom to around 50 char width.

And why are pull requests being submitted (and merged) without testing, specially one for a fix?

Also @landfillbaby, I know you have been away, but please follow (the new) commit messages format. Thanks :)

The wrap can't be avoided, that's impossible
but when zoom in and zoom out, the logo was getting destroyed. for some reason, the text wrap does remove lines considered empty
Screenshot_20220721-110817_Termux

with this hotfix, it doesn't get destroyed.

that's what was reported on this comment
#11250 (comment)

agnostic-apollo added a commit to termux/termux-tools that referenced this pull request Aug 13, 2022
- The logo added in new dynamic motd would break due to word wrap if terminal columns were less than max line length. This fixes the issue by not drawing a logo if terminal columns are too few at draw time. Note that logo will still break if terminal size is changed after drawing.

- Use TERMUX_APP_PACKAGE_MANAGER instead of TERMUX_MAIN_PACKAGE_FORMAT

- Add donate link instead of gitter which should already exist in community link, including matrix rooms link.

Related pull requests termux/termux-packages#11250 and termux/termux-packages#11294
agnostic-apollo added a commit to termux/termux-tools that referenced this pull request Aug 15, 2022
- The logo added in new dynamic motd would break due to word wrap if terminal columns were less than max line length. This fixes the issue by not drawing a logo if terminal columns are too few at draw time. Note that logo will still break if terminal size is changed after drawing.

- Use TERMUX_APP_PACKAGE_MANAGER instead of TERMUX_MAIN_PACKAGE_FORMAT

- Add donate link instead of gitter which should already exist in community link, including matrix rooms link.

Related pull requests termux/termux-packages#11250 and termux/termux-packages#11294
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants