void wxTerminal::OnProcessEnd(clProcessEvent& event) { wxDELETE(m_process); // Make sure we flush everything DoFlushOutputBuffer(); if(m_exitWhenProcessDies) { m_textCtrl->SetInsertionPointEnd(); m_textCtrl->AppendText(wxString(wxT("\n")) + _("Press any key to continue...")); m_exitOnKey = true; } }
void wxTerminal::OnProcessEnd(wxCommandEvent& event) { ProcessEventData *ped = (ProcessEventData *)event.GetClientData(); delete ped; wxDELETE(m_process); // Make sure we flush everything DoFlushOutputBuffer(); if(m_exitWhenProcessDies) { m_textCtrl->SetInsertionPointEnd(); m_textCtrl->AppendText(wxString(wxT("\n")) +_("Press any key to continue...")); m_exitOnKey = true; } }
void wxTerminal::OnIdle(wxIdleEvent& event) { event.Skip(); DoFlushOutputBuffer(); }