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

Sure blinking cursor works? #2138

Closed
angelog0 opened this issue Jun 19, 2021 · 6 comments
Closed

Sure blinking cursor works? #2138

angelog0 opened this issue Jun 19, 2021 · 6 comments

Comments

@angelog0
Copy link

angelog0 commented Jun 19, 2021

Here I have v. 0.114 and in the termux.properties I added terminal-cursor-blink-rate=600 and restarted Termux. The cursor blinks until the device goes to sleep; then it stops bilinking until the next Termux start. This happens both on device wit Android 8.1 and that with android 11...

@agnostic-apollo
Copy link
Member

agnostic-apollo commented Jun 20, 2021

Thanks, confirmed. Likely e119d34 broke this. I guess need to start it either on onResume or onEmulatorSet depending on if emulator is set, since onEmulator is not being called if device is woken with double tap and not power button.

@angelog0
Copy link
Author

It stops bilinking also doing this:

  • Start Termux (now the cursor bilinks)
  • Click the HOME button ans start another app, for example the browser
  • Now return to Termux: the cursor stopped bilinking

@agnostic-apollo
Copy link
Member

Thanks. I can't reproduce that on android 7 device and android 10 avd, but hopefully, cases like that should be fixed with the way I'm doing it now. I have fixed locally, will push soon.

@angelog0
Copy link
Author

Just for completeness...

@agnostic-apollo wrote:

I can't reproduce that on android 7 device [...]

That behavior happens on the device with android 11...

@Dalmater
Copy link

For me on Android 9 it only stops blinking when i have more then one session open and as soon as i close a session the cursor stops blinking, but it disappears if it is the first prompt and comes back without blinking on the next prompt

@agnostic-apollo
Copy link
Member

For me on Android 9 it only stops blinking when i have more then one session open and as soon as i close a session the cursor stops blinking, but it disappears if it is the first prompt and comes back without blinking on the next prompt

Can confirm this as well. Will look into it.

AdamMickiewich pushed a commit to VolyaTeam/dzida-app that referenced this issue Aug 8, 2022
…t again if termux activity is started after device display timeout with double tap and not power button.

Fixes termux#2138
shrihankp pushed a commit to reisxd/termux-app that referenced this issue Oct 20, 2022
…t again if termux activity is started after device display timeout with double tap and not power button.

Fixes termux#2138
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

3 participants