2016-10-11 04:57:36 +02:00
|
|
|
// File: ftermcap.h
|
|
|
|
// Provides: class FTermcap
|
|
|
|
//
|
|
|
|
// Standalone class
|
|
|
|
// ════════════════
|
|
|
|
//
|
|
|
|
// ▕▔▔▔▔▔▔▔▔▔▔▏
|
|
|
|
// ▕ FTermcap ▏
|
|
|
|
// ▕▁▁▁▁▁▁▁▁▁▁▏
|
|
|
|
|
2017-04-09 20:08:53 +02:00
|
|
|
#ifndef FTERMCAP_H
|
|
|
|
#define FTERMCAP_H
|
2016-10-11 04:57:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// class FTermcap
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
#pragma pack(push)
|
|
|
|
#pragma pack(1)
|
|
|
|
|
|
|
|
class FTermcap
|
|
|
|
{
|
|
|
|
public:
|
2016-11-02 00:37:58 +01:00
|
|
|
// Typedef
|
2016-10-11 04:57:36 +02:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
char* string;
|
|
|
|
char tname[3];
|
|
|
|
}
|
|
|
|
tcap_map;
|
2016-10-13 02:16:51 +02:00
|
|
|
|
2016-11-02 00:37:58 +01:00
|
|
|
// Constructors
|
2016-10-11 04:57:36 +02:00
|
|
|
FTermcap()
|
|
|
|
{ }
|
|
|
|
|
2016-11-02 00:37:58 +01:00
|
|
|
// Destructor
|
2016-10-11 04:57:36 +02:00
|
|
|
~FTermcap()
|
|
|
|
{ }
|
|
|
|
|
2016-11-02 00:37:58 +01:00
|
|
|
// Accessor
|
2017-03-26 20:40:04 +02:00
|
|
|
static tcap_map* getTermcapMap()
|
2016-10-11 04:57:36 +02:00
|
|
|
{
|
|
|
|
return tcap;
|
|
|
|
}
|
2016-10-14 13:02:35 +02:00
|
|
|
|
2016-11-02 00:37:58 +01:00
|
|
|
// Mutator
|
2017-03-26 20:40:04 +02:00
|
|
|
static void setTermcapMap (tcap_map* t)
|
2016-10-11 04:57:36 +02:00
|
|
|
{
|
|
|
|
tcap = t;
|
|
|
|
}
|
2016-11-02 00:37:58 +01:00
|
|
|
|
|
|
|
// Data Members
|
|
|
|
static bool background_color_erase;
|
|
|
|
static bool automatic_left_margin;
|
|
|
|
static bool automatic_right_margin;
|
|
|
|
static bool eat_nl_glitch;
|
|
|
|
static bool ansi_default_color;
|
|
|
|
static bool osc_support;
|
2017-02-07 17:15:01 +01:00
|
|
|
static bool no_utf8_acs_chars;
|
2016-11-02 00:37:58 +01:00
|
|
|
static int max_color;
|
2017-03-26 20:40:04 +02:00
|
|
|
static int tabstop;
|
|
|
|
static int attr_without_color;
|
2016-11-02 00:37:58 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
// Data Members
|
|
|
|
static tcap_map* tcap;
|
2016-10-11 04:57:36 +02:00
|
|
|
};
|
|
|
|
#pragma pack(pop)
|
|
|
|
|
2017-04-09 20:08:53 +02:00
|
|
|
#endif // FTERMCAP_H
|