35 lines
1.3 KiB
C++
Executable File
35 lines
1.3 KiB
C++
Executable File
/*****************************************************************************
|
|
* *
|
|
* K E Y B O A R D D E M O *
|
|
* *
|
|
*---------------------------------------------------------------------------*
|
|
* Beschreibung: Testausgaben für den CGA-Treiber. *
|
|
* *
|
|
* Autor: Michael Schoettner, HHU, 26.10.2018 *
|
|
*****************************************************************************/
|
|
|
|
#include "user/demo/KeyboardDemo.h"
|
|
|
|
void KeyboardDemo::run() {
|
|
|
|
/* Hier muess Code eingefuegt werden */
|
|
|
|
kout << "Keyboard Demo: " << endl;
|
|
|
|
kout.lock();
|
|
kout.clear();
|
|
kout << "Info: Die Keyboard Demo sperrt den Output Stream:\n"
|
|
<< " Wenn die Preemption Demo laeuft wird diese also erst\n"
|
|
<< " fortfahren wenn die Keyboard Demo wieder beendet ist." << endl;
|
|
kout << "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nInput: ";
|
|
kout.flush();
|
|
|
|
while (running) {
|
|
kout << listener.waitForKeyEvent();
|
|
kout.flush();
|
|
}
|
|
|
|
kout.unlock();
|
|
scheduler.exit();
|
|
}
|