Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem running Frotz #2

Closed
dalb8 opened this issue Feb 5, 2016 · 3 comments
Closed

Problem running Frotz #2

dalb8 opened this issue Feb 5, 2016 · 3 comments

Comments

@dalb8
Copy link

dalb8 commented Feb 5, 2016

If I execute frotz Trinity.z4 I'm fine but if I launch it via a widget I get : "[Screen too narrow] [Hit any key to exit ]. I've tried setting the screen and script widths as Frotz options and zooming termux but nothing works.

Nexus 7 Android 6 Custom ROM.

@fornwall
Copy link
Member

fornwall commented Feb 7, 2016

Can you check if it starts working with a sleep 1 at the top of the script you launch with the widget?

This is probably a problem with the main Termux app, in that it does not give a correct terminal size to processes directly, but starts with a dummy 20x20 terminal and then updates the terminal size once layout has been done. Most "modern" terminal programs adjust to the terminal size at runtime, but frotz seem to be more stuck with the initial size.

@dalb8
Copy link
Author

dalb8 commented Feb 8, 2016

That doesn't work

-------- Message d'origine --------
De : Fredrik Fornwall notifications@github.com
Envoyé : 7 février 2016 23:38:26 GMT+00:00
À : termux/termux-widget termux-widget@noreply.github.com
Cc : dalb8 daithi_black@yahoo.ie
Objet : Re: [termux-widget] Problem running Frotz (#2)

Can you check if it starts working with a sleep 1 at the top of the script you launch with the widget?

This is probably a problem with the main Termux app, in that it does not give a correct terminal size to processes directly, but starts with a dummy 20x20 terminal and then updates the terminal size once layout has been done. Most "modern" terminal programs adjust to the terminal size at runtime, but frotz seem to be more stuck with the initial size.


Reply to this email directly or view it on GitHub:
#2 (comment)

@fornwall
Copy link
Member

fornwall commented Feb 9, 2016

This should be fixed by the v0.28 update of the main Termux app, which should be available as an update in the Play store or F-Droid shortly! Re-open this issue if the problem remains after updating Termux to 0.28.

shrihankp pushed a commit to reisxd/termux-app that referenced this issue Oct 20, 2022
This fixes termux/termux-widget#2, which
was caused by the terminal launching the terminal session process
before the terminal size was known.

Also remove the built JNI libraries from source control.
frikke pushed a commit to frikke/termux-app that referenced this issue Aug 20, 2023
This fixes termux/termux-widget#2, which
was caused by the terminal launching the terminal session process
before the terminal size was known.

Also remove the built JNI libraries from source control.
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

No branches or pull requests

2 participants