summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2017-08-11 04:27:59 +0000
committerNorbert Preining <preining@logic.at>2017-08-11 04:27:59 +0000
commit7d2063348b69eb8f980eab0a28f0ab73f1071c86 (patch)
treeed092a0d96708bb5c471f1ad966ba09b60e7d1b5
parentc6ce7fc349c98f1059e084b12025bd27d2acaa8a (diff)
add option autoflush to tlmgr shell (for tlshell)
git-svn-id: svn://tug.org/texlive/trunk@45014 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-xMaster/texmf-dist/scripts/texlive/tlmgr.pl6
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!