summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/TEmulation.cpp
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/TEmulation.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/TEmulation.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/noncore/apps/opie-console/TEmulation.cpp b/noncore/apps/opie-console/TEmulation.cpp
index 6ff73af..72cce75 100644
--- a/noncore/apps/opie-console/TEmulation.cpp
+++ b/noncore/apps/opie-console/TEmulation.cpp
@@ -62,28 +62,24 @@
62 62
63 As a sort of catch-all needed for cases where none of the above 63 As a sort of catch-all needed for cases where none of the above
64 conditions catch, the screen refresh is also triggered by a count 64 conditions catch, the screen refresh is also triggered by a count
65 of incoming bulks (`bulk_incnt'). 65 of incoming bulks (`bulk_incnt').
66*/ 66*/
67 67
68/* FIXME 68/* FIXME
69 - evtl. the bulk operations could be made more transparent. 69 - evtl. the bulk operations could be made more transparent.
70*/ 70*/
71 71
72#include "TEmulation.h" 72#include "TEmulation.h"
73 73
74/* OPIE */
75#include <opie2/odebug.h>
76using namespace Opie::Core;
77
78/* STD */ 74/* STD */
79#include <stdio.h> 75#include <stdio.h>
80#include <stdlib.h> 76#include <stdlib.h>
81#include <unistd.h> 77#include <unistd.h>
82 78
83 79
84/* ------------------------------------------------------------------------- */ 80/* ------------------------------------------------------------------------- */
85/* */ 81/* */
86/* TEmulation */ 82/* TEmulation */
87/* */ 83/* */
88/* ------------------------------------------------------------------------- */ 84/* ------------------------------------------------------------------------- */
89 85
@@ -201,25 +197,24 @@ void TEmulation::onRcvChar(int c)
201 197
202/* ------------------------------------------------------------------------- */ 198/* ------------------------------------------------------------------------- */
203/* */ 199/* */
204/* Keyboard Handling */ 200/* Keyboard Handling */
205/* */ 201/* */
206/* ------------------------------------------------------------------------- */ 202/* ------------------------------------------------------------------------- */
207 203
208/*! 204/*!
209*/ 205*/
210 206
211void TEmulation::onKeyPress( QKeyEvent* ev ) 207void TEmulation::onKeyPress( QKeyEvent* ev )
212{ 208{
213 owarn << "onKeyPress,...." << oendl;
214 if (!connected) return; // someone else gets the keys 209 if (!connected) return; // someone else gets the keys
215 if (scr->getHistCursor() != scr->getHistLines()); 210 if (scr->getHistCursor() != scr->getHistLines());
216 scr->setHistCursor(scr->getHistLines()); 211 scr->setHistCursor(scr->getHistLines());
217 if (!ev->text().isEmpty()) 212 if (!ev->text().isEmpty())
218 { // A block of text 213 { // A block of text
219 // Note that the text is proper unicode. 214 // Note that the text is proper unicode.
220 // We should do a conversion here, but since this 215 // We should do a conversion here, but since this
221 // routine will never be used, we simply emit plain ascii. 216 // routine will never be used, we simply emit plain ascii.
222 emit sndBlock(ev->text().ascii(),ev->text().length()); 217 emit sndBlock(ev->text().ascii(),ev->text().length());
223 } 218 }
224 else if (ev->ascii()>0) 219 else if (ev->ascii()>0)
225 { unsigned char c[1]; 220 { unsigned char c[1];