comparison libgui/src/qt-interpreter-events.cc @ 31087:9c0099048264

exp cmd widget: fix missing promt after error * octave-qobject.cc (base_qobject::terminal_widget): connect signals of interpreter events to terminal signals instead of slots * qt-interpreter-events.cc (display_exception): emit signal for new command line after exception message in eyp. terminal widget * qt-interpreter-events.h: new signal new_command_line_signal * terminal-dock-widget.cc (terminal_dock_widget): connect new interpreter triggered signal to related slot in console; (interpreter_output): removed, slot was only emitting a signal, which is now directly connected to the first signal; (update_prompt): dito * terminal-dock-widget.h: new signal new_command_line_signal, removed interpreter_output and update_prompt
author Torsten Lilge <ttl-octave@mailbox.org>
date Fri, 10 Jun 2022 18:02:23 +0200
parents 796f54d4ddbf
children ad014fc78bd6 c6d54dd31a7e
comparison
equal deleted inserted replaced
31086:d5696a4efa84 31087:9c0099048264
508 bool beep) 508 bool beep)
509 { 509 {
510 if (m_octave_qobj.experimental_terminal_widget () 510 if (m_octave_qobj.experimental_terminal_widget ()
511 && m_octave_qobj.have_terminal_window ()) 511 && m_octave_qobj.have_terminal_window ())
512 { 512 {
513 // Output the exception message
513 std::ostringstream buf; 514 std::ostringstream buf;
514 ee.display (buf); 515 ee.display (buf);
515 emit interpreter_output_signal (QString::fromStdString (buf.str ())); 516 emit interpreter_output_signal (QString::fromStdString (buf.str ()));
517 // Create w new command line
518 emit new_command_line_signal ();
516 } 519 }
517 else 520 else
518 { 521 {
519 if (beep) 522 if (beep)
520 std::cerr << "\a"; 523 std::cerr << "\a";