comparison src/input.cc @ 8868:4d812facab0e

write debugging location info directly to std::cerr
author John W. Eaton <jwe@octave.org>
date Wed, 25 Feb 2009 03:02:28 -0500
parents f71b749be1c1
children eb63fbe60fab
comparison
equal deleted inserted replaced
8867:ff89a265592b 8868:4d812facab0e
643 } 643 }
644 644
645 std::string msg = buf.str (); 645 std::string msg = buf.str ();
646 646
647 if (! msg.empty ()) 647 if (! msg.empty ())
648 message (Vgud_mode ? 0 : "keyboard", "%s", msg.c_str ()); 648 {
649 if (! Vgud_mode)
650 std::cerr << "keyboard: ";
651
652 std::cerr << msg << std::endl;
653 }
649 654
650 unwind_protect::begin_frame ("get_debug_input"); 655 unwind_protect::begin_frame ("get_debug_input");
651 656
652 unwind_protect_str (VPS1); 657 unwind_protect_str (VPS1);
653 VPS1 = prompt; 658 VPS1 = prompt;