[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #65107] "more on" places extra newline in octa
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #65107] "more on" places extra newline in octave_stdout |
Date: |
Wed, 3 Jan 2024 18:47:50 -0500 (EST) |
Follow-up Comment #3, bug#65107 (group octave):
Maybe the following change?
diff --git a/libinterp/corefcn/interpreter.cc
b/libinterp/corefcn/interpreter.cc
--- a/libinterp/corefcn/interpreter.cc
+++ b/libinterp/corefcn/interpreter.cc
@@ -1238,7 +1238,10 @@ interpreter::execute_startup_files ()
}
if (m_interactive && verbose)
- std::cout << std::endl;
+ {
+ octave_stdout << std::endl;
+ octave_stdout.flush ();
+ }
return exit_status;
}
diff --git a/libinterp/parse-tree/pt-eval.cc
b/libinterp/parse-tree/pt-eval.cc
--- a/libinterp/parse-tree/pt-eval.cc
+++ b/libinterp/parse-tree/pt-eval.cc
@@ -2187,7 +2187,10 @@ tree_evaluator::source_file (const std::
code->call (*this, 0, octave_value_list ());
if (verbose)
- octave_stdout << "done." << std::endl;
+ {
+ octave_stdout << "done." << std::endl;
+ octave_stdout.flush ();
+ }
}
void
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65107>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/