You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
STDIN is always corrupted in com.termux.nix/files/home/.nix-profile/bin/pwsh, and solely when Start-Transcript is active, in org.kde.konsole.flatpakref. #16746
changed the title [-]Corruption of textual presentation during utilisation of '/usr/bin/env /usr/bin/flatpak-spawn --host /usr/bin/env /usr/bin/pwsh -NOEXIT -COMMAND 'START-TRANSCRIPT -APPEND -NOCLOBBER -INCLUDEINVOCATIONHEADER'' after invocation by '/usr/bin/flatpak'.[/-][+]Corruption of textual presentation during utilisation of '/usr/bin/env /usr/bin/flatpak-spawn --host /usr/bin/env /usr/bin/pwsh'' after invocation by '/usr/bin/flatpak'.[/+]on Jan 13, 2022
changed the title [-]Corruption of textual presentation during utilisation of '/usr/bin/env /usr/bin/flatpak-spawn --host /usr/bin/env /usr/bin/pwsh'' after invocation by '/usr/bin/flatpak'.[/-][+]Corruption of textual presentation during utilisation the consequence of invocation of ''/usr/bin/env' '/usr/bin/flatpak-spawn' --host '/usr/bin/env' '/usr/bin/pwsh' -noexit -command 'start-transcript -append -noclobber -includeinvocationheader'' after invocation by the consequence of compilation of 'http://src.fedoraproject.org/rpms/flatpak'.[/+]on Mar 4, 2022
changed the title [-]Corruption of textual presentation during utilisation the consequence of invocation of ''/usr/bin/env' '/usr/bin/flatpak-spawn' --host '/usr/bin/env' '/usr/bin/pwsh' -noexit -command 'start-transcript -append -noclobber -includeinvocationheader'' after invocation by the consequence of compilation of 'http://src.fedoraproject.org/rpms/flatpak'.[/-][+]Corruption of textual presentation during utilisation of the consequence of compilation of "http://github.com/powershell/powershell".[/+]on Mar 24, 2022
changed the title [-]Corruption of text display in terminal after invoking `Start-Transcript`.[/-][+]`STDIN` is corrupted when `Start-Transcript` is active.[/+]on Feb 4, 2025
changed the title [-]`STDIN` is corrupted when `Start-Transcript` is active.[/-][+]`STDIN` is corrupted when `Start-Transcript` is active, in `org.kde.konsole.flatpakref` and `com.termux.nix/files/home/.nix-profile/bin/pwsh`.[/+]on Feb 15, 2026
changed the title [-]`STDIN` is corrupted when `Start-Transcript` is active, in `org.kde.konsole.flatpakref` and `com.termux.nix/files/home/.nix-profile/bin/pwsh`.[/-][+]`STDIN` is always corrupted in `com.termux.nix/files/home/.nix-profile/bin/pwsh`, and solely when `Start-Transcript` is active, in `org.kde.konsole.flatpakref`.[/+]on Feb 17, 2026
I guess flatpak hides real terminal and C# application thinks it work with file/stream. You could try flatpak-spawn --host script -q /dev/null -c "pwsh" where script creates real PTY for application.
RokeJulianLockhart@Beedell:~$ flatpak-spawn --host script -q /dev/null -c "pwsh"Portal call failed: Failed to start command: Failed to execute child process “script” (No such file or directory)RokeJulianLockhart@Beedell:~$ scriptbash: script: command not found...Install package 'util-linux-script' to provide command 'script'? [N/y] y * Waiting in queue... * Loading list of packages.... The following packages have to be installed: util-linux-script-2.41.3-7.fc43.x86_64 Utilities for creating and replaying typescripts of terminal sessionProceed with changes? [N/y] y * Waiting in queue... * Waiting for authentication... * Waiting in queue... * Downloading packages... * Requesting data... * Testing changes... * Installing packages... Script started, output log file is 'typescript'.RokeJulianLockhart@Beedell:~$ exitexitScript done.RokeJulianLockhart@Beedell:~$ flatpak-spawn --host script -q /dev/null -c "pwsh"PowerShell 7.5.4PS /home/RokeJulianLockhart> exitexitexitexit
Activity
[-]Corruption of textual presentation during utilisation of '/usr/bin/env /usr/bin/flatpak-spawn --host /usr/bin/env /usr/bin/pwsh -NOEXIT -COMMAND 'START-TRANSCRIPT -APPEND -NOCLOBBER -INCLUDEINVOCATIONHEADER'' after invocation by '/usr/bin/flatpak'.[/-][+]Corruption of textual presentation during utilisation of '/usr/bin/env /usr/bin/flatpak-spawn --host /usr/bin/env /usr/bin/pwsh'' after invocation by '/usr/bin/flatpak'.[/+]beedell-roke commentedon Jan 13, 2022
rkeithhill commentedon Jan 20, 2022
@BEEDELLROKEJULIANLOCKHART What is your
$env:TERMset to?beedell-roke commentedon Jan 29, 2022
Keith Hill (@rkeithhill), it's
xterm-256color. Apologies for the wait.rkeithhill commentedon Feb 4, 2022
Thanks. Just wanted to make sure it wasn't set to an unexpected value which has caused issues with echoing.
[-]Corruption of textual presentation during utilisation of '/usr/bin/env /usr/bin/flatpak-spawn --host /usr/bin/env /usr/bin/pwsh'' after invocation by '/usr/bin/flatpak'.[/-][+]Corruption of textual presentation during utilisation the consequence of invocation of ''/usr/bin/env' '/usr/bin/flatpak-spawn' --host '/usr/bin/env' '/usr/bin/pwsh' -noexit -command 'start-transcript -append -noclobber -includeinvocationheader'' after invocation by the consequence of compilation of 'http://src.fedoraproject.org/rpms/flatpak'.[/+]beedell-roke commentedon Mar 24, 2022
Keith Hill (@rkeithhill), this problem is probably caused by PowerShell, because using
file://localhost/data/data/com.termux.nix/files/home/.nix-profile/bin/pwsh1 viaf-droid.org/repo/com.termux_118.apk2 causes the same problem.Footnotes
search.nixos.org/packages?channel=21.11&show=powershell&from=0&size=50&sort=relevance&type=packages&query=powershell↩f-droid.org/packages/com.termux↩[-]Corruption of textual presentation during utilisation the consequence of invocation of ''/usr/bin/env' '/usr/bin/flatpak-spawn' --host '/usr/bin/env' '/usr/bin/pwsh' -noexit -command 'start-transcript -append -noclobber -includeinvocationheader'' after invocation by the consequence of compilation of 'http://src.fedoraproject.org/rpms/flatpak'.[/-][+]Corruption of textual presentation during utilisation of the consequence of compilation of "http://github.com/powershell/powershell".[/+]4 remaining items
beedell-roke commentedon Feb 4, 2025
[-]Corruption of text display in terminal after invoking `Start-Transcript`.[/-][+]`STDIN` is corrupted when `Start-Transcript` is active.[/+][-]`STDIN` is corrupted when `Start-Transcript` is active.[/-][+]`STDIN` is corrupted when `Start-Transcript` is active, in `org.kde.konsole.flatpakref` and `com.termux.nix/files/home/.nix-profile/bin/pwsh`.[/+]beedell-roke commentedon Feb 15, 2026
#issue-1102547665was re-confirmed inflatpak/flatpak-xdg-utils/issues/73.#issuecomment-1076995838depends uponnix-community/nix-on-droid/issues/500.[-]`STDIN` is corrupted when `Start-Transcript` is active, in `org.kde.konsole.flatpakref` and `com.termux.nix/files/home/.nix-profile/bin/pwsh`.[/-][+]`STDIN` is always corrupted in `com.termux.nix/files/home/.nix-profile/bin/pwsh`, and solely when `Start-Transcript` is active, in `org.kde.konsole.flatpakref`.[/+]beedell-roke commentedon Feb 17, 2026
As
nix-community/nix-on-droid/issues/500#issuecomment-3911169455confirms, this always reproduces with/data/data/com.termux.nix/files/home/.nix-profile/bin/pwsh:@.Date.20260217T003729+0000.Type.Video.Origin.Waydroid.webm
iSazonov commentedon Feb 17, 2026
You could disable echo with
stty -echo(before or/and inside flatpak).Also you could remove RSReadline for test.
beedell-roke commentedon Feb 18, 2026
Ilya (@iSazonov), although
Remove-Module PSReadLine(undesirably) removes text colouration, it, likestty -echo, does remediate this, inside/data/data/com.termux.nix/files/usr/nix/store/nx317a2z1yhp7a9vs337jfnbnniphcbj-powershell-7.4.2/share/powershell/pwsh, inside../../../gfzfsn0pwbzgj188n21d5r04z80hbswc-bash-interactive-5.2p32/bin/bash: 1…nor
flatpak-spawn:My apologies if I've not executed those commands correctly.
Footnotes
nix-community/nix-on-droid/discussions/501#discussioncomment-15833299↩iSazonov commentedon Feb 18, 2026
I guess flatpak hides real terminal and C# application thinks it work with file/stream. You could try
flatpak-spawn --host script -q /dev/null -c "pwsh"wherescriptcreates real PTY for application.beedell-roke commentedon Feb 18, 2026
Ilya (@iSazonov), no luck there, either:
beedell-roke commentedon Aug 17, 2026