#include <signal.h>
#include <unistd.h>
#include <iostream>
#include "misc.h"
#include "ConsoleUI.h"
#include "GXemul.h"
Go to the source code of this file.
Functions | |
void | ConsoleUI_SIGINT_Handler (int n) |
CTRL-C handler which sets the run state to Paused. More... | |
void | ConsoleUI_SIGCONT_Handler (int n) |
Restore terminal settings after a CTRL-Z. More... | |
void ConsoleUI_SIGCONT_Handler | ( | int | n | ) |
Restore terminal settings after a CTRL-Z.
If the user presses CTRL-Z (to stop the emulator process) and then continues, the termios settings might have been invalidated. This function restores them.
Definition at line 90 of file ConsoleUI.cc.
void ConsoleUI_SIGINT_Handler | ( | int | n | ) |
CTRL-C handler which sets the run state to Paused.
Definition at line 68 of file ConsoleUI.cc.
References CommandInterpreter::ClearCurrentCommandBuffer(), GXemul::GetCommandInterpreter(), GXemul::Interrupt(), and GXemul::IsInterrupting().