Skip to content

[BUG]: Terminal resize causes repeated screen resets and flickering in Termux #889

Description

@ancientcatz

Describe the Bug

When using Flyline in Termux on Android, resizing the terminal causes the display to repeatedly reset and redraw, resulting in severe flickering.

The easiest way to reproduce this is by showing or hiding the Android soft keyboard, since Termux resizes the terminal automatically. However, the issue is not specific to the soft keyboard. Any terminal resize appears to trigger the same behavior.

The attached screen recording uses the soft keyboard only as a convenient way to demonstrate the problem.

Screenrecorder-2026-08-07-12-45-15-277.mp4

Expected behavior

A terminal resize should be handled as a normal resize event. Flyline should update its layout once as needed without repeatedly resetting the terminal or causing visible flickering.

Environment & Version Information

flyline 1.5.0
git hash: d437a50
build mode: release
build datetime: 2026-08-03T22:29:18Z
build target: aarch64-linux-android
rustc version: rustc 1.97.1 (8bab26f4f 2026-07-14)

Running in: Bash 5.3.15(1)-release
shell: /data/data/com.termux/files/usr/bin/bash

Running in: xterm-256color
program: unknown
program version: unknown
locale: en_US.UTF-8 (LC_ALL: unknown, LC_CTYPE: unknown)

Running in: Linux (kernel 4.19.157-perf-g79f9ecb73106 aarch64)
system linker: LLD 21.1.8 (compatible with GNU linkers)
dynamic linker: unknown

Running on: aarch64 architecture

Running in: a simulation

Debug Logs (Optional / If Necessary)

Full logs: paste.rs/xCjKz

Steps to Reproduce

  1. Enable Flyline in Termux.
  2. Trigger a terminal resize.
    • For example, show or hide the Android soft keyboard.
    • Any other action that changes the terminal dimensions produces the same result.
  3. Observe the display during and after the resize.
  4. Scroll through the terminal history to make the repeated redraws more noticeable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions