termux-notification - multiline doesn't work
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 4.3k
- Forks
- 920
- PR merge metrics
- No merged PRs in 30d
Description
Problem description
Termux notifications cuts the line and doesn't show strings that don't fit in a line. Using \n or piping to stdin as recommended here doesn't work either. In fact it looks like the piped value is ignored.
Steps to reproduce
ls $PREFIX | termux-notification --title 'Some folders'
Expected behavior
Wrap the strings that don't fit in a single line.
Additional information
Non-rooted device. Galaxy Note 8.
$ termux-info Updatable packages:
All packages up to date
Subscribed repositories:
https://dl.bintray.com/grimler/science-packages-21 science/stable
https://dl.bintray.com/grimler/game-packages-21 games/stable
https://termux.net stable/main
https://termux.net stable/main
System information:
Linux localhost 4.9.112-15119493 #2 SMP PREEMPT Thu May 30 19:02:31 KST 2019 aarch64 Android
Termux-packages arch:
aarch64
Android version:
9
Device manufacturer:
samsung
Device model:
SM-N960
The below image shows the of the above command results on my device.

Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the termux-notification command entry point and trace how piped stdin and newline-containing text are passed into the Android notification. Reproduce the issue with ls $PREFIX | termux-notification --title 'Some folders'; done means the notification displays the complete input with lines wrapped instead of cutting it off.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java, shell
- Domain
- cli, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100
