summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/emulation_handler.cpp
authorzecke <zecke>2002-10-14 19:58:07 (UTC)
committer zecke <zecke>2002-10-14 19:58:07 (UTC)
commit0547ecc794209a0824fd7662e434706ac625dbb2 (patch) (side-by-side diff)
tree90243ddbca14b2c01552d55b413be0d044c3a108 /noncore/apps/opie-console/emulation_handler.cpp
parent7114c1567399d9b134af337824ef56e7d5facee7 (diff)
downloadopie-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) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/emulation_handler.cpp6
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
@@ -19,6 +19,7 @@ EmulationHandler::EmulationHandler( const Profile& prof, QWidget* parent,const c
connect(m_teEmu, SIGNAL(sndBlock(const char*, int) ),
this, SLOT(recvEmulation(const char*, int) ) );
m_teEmu->setConnect( true );
+ m_teEmu->setHistory( TRUE );
load( prof );
@@ -32,13 +33,16 @@ 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);