finalcut/src/include/final/ftermcapquirks.h

94 lines
3.1 KiB
C
Raw Normal View History

/***********************************************************************
* ftermcapquirks.h - Termcap quirks for some well-known terminals *
* *
* This file is part of the Final Cut widget toolkit *
* *
* Copyright 2018-2019 Markus Gans *
* *
* The Final Cut is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public License *
* as published by the Free Software Foundation; either version 3 of *
* the License, or (at your option) any later version. *
* *
* The Final Cut is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public *
* License along with this program. If not, see *
* <http://www.gnu.org/licenses/>. *
***********************************************************************/
/* Standalone class
*
*
*
* FTermcapQuirks
*
*/
#ifndef FTERMCAPQUIRKS_H
#define FTERMCAPQUIRKS_H
#if !defined (USE_FINAL_H) && !defined (COMPILE_FINAL_CUT)
#error "Only <final/final.h> can be included directly."
#endif
namespace finalcut
{
// class forward declaration
class FTermData;
class FTermDetection;
//----------------------------------------------------------------------
// class FTermcapsQuirks
//----------------------------------------------------------------------
2019-01-04 02:18:54 +01:00
class FTermcapQuirks final
{
public:
// Constructors
FTermcapQuirks();
// Destructor
~FTermcapQuirks();
2018-08-09 00:04:00 +02:00
// Accessor
const FString getClassName() const;
2018-08-09 00:04:00 +02:00
// Methods
static void terminalFixup();
private:
// Methods
#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(UNIT_TEST)
2018-10-08 04:14:20 +02:00
static void freebsd();
#endif
2018-10-08 04:14:20 +02:00
static void cygwin();
static void linux();
static void xterm();
static void rxvt();
static void vte();
static void putty();
static void teraterm();
2018-10-09 00:33:26 +02:00
static void sunConsole();
2018-10-08 04:14:20 +02:00
static void screen();
static void general();
static void ecma48();
// Data members
static FTermData* fterm_data;
static FTermDetection* term_detection;
};
2018-08-09 00:04:00 +02:00
// FTermcapQuirks inline functions
//----------------------------------------------------------------------
2019-10-05 23:20:07 +02:00
inline const FString FTermcapQuirks::getClassName() const
2018-08-09 00:04:00 +02:00
{ return "FTermcapQuirks"; }
} // namespace finalcut
#endif // FTERMCAPQUIRKS_H