teditor  1.8.0@@fee5e94
Terminal based editor written in C++
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Friends | List of all members
teditor::Terminal Class Reference

#include <terminal.h>

Public Member Functions

int getWinchFd (int idx) const
 
int width () const
 
int height () const
 
void puts (const char *data, size_t len)
 append data at the end of the current buffer contents More...
 
void puts (const char *data)
 
void puts (const std::string &data)
 
void puts (Func f)
 
void flush ()
 
void updateTermSize ()
 
void reset ()
 
int waitAndFill (struct timeval *timeout)
 
const std::string & getOldSeq () const
 
bool bufferResize () const
 
void disableResize ()
 

Static Public Member Functions

static TerminalgetInstance ()
 

Public Attributes

EventType type
 
MetaKey mk
 
Pos2d< uint16_t > loc
 

Static Public Attributes

static const int UndefinedSequence = -10
 

Friends

template<typename A , typename B >
class SingletonHandler
 

Detailed Description

Member Function Documentation

◆ getInstance()

Terminal & teditor::Terminal::getInstance ( )
static

get the singleton instance

◆ getWinchFd()

int teditor::Terminal::getWinchFd ( int  idx) const
inline

◆ height()

int teditor::Terminal::height ( ) const
inline

◆ width()

int teditor::Terminal::width ( ) const
inline

Friends And Related Function Documentation

◆ SingletonHandler

template<typename A , typename B >
friend class SingletonHandler
friend

Member Data Documentation

◆ loc

Pos2d<uint16_t> teditor::Terminal::loc

for mouse events

◆ mk

MetaKey teditor::Terminal::mk

key info

◆ type

EventType teditor::Terminal::type

type of the event

◆ UndefinedSequence

const int teditor::Terminal::UndefinedSequence = -10
static

flag to raise an undefined escape sequence scenario


The documentation for this class was generated from the following files: