ConsoleUI.cc File Reference

Back to the index.

Functions
ConsoleUI.cc File Reference
#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...
 

Function Documentation

◆ ConsoleUI_SIGCONT_Handler()

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.

◆ ConsoleUI_SIGINT_Handler()

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().


Generated on Fri Dec 7 2018 19:52:23 for GXemul by doxygen 1.8.13