finalcut/include/final/ftermcap.h

75 lines
1.4 KiB
C
Raw Normal View History

// File: ftermcap.h
// Provides: class FTermcap
//
// Standalone class
// ════════════════
//
// ▕▔▔▔▔▔▔▔▔▔▔▏
// ▕ FTermcap ▏
// ▕▁▁▁▁▁▁▁▁▁▁▏
#ifndef FTERMCAP_H
#define FTERMCAP_H
2017-09-11 03:06:02 +02:00
// FTermcap string macro
#define TCAP(s) tcap[(s)].string
#include <string>
//----------------------------------------------------------------------
// class FTermcap
//----------------------------------------------------------------------
#pragma pack(push)
#pragma pack(1)
class FTermcap
{
2017-09-11 03:06:02 +02:00
public:
// Typedef
typedef struct
{
char* string;
char tname[3];
}
tcap_map;
2017-09-11 03:06:02 +02:00
// Constructors
FTermcap()
{ }
2017-09-11 03:06:02 +02:00
// Destructor
~FTermcap()
{ }
2017-09-11 03:06:02 +02:00
// Accessor
static tcap_map* getTermcapMap()
{
return tcap;
}
2017-09-11 03:06:02 +02:00
// Mutator
static void setTermcapMap (tcap_map* t)
{
tcap = t;
}
2017-09-11 03:06:02 +02: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;
static bool no_utf8_acs_chars;
static int max_color;
static int tabstop;
static int attr_without_color;
2017-09-11 03:06:02 +02:00
private:
// Data Members
static tcap_map* tcap;
};
#pragma pack(pop)
#endif // FTERMCAP_H