Bugz Door Project
Classes | Namespaces | Functions | Variables
door.cpp File Reference

Door. More...

#include "door.h"
#include <algorithm>
#include <chrono>
#include <ctype.h>
#include <string.h>
#include <string>
#include <thread>
#include <libgen.h>
#include <ctime>
#include <iomanip>
#include <signal.h>
#include <unistd.h>
#include <iconv.h>
#include <iostream>
#include <pwd.h>
Include dependency graph for door.cpp:

Classes

class  door::IConv
 Converts from one encoding to another. Uses iconv (international conversion) API. More...
 

Namespaces

 door
 The BBS door project. This is an attempt at writing a C++ BBS door toolkit.
 

Functions

void door::to_lower (std::string &text)
 convert string to lowercase More...
 
bool door::replace (std::string &str, const std::string &from, const std::string &to)
 Replaces one string with another once. More...
 
bool door::replace (std::string &str, const char *from, const char *to)
 Replace all instances of from with to. More...
 
void door::sig_handler (int signal)
 Signal handler for detecting hangup/broken pipe. More...
 
void door::cp437toUnicode (std::string input, std::string &out)
 Convert from CP437 to unicode. More...
 
void door::cp437toUnicode (const char *input, std::string &out)
 Convert from CP437 to unicode. More...
 
std::ostream & door::operator<< (std::ostream &os, const Clrscr &clr)
 
std::ostream & door::operator<< (std::ostream &os, const NewLine &nl)
 
std::ostream & door::operator<< (std::ostream &os, const Goto &g)
 

Variables

std::list< char > door::pushback
 pushback buffer for keys. More...
 
bool door::unicode = false
 Was unicode detected?
 
bool door::full_cp437 = false
 Was full CP437 detected? More...
 
bool door::debug_capture = false
 Capture the output for debugging. More...
 
Clrscr door::cls
 
NewLine door::nl
 
const char door::SaveCursor [] = "\x1b[s"
 ANSI Save Cursor position command.
 
const char door::RestoreCursor [] = "\x1b[u"
 ANSI Restore Cursor position command.
 
renderFunction door::rBlueYellow
 BlueYellow Render example function. More...
 

Detailed Description

Door.