MemoryAccessor 1
A command-line front-end for exploring virtual memory of a linux process by accessing /proc/PID/mem file.
Loading...
Searching...
No Matches
console.cc File Reference

Console source and ReadLine integration. More...

#include "console.h"
#include <readline/history.h>
#include <readline/readline.h>
#include <signal.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <algorithm>
#include <array>
#include <cmath>
#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <memory>
#include <ostream>
#include <sstream>
#include <stdexcept>
#include <string>
#include <unordered_set>
#include <vector>
#include "hexviewer.h"
#include "memoryaccessor.h"
#include "segmentinfo.h"
#include "tools.h"

Namespaces

namespace  memoryaccessor_console_src
 Namespace of the file.
 

Variables

bool ctrl_c_pressed
 

Detailed Description

Console source and ReadLine integration.

A source that contains the realization of Console class and the integration of GNU ReadLine library. Also, this file defines ctrl_c_pressed variable, which is used to detect if Ctrl-C was pressed when Console class is used.

Variable Documentation

◆ ctrl_c_pressed

bool ctrl_c_pressed
Initial value:
{
false}

Shows if Ctrl-C was pressed if the instance of class Console is created. When console is reading stdin, it goes to new line and sets the variable to false.