subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danie...@apache.org
Subject svn commit: r1494590 - /subversion/trunk/tools/dist/backport.pl
Date Wed, 19 Jun 2013 12:41:56 GMT
Author: danielsh
Date: Wed Jun 19 12:41:55 2013
New Revision: 1494590

URL: http://svn.apache.org/r1494590
Log:
* tools/dist/backport.pl
  (prompt): Reset the terminal settings after changing them.

Found by: philip

Modified:
    subversion/trunk/tools/dist/backport.pl

Modified: subversion/trunk/tools/dist/backport.pl
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/dist/backport.pl?rev=1494590&r1=1494589&r2=1494590&view=diff
==============================================================================
--- subversion/trunk/tools/dist/backport.pl (original)
+++ subversion/trunk/tools/dist/backport.pl Wed Jun 19 12:41:55 2013
@@ -68,9 +68,9 @@ sub prompt {
   my %args = @_;
 
   die "$0: called prompt() in non-interactive mode!" if $YES;
-  # TODO: this part was written by trial-and-error
   ReadMode 'cbreak';
   my $answer = (ReadKey 0);
+  ReadMode 'restore';
   print $answer, "\n";
   return $args{verbose}
          ? $answer



Mime
View raw message