diff options
Diffstat (limited to 'Master')
-rwxr-xr-x | Master/texmf-dist/scripts/texlive/tlmgr.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Master/texmf-dist/scripts/texlive/tlmgr.pl b/Master/texmf-dist/scripts/texlive/tlmgr.pl index 0cbbacb2634..4bee9c9d2d5 100755 --- a/Master/texmf-dist/scripts/texlive/tlmgr.pl +++ b/Master/texmf-dist/scripts/texlive/tlmgr.pl @@ -310,6 +310,9 @@ my %action_specification = ( "function" => \&action_search }, "shell" => { + "options" => { + "autoflush" => 1, + }, "function" => \&action_shell }, "uninstall" => { @@ -5872,6 +5875,9 @@ sub action_key { sub action_shell { my $protocol = 1; my $default_prompt = "tlmgr>"; + if ($opts{'autoflush'}) { + $| = 1; + } # we need to do an anonymous sub here otherwise the $default_prompt will get # only fixed once and remain forever. With anonymous subs it is rebound # on every call! |