From 7d2063348b69eb8f980eab0a28f0ab73f1071c86 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Fri, 11 Aug 2017 04:27:59 +0000 Subject: add option autoflush to tlmgr shell (for tlshell) git-svn-id: svn://tug.org/texlive/trunk@45014 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/scripts/texlive/tlmgr.pl | 6 ++++++ 1 file changed, 6 insertions(+) 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! -- cgit v1.2.3