author | zecke <zecke> | 2002-10-14 19:58:07 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-14 19:58:07 (UTC) |
commit | 0547ecc794209a0824fd7662e434706ac625dbb2 (patch) (side-by-side diff) | |
tree | 90243ddbca14b2c01552d55b413be0d044c3a108 /noncore/apps/opie-console/emulation_handler.cpp | |
parent | 7114c1567399d9b134af337824ef56e7d5facee7 (diff) | |
download | opie-0547ecc794209a0824fd7662e434706ac625dbb2.zip opie-0547ecc794209a0824fd7662e434706ac625dbb2.tar.gz opie-0547ecc794209a0824fd7662e434706ac625dbb2.tar.bz2 |
Make it work
history and other stuff
Diffstat (limited to 'noncore/apps/opie-console/emulation_handler.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/emulation_handler.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/emulation_handler.cpp b/noncore/apps/opie-console/emulation_handler.cpp index c67c7c7..9e7f56c 100644 --- a/noncore/apps/opie-console/emulation_handler.cpp +++ b/noncore/apps/opie-console/emulation_handler.cpp @@ -10,39 +10,43 @@ EmulationHandler::EmulationHandler( const Profile& prof, QWidget* parent,const c : QObject(0, name ) { m_teWid = new TEWidget( parent, "TerminalMain"); m_teWid->setMinimumSize(150, 70 ); parent->resize( m_teWid->calcSize(80, 24 ) ); m_teEmu = new TEmuVt102(m_teWid ); connect(m_teEmu,SIGNAL(ImageSizeChanged(int, int) ), this, SIGNAL(changeSize(int, int) ) ); connect(m_teEmu, SIGNAL(sndBlock(const char*, int) ), this, SLOT(recvEmulation(const char*, int) ) ); m_teEmu->setConnect( true ); + m_teEmu->setHistory( TRUE ); load( prof ); } EmulationHandler::~EmulationHandler() { delete m_teEmu; delete m_teWid; } void EmulationHandler::load( const Profile& ) { QFont font = QFont("Fixed", 12, QFont::Normal ); font.setFixedPitch(TRUE); m_teWid->setVTFont( font ); - m_teWid->setBackgroundColor(Qt::black ); + m_teWid->setBackgroundColor(Qt::gray ); } void EmulationHandler::recv( const QByteArray& ar) { + qWarning("received in EmulationHandler!"); m_teEmu->onRcvBlock(ar.data(), ar.count() ); } void EmulationHandler::recvEmulation(const char* src, int len ) { + qWarning("received from te "); QByteArray ar(len); + memcpy(ar.data(), src, sizeof(char) * len ); emit send(ar); } QWidget* EmulationHandler::widget() { return m_teWid; } |