#ifndef CLREMOTETERMINAL_HPP
#define CLREMOTETERMINAL_HPP

#include "cl_command_event.h"
#include "ssh_account_info.h"
#include <memory>
#include <wx/event.h>

using namespace std;
class clRemoteTerminal : public wxEvtHandler
{
    IProcess* m_proc = nullptr;
    wxString m_tty;
    wxString m_tty_file;
    SSHAccountInfo m_account;

public:
    typedef unique_ptr<clRemoteTerminal> ptr_t;

public:
    clRemoteTerminal(const SSHAccountInfo& account);
    ~clRemoteTerminal();

    bool Start();
    void Stop();

    const wxString& ReadTty();
};

#endif // CLREMOTETERMINAL_HPP
