12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
- <meta http-equiv="X-UA-Compatible" content="IE=9"/>
- <meta name="generator" content="Doxygen 1.8.17"/>
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
- <title>Bugz Door Project: door Namespace Reference</title>
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript" src="dynsections.js"></script>
- <link href="search/search.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="search/searchdata.js"></script>
- <script type="text/javascript" src="search/search.js"></script>
- <link href="doxygen.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
- <div id="titlearea">
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
- <td id="projectalign" style="padding-left: 0.5em;">
- <div id="projectname">Bugz Door Project
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.8.17 -->
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- var searchBox = new SearchBox("searchBox", "search",false,'Search');
- /* @license-end */
- </script>
- <script type="text/javascript" src="menudata.js"></script>
- <script type="text/javascript" src="menu.js"></script>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- $(function() {
- initMenu('',true,false,'search.php','Search');
- $(document).ready(function() { init_search(); });
- });
- /* @license-end */</script>
- <div id="main-nav"></div>
- <!-- window showing the filter options -->
- <div id="MSearchSelectWindow"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- onkeydown="return searchBox.OnSearchSelectKey(event)">
- </div>
- <!-- iframe showing the search results (closed by default) -->
- <div id="MSearchResultsWindow">
- <iframe src="javascript:void(0)" frameborder="0"
- name="MSearchResults" id="MSearchResults">
- </iframe>
- </div>
- </div><!-- top -->
- <div class="header">
- <div class="summary">
- <a href="#nested-classes">Classes</a> |
- <a href="#typedef-members">Typedefs</a> |
- <a href="#enum-members">Enumerations</a> |
- <a href="#func-members">Functions</a> |
- <a href="#var-members">Variables</a> </div>
- <div class="headertitle">
- <div class="title">door Namespace Reference</div> </div>
- </div><!--header-->
- <div class="contents">
- <p>The BBS door project. This is an attempt at writing a C++ BBS door toolkit.
- <a href="namespacedoor.html#details">More...</a></p>
- <table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
- Classes</h2></td></tr>
- <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classdoor_1_1ANSIColor.html">ANSIColor</a></td></tr>
- <tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Foreground, Background and Attributes. <a href="classdoor_1_1ANSIColor.html#details">More...</a><br /></td></tr>
- <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structdoor_1_1box__styles.html">box_styles</a></td></tr>
- <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classdoor_1_1Clrscr.html">Clrscr</a></td></tr>
- <tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Clear the screen. <a href="classdoor_1_1Clrscr.html#details">More...</a><br /></td></tr>
- <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classdoor_1_1ColorOutput.html">ColorOutput</a></td></tr>
- <tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">This holds an <a class="el" href="classdoor_1_1ANSIColor.html" title="Foreground, Background and Attributes.">ANSIColor</a> and text position + length. <a href="classdoor_1_1ColorOutput.html#details">More...</a><br /></td></tr>
- <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classdoor_1_1Door.html">Door</a></td></tr>
- <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classdoor_1_1Goto.html">Goto</a></td></tr>
- <tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">ANSI <a class="el" href="classdoor_1_1Goto.html" title="ANSI Goto X, Y position.">Goto</a> X, Y position. <a href="classdoor_1_1Goto.html#details">More...</a><br /></td></tr>
- <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classdoor_1_1IConv.html">IConv</a></td></tr>
- <tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Converts from one encoding to another. Uses iconv (international conversion) API. <a href="classdoor_1_1IConv.html#details">More...</a><br /></td></tr>
- <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classdoor_1_1Line.html">Line</a></td></tr>
- <tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Text and <a class="el" href="classdoor_1_1ANSIColor.html" title="Foreground, Background and Attributes.">ANSIColor</a>. <a href="classdoor_1_1Line.html#details">More...</a><br /></td></tr>
- <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classdoor_1_1Menu.html">Menu</a></td></tr>
- <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classdoor_1_1NewLine.html">NewLine</a></td></tr>
- <tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">CR+LF. <a href="classdoor_1_1NewLine.html#details">More...</a><br /></td></tr>
- <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classdoor_1_1Panel.html">Panel</a></td></tr>
- <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classdoor_1_1Render.html">Render</a></td></tr>
- <tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Rendering a string with <a class="el" href="classdoor_1_1ANSIColor.html" title="Foreground, Background and Attributes.">ANSIColor</a>. <a href="classdoor_1_1Render.html#details">More...</a><br /></td></tr>
- <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classdoor_1_1Screen.html">Screen</a></td></tr>
- <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
- Typedefs</h2></td></tr>
- <tr class="memitem:ad9c2405adaa0b5168bc53059b3a978c1"><td class="memItemLeft" align="right" valign="top">typedef std::function< <a class="el" href="classdoor_1_1Render.html">Render</a>(const std::string &)> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#ad9c2405adaa0b5168bc53059b3a978c1">renderFunction</a></td></tr>
- <tr class="memdesc:ad9c2405adaa0b5168bc53059b3a978c1"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classdoor_1_1Render.html" title="Rendering a string with ANSIColor.">Render</a> output function. <a href="namespacedoor.html#ad9c2405adaa0b5168bc53059b3a978c1">More...</a><br /></td></tr>
- <tr class="separator:ad9c2405adaa0b5168bc53059b3a978c1"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:adb2697f83f8ce701366e05ed72c97d6e"><td class="memItemLeft" align="right" valign="top">typedef std::function< std::string(void)> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#adb2697f83f8ce701366e05ed72c97d6e">updateFunction</a></td></tr>
- <tr class="separator:adb2697f83f8ce701366e05ed72c97d6e"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
- Enumerations</h2></td></tr>
- <tr class="memitem:abafe0a9e79349883af3ab2a7fb544366"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#abafe0a9e79349883af3ab2a7fb544366">COLOR</a> : std::int8_t { <br />
-   <a class="el" href="namespacedoor.html#abafe0a9e79349883af3ab2a7fb544366a08d0012388564e95c3b4a7407cf04965">COLOR::BLACK</a>,
- <a class="el" href="namespacedoor.html#abafe0a9e79349883af3ab2a7fb544366aa2d9547b5d3dd9f05984475f7c926da0">COLOR::RED</a>,
- <a class="el" href="namespacedoor.html#abafe0a9e79349883af3ab2a7fb544366a9de0e5dd94e861317e74964bed179fa0">COLOR::GREEN</a>,
- <a class="el" href="namespacedoor.html#abafe0a9e79349883af3ab2a7fb544366a493cacf6f6a2ae4798b319b8b9ba9488">COLOR::BROWN</a>,
- <br />
-   <a class="el" href="namespacedoor.html#abafe0a9e79349883af3ab2a7fb544366a8a568e5f41b7e4da88fe5c4a00aad34e">COLOR::YELLOW</a> = 3,
- <a class="el" href="namespacedoor.html#abafe0a9e79349883af3ab2a7fb544366a1b3e1ee9bff86431dea6b181365ba65f">COLOR::BLUE</a>,
- <a class="el" href="namespacedoor.html#abafe0a9e79349883af3ab2a7fb544366ac634ffea7195608364671ac52ee59a61">COLOR::MAGENTA</a>,
- <a class="el" href="namespacedoor.html#abafe0a9e79349883af3ab2a7fb544366a344dd8cd533280795b9db82ef0c92749">COLOR::CYAN</a>,
- <br />
-   <a class="el" href="namespacedoor.html#abafe0a9e79349883af3ab2a7fb544366ab5bf627e448384cf3a4c35121ca6008d">COLOR::WHITE</a>
- <br />
- }</td></tr>
- <tr class="memdesc:abafe0a9e79349883af3ab2a7fb544366"><td class="mdescLeft"> </td><td class="mdescRight">The colors available under ANSI-BBS. <a href="namespacedoor.html#abafe0a9e79349883af3ab2a7fb544366">More...</a><br /></td></tr>
- <tr class="separator:abafe0a9e79349883af3ab2a7fb544366"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:add24f9a933f9a6e613de6d56854e5c52"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#add24f9a933f9a6e613de6d56854e5c52">ATTR</a> : std::int8_t { <br />
-   <a class="el" href="namespacedoor.html#add24f9a933f9a6e613de6d56854e5c52ab5859d8721cfdc0312b2838b9c985bc1">ATTR::RESET</a>,
- <a class="el" href="namespacedoor.html#add24f9a933f9a6e613de6d56854e5c52a2909dd0e0336f10b6da9735b859a3d19">ATTR::BOLD</a>,
- <a class="el" href="namespacedoor.html#add24f9a933f9a6e613de6d56854e5c52aca78b38b9fe41e51b331abe6999a1040">ATTR::BRIGHT</a> = 1,
- <a class="el" href="namespacedoor.html#add24f9a933f9a6e613de6d56854e5c52ad810ed8e97088a3c987f179dfb88cefc">ATTR::BLINK</a> = 5,
- <br />
-   <a class="el" href="namespacedoor.html#add24f9a933f9a6e613de6d56854e5c52a1955bdc302911f376074eb9b02e56639">ATTR::INVERSE</a> = 7
- <br />
- }</td></tr>
- <tr class="memdesc:add24f9a933f9a6e613de6d56854e5c52"><td class="mdescLeft"> </td><td class="mdescRight">ANSI-BBS text attributes. <a href="namespacedoor.html#add24f9a933f9a6e613de6d56854e5c52">More...</a><br /></td></tr>
- <tr class="separator:add24f9a933f9a6e613de6d56854e5c52"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:af025775fb0b68d66dc42ee3299444fb7"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#af025775fb0b68d66dc42ee3299444fb7">Justify</a> { <b>NONE</b>,
- <b>LEFT</b>,
- <b>RIGHT</b>,
- <b>CENTER</b>
- }</td></tr>
- <tr class="separator:af025775fb0b68d66dc42ee3299444fb7"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a08afbc9eecb6efd7d4c741023b11db91"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#a08afbc9eecb6efd7d4c741023b11db91">BorderStyle</a> { <br />
-   <a class="el" href="namespacedoor.html#a08afbc9eecb6efd7d4c741023b11db91ab50339a10e1de285ac99d4c3990b8693">BorderStyle::NONE</a>,
- <a class="el" href="namespacedoor.html#a08afbc9eecb6efd7d4c741023b11db91a0679273e201afd0bf57af3961f8a23b8">BorderStyle::SINGLE</a>,
- <a class="el" href="namespacedoor.html#a08afbc9eecb6efd7d4c741023b11db91afd3e4ece78a7d422280d5ed379482229">BorderStyle::DOUBLE</a>,
- <a class="el" href="namespacedoor.html#a08afbc9eecb6efd7d4c741023b11db91a6dfbebc428d74ec8a1552722ceccda3a">BorderStyle::SINGLE_DOUBLE</a>,
- <br />
-   <a class="el" href="namespacedoor.html#a08afbc9eecb6efd7d4c741023b11db91acc939b66711e314a026eba1532bec367">BorderStyle::DOUBLE_SINGLE</a>,
- <a class="el" href="namespacedoor.html#a08afbc9eecb6efd7d4c741023b11db91a56f031dd03707d695f76c63ddbf40bd7">BorderStyle::BLANK</a>
- <br />
- }</td></tr>
- <tr class="separator:a08afbc9eecb6efd7d4c741023b11db91"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
- Functions</h2></td></tr>
- <tr class="memitem:ae6c40e2e917f64a9c42d977a88fe18fa"><td class="memItemLeft" align="right" valign="top">std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#ae6c40e2e917f64a9c42d977a88fe18fa">operator<<</a> (std::ostream &os, const <a class="el" href="classdoor_1_1ANSIColor.html">ANSIColor</a> &c)</td></tr>
- <tr class="separator:ae6c40e2e917f64a9c42d977a88fe18fa"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:afa94e91868d469077e4d3b400dedfd6c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#afa94e91868d469077e4d3b400dedfd6c">to_lower</a> (std::string &text)</td></tr>
- <tr class="memdesc:afa94e91868d469077e4d3b400dedfd6c"><td class="mdescLeft"> </td><td class="mdescRight">convert string to lowercase <a href="namespacedoor.html#afa94e91868d469077e4d3b400dedfd6c">More...</a><br /></td></tr>
- <tr class="separator:afa94e91868d469077e4d3b400dedfd6c"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:acba445fc4d33e1b0c1ff2b648cc2899d"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#acba445fc4d33e1b0c1ff2b648cc2899d">replace</a> (std::string &str, const std::string &from, const std::string &to)</td></tr>
- <tr class="memdesc:acba445fc4d33e1b0c1ff2b648cc2899d"><td class="mdescLeft"> </td><td class="mdescRight">Replaces one string with another once. <a href="namespacedoor.html#acba445fc4d33e1b0c1ff2b648cc2899d">More...</a><br /></td></tr>
- <tr class="separator:acba445fc4d33e1b0c1ff2b648cc2899d"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a5cc0209e9203231d1bdb1e6b7f0876c3"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#a5cc0209e9203231d1bdb1e6b7f0876c3">replace</a> (std::string &str, const char *from, const char *to)</td></tr>
- <tr class="memdesc:a5cc0209e9203231d1bdb1e6b7f0876c3"><td class="mdescLeft"> </td><td class="mdescRight">Replace all instances of from with to. <a href="namespacedoor.html#a5cc0209e9203231d1bdb1e6b7f0876c3">More...</a><br /></td></tr>
- <tr class="separator:a5cc0209e9203231d1bdb1e6b7f0876c3"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a4fc2f3f7f1b3908cb71bd1d275594fe9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#a4fc2f3f7f1b3908cb71bd1d275594fe9">sig_handler</a> (int signal)</td></tr>
- <tr class="memdesc:a4fc2f3f7f1b3908cb71bd1d275594fe9"><td class="mdescLeft"> </td><td class="mdescRight">Signal handler for detecting hangup/broken pipe. <a href="namespacedoor.html#a4fc2f3f7f1b3908cb71bd1d275594fe9">More...</a><br /></td></tr>
- <tr class="separator:a4fc2f3f7f1b3908cb71bd1d275594fe9"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a5efa4fb96eacd6b90e5cbb0bd985f3fc"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#a5efa4fb96eacd6b90e5cbb0bd985f3fc">cp437toUnicode</a> (std::string input, std::string &out)</td></tr>
- <tr class="memdesc:a5efa4fb96eacd6b90e5cbb0bd985f3fc"><td class="mdescLeft"> </td><td class="mdescRight">Convert from CP437 to unicode. <a href="namespacedoor.html#a5efa4fb96eacd6b90e5cbb0bd985f3fc">More...</a><br /></td></tr>
- <tr class="separator:a5efa4fb96eacd6b90e5cbb0bd985f3fc"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a7e94df0d0af14da619835aa90cfa8f2a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#a7e94df0d0af14da619835aa90cfa8f2a">cp437toUnicode</a> (const char *input, std::string &out)</td></tr>
- <tr class="memdesc:a7e94df0d0af14da619835aa90cfa8f2a"><td class="mdescLeft"> </td><td class="mdescRight">Convert from CP437 to unicode. <a href="namespacedoor.html#a7e94df0d0af14da619835aa90cfa8f2a">More...</a><br /></td></tr>
- <tr class="separator:a7e94df0d0af14da619835aa90cfa8f2a"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ad5d6277de5e8274cec970a4633d713b1"><td class="memItemLeft" align="right" valign="top">std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#ad5d6277de5e8274cec970a4633d713b1">operator<<</a> (std::ostream &os, const <a class="el" href="classdoor_1_1Clrscr.html">Clrscr</a> &clr)</td></tr>
- <tr class="separator:ad5d6277de5e8274cec970a4633d713b1"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aa6b909ef984a2aabc5b9a570884dff94"><td class="memItemLeft" align="right" valign="top">std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#aa6b909ef984a2aabc5b9a570884dff94">operator<<</a> (std::ostream &os, const <a class="el" href="classdoor_1_1NewLine.html">NewLine</a> &<a class="el" href="namespacedoor.html#a36352ded72aee66b10e1bda6d3d8efb8">nl</a>)</td></tr>
- <tr class="separator:aa6b909ef984a2aabc5b9a570884dff94"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aae6ca4805185baa51dcc661a69fa801b"><td class="memItemLeft" align="right" valign="top">std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#aae6ca4805185baa51dcc661a69fa801b">operator<<</a> (std::ostream &os, const <a class="el" href="classdoor_1_1Goto.html">Goto</a> &g)</td></tr>
- <tr class="separator:aae6ca4805185baa51dcc661a69fa801b"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:af3c1c222a45143cfa4e780cfb2e45243"><td class="memItemLeft" align="right" valign="top">std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#af3c1c222a45143cfa4e780cfb2e45243">operator<<</a> (std::ostream &os, const <a class="el" href="classdoor_1_1Line.html">Line</a> &l)</td></tr>
- <tr class="separator:af3c1c222a45143cfa4e780cfb2e45243"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a10848399ef2da2947ceb98b7707a688f"><td class="memItemLeft" align="right" valign="top">std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#a10848399ef2da2947ceb98b7707a688f">operator<<</a> (std::ostream &os, const <a class="el" href="classdoor_1_1Panel.html">Panel</a> &p)</td></tr>
- <tr class="memdesc:a10848399ef2da2947ceb98b7707a688f"><td class="mdescLeft"> </td><td class="mdescRight">Output panel to stream. <a href="namespacedoor.html#a10848399ef2da2947ceb98b7707a688f">More...</a><br /></td></tr>
- <tr class="separator:a10848399ef2da2947ceb98b7707a688f"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a5ca5f798bc38b4e5dc1e482ace47b7df"><td class="memItemLeft" align="right" valign="top">std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#a5ca5f798bc38b4e5dc1e482ace47b7df">operator<<</a> (std::ostream &os, const <a class="el" href="classdoor_1_1Screen.html">Screen</a> &s)</td></tr>
- <tr class="memdesc:a5ca5f798bc38b4e5dc1e482ace47b7df"><td class="mdescLeft"> </td><td class="mdescRight">Outputs screen to stream. <a href="namespacedoor.html#a5ca5f798bc38b4e5dc1e482ace47b7df">More...</a><br /></td></tr>
- <tr class="separator:a5ca5f798bc38b4e5dc1e482ace47b7df"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
- Variables</h2></td></tr>
- <tr class="memitem:ae3a70989c43f6cb3522308af748b4481"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classdoor_1_1ANSIColor.html">ANSIColor</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#ae3a70989c43f6cb3522308af748b4481">reset</a> (<a class="el" href="namespacedoor.html#add24f9a933f9a6e613de6d56854e5c52ab5859d8721cfdc0312b2838b9c985bc1">ATTR::RESET</a>)</td></tr>
- <tr class="memdesc:ae3a70989c43f6cb3522308af748b4481"><td class="mdescLeft"> </td><td class="mdescRight">reset colors to normal <a href="namespacedoor.html#ae3a70989c43f6cb3522308af748b4481">More...</a><br /></td></tr>
- <tr class="separator:ae3a70989c43f6cb3522308af748b4481"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a64600b79b9b73f4705859ce4efb1a2fd"><td class="memItemLeft" align="right" valign="top">std::list< char > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#a64600b79b9b73f4705859ce4efb1a2fd">pushback</a></td></tr>
- <tr class="memdesc:a64600b79b9b73f4705859ce4efb1a2fd"><td class="mdescLeft"> </td><td class="mdescRight">pushback buffer for keys. <a href="namespacedoor.html#a64600b79b9b73f4705859ce4efb1a2fd">More...</a><br /></td></tr>
- <tr class="separator:a64600b79b9b73f4705859ce4efb1a2fd"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a1626abff63f7a1b9dc696969c860283b"><td class="memItemLeft" align="right" valign="top"><a id="a1626abff63f7a1b9dc696969c860283b"></a>
- bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#a1626abff63f7a1b9dc696969c860283b">unicode</a> = false</td></tr>
- <tr class="memdesc:a1626abff63f7a1b9dc696969c860283b"><td class="mdescLeft"> </td><td class="mdescRight">Was unicode detected? <br /></td></tr>
- <tr class="separator:a1626abff63f7a1b9dc696969c860283b"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aeade8b521c7f95755fdb166727c2b87c"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#aeade8b521c7f95755fdb166727c2b87c">full_cp437</a> = false</td></tr>
- <tr class="memdesc:aeade8b521c7f95755fdb166727c2b87c"><td class="mdescLeft"> </td><td class="mdescRight">Was full CP437 detected? <a href="namespacedoor.html#aeade8b521c7f95755fdb166727c2b87c">More...</a><br /></td></tr>
- <tr class="separator:aeade8b521c7f95755fdb166727c2b87c"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ac39a1dfdb8dec210d28133625f860bc1"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#ac39a1dfdb8dec210d28133625f860bc1">debug_capture</a> = false</td></tr>
- <tr class="memdesc:ac39a1dfdb8dec210d28133625f860bc1"><td class="mdescLeft"> </td><td class="mdescRight">Capture the output for debugging. <a href="namespacedoor.html#ac39a1dfdb8dec210d28133625f860bc1">More...</a><br /></td></tr>
- <tr class="separator:ac39a1dfdb8dec210d28133625f860bc1"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ac70193caf66e4b9aed1529593727a6eb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classdoor_1_1Clrscr.html">Clrscr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#ac70193caf66e4b9aed1529593727a6eb">cls</a></td></tr>
- <tr class="separator:ac70193caf66e4b9aed1529593727a6eb"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a36352ded72aee66b10e1bda6d3d8efb8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classdoor_1_1NewLine.html">NewLine</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#a36352ded72aee66b10e1bda6d3d8efb8">nl</a></td></tr>
- <tr class="separator:a36352ded72aee66b10e1bda6d3d8efb8"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aa6a7c86274470fd22e45676ba6eebb36"><td class="memItemLeft" align="right" valign="top"><a id="aa6a7c86274470fd22e45676ba6eebb36"></a>
- const char </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#aa6a7c86274470fd22e45676ba6eebb36">SaveCursor</a> [] = "\x1b[s"</td></tr>
- <tr class="memdesc:aa6a7c86274470fd22e45676ba6eebb36"><td class="mdescLeft"> </td><td class="mdescRight">ANSI Save Cursor position command. <br /></td></tr>
- <tr class="separator:aa6a7c86274470fd22e45676ba6eebb36"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a1ae3caab423b38b35e887d79b5ac1811"><td class="memItemLeft" align="right" valign="top"><a id="a1ae3caab423b38b35e887d79b5ac1811"></a>
- const char </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#a1ae3caab423b38b35e887d79b5ac1811">RestoreCursor</a> [] = "\x1b[u"</td></tr>
- <tr class="memdesc:a1ae3caab423b38b35e887d79b5ac1811"><td class="mdescLeft"> </td><td class="mdescRight">ANSI Restore Cursor position command. <br /></td></tr>
- <tr class="separator:a1ae3caab423b38b35e887d79b5ac1811"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a3274dff22ddb19a3e429a703ee6f3e57"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacedoor.html#ad9c2405adaa0b5168bc53059b3a978c1">renderFunction</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#a3274dff22ddb19a3e429a703ee6f3e57">rBlueYellow</a></td></tr>
- <tr class="memdesc:a3274dff22ddb19a3e429a703ee6f3e57"><td class="mdescLeft"> </td><td class="mdescRight">BlueYellow <a class="el" href="classdoor_1_1Render.html" title="Rendering a string with ANSIColor.">Render</a> example function. <a href="namespacedoor.html#a3274dff22ddb19a3e429a703ee6f3e57">More...</a><br /></td></tr>
- <tr class="separator:a3274dff22ddb19a3e429a703ee6f3e57"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aeafa2ff6deb9ddddaab458b89f10c4e6"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structdoor_1_1box__styles.html">box_styles</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#aeafa2ff6deb9ddddaab458b89f10c4e6">UBOXES</a> []</td></tr>
- <tr class="memdesc:aeafa2ff6deb9ddddaab458b89f10c4e6"><td class="mdescLeft"> </td><td class="mdescRight">Unicode box characters. <a href="namespacedoor.html#aeafa2ff6deb9ddddaab458b89f10c4e6">More...</a><br /></td></tr>
- <tr class="separator:aeafa2ff6deb9ddddaab458b89f10c4e6"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a018157cf945eeb22c9a1bc4fefff84ed"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structdoor_1_1box__styles.html">box_styles</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#a018157cf945eeb22c9a1bc4fefff84ed">BOXES</a> []</td></tr>
- <tr class="memdesc:a018157cf945eeb22c9a1bc4fefff84ed"><td class="mdescLeft"> </td><td class="mdescRight">CP437 box characters. <a href="namespacedoor.html#a018157cf945eeb22c9a1bc4fefff84ed">More...</a><br /></td></tr>
- <tr class="separator:a018157cf945eeb22c9a1bc4fefff84ed"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aa7aaca15a8885a3ef3a6c85cd40ae617"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#aa7aaca15a8885a3ef3a6c85cd40ae617">JOIN</a> [2][2][2]</td></tr>
- <tr class="memdesc:aa7aaca15a8885a3ef3a6c85cd40ae617"><td class="mdescLeft"> </td><td class="mdescRight">CP437 box line joining data. <a href="namespacedoor.html#aa7aaca15a8885a3ef3a6c85cd40ae617">More...</a><br /></td></tr>
- <tr class="separator:aa7aaca15a8885a3ef3a6c85cd40ae617"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ad19e1b85072846f56b4f578410a5587e"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#ad19e1b85072846f56b4f578410a5587e">UJOIN</a> [2][2][2]</td></tr>
- <tr class="memdesc:ad19e1b85072846f56b4f578410a5587e"><td class="mdescLeft"> </td><td class="mdescRight">Unicode box line joining data SINGLE 0, DOUBLE 1 Join Border to <a class="el" href="classdoor_1_1Line.html" title="Text and ANSIColor.">Line</a>, 0 is Left, 1 is Right. <a href="namespacedoor.html#ad19e1b85072846f56b4f578410a5587e">More...</a><br /></td></tr>
- <tr class="separator:ad19e1b85072846f56b4f578410a5587e"><td class="memSeparator" colspan="2"> </td></tr>
- </table>
- <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
- <div class="textblock"><p>The BBS door project. This is an attempt at writing a C++ BBS door toolkit. </p>
- </div><h2 class="groupheader">Typedef Documentation</h2>
- <a id="ad9c2405adaa0b5168bc53059b3a978c1"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ad9c2405adaa0b5168bc53059b3a978c1">◆ </a></span>renderFunction</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">typedef std::function<<a class="el" href="classdoor_1_1Render.html">Render</a>(const std::string &)> <a class="el" href="namespacedoor.html#ad9c2405adaa0b5168bc53059b3a978c1">door::renderFunction</a></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p><a class="el" href="classdoor_1_1Render.html" title="Rendering a string with ANSIColor.">Render</a> output function. </p>
- <p>This defines the render output function. Given the line text, we output the color codes needs to display the line.</p>
- <div class="fragment"><div class="line"><a class="code" href="classdoor_1_1ANSIColor.html">door::ANSIColor</a> upperColor, lowerColor;</div>
- <div class="line"> </div>
- <div class="line">door::RenderFunction render = [upperColor, lowerColor]</div>
- <div class="line"> (<span class="keyword">const</span> std::string &text) -> <a class="code" href="classdoor_1_1Render.html">door::Render</a> {</div>
- <div class="line"> <a class="code" href="classdoor_1_1Render.html">door::Render</a> r(text);</div>
- <div class="line"> <span class="keywordflow">for</span> (<span class="keywordtype">char</span> <span class="keyword">const</span> &c : text) {</div>
- <div class="line"> <span class="keywordflow">if</span> (std::isupper(c))</div>
- <div class="line"> r.append(upperColor);</div>
- <div class="line"> <span class="keywordflow">else</span></div>
- <div class="line"> r.append(lowerColor);</div>
- <div class="line"> }</div>
- <div class="line"> <span class="keywordflow">return</span> r;</div>
- <div class="line">};</div>
- </div><!-- fragment -->
- </div>
- </div>
- <a id="adb2697f83f8ce701366e05ed72c97d6e"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#adb2697f83f8ce701366e05ed72c97d6e">◆ </a></span>updateFunction</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">typedef std::function<std::string(void)> <a class="el" href="namespacedoor.html#adb2697f83f8ce701366e05ed72c97d6e">door::updateFunction</a></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>This defines the update function.</p>
- <p>This updates the text.</p>
- <div class="fragment"><div class="line"><span class="keywordtype">int</span> score = 0;</div>
- <div class="line"> </div>
- <div class="line"><a class="code" href="namespacedoor.html#adb2697f83f8ce701366e05ed72c97d6e">door::updateFunction</a> updater = [](void) -> std::string {</div>
- <div class="line"> std::string text = <span class="stringliteral">"Score: "</span>;</div>
- <div class="line"> text += std::to_string(score);</div>
- <div class="line"> <span class="keywordflow">return</span> text;</div>
- <div class="line">};</div>
- <div class="line"> </div>
- <div class="line">fancyLine.setUpdater(updater);</div>
- </div><!-- fragment -->
- </div>
- </div>
- <h2 class="groupheader">Enumeration Type Documentation</h2>
- <a id="add24f9a933f9a6e613de6d56854e5c52"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#add24f9a933f9a6e613de6d56854e5c52">◆ </a></span>ATTR</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">enum <a class="el" href="namespacedoor.html#add24f9a933f9a6e613de6d56854e5c52">door::ATTR</a> : std::int8_t</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">strong</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>ANSI-BBS text attributes. </p>
- <table class="fieldtable">
- <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="add24f9a933f9a6e613de6d56854e5c52ab5859d8721cfdc0312b2838b9c985bc1"></a>RESET </td><td class="fielddoc"><p>RESET forces all attributes (and Colors) to be sent. </p>
- </td></tr>
- <tr><td class="fieldname"><a id="add24f9a933f9a6e613de6d56854e5c52a2909dd0e0336f10b6da9735b859a3d19"></a>BOLD </td><td class="fielddoc"><p>BOLD is the same as BRIGHT. </p>
- </td></tr>
- <tr><td class="fieldname"><a id="add24f9a933f9a6e613de6d56854e5c52aca78b38b9fe41e51b331abe6999a1040"></a>BRIGHT </td><td class="fielddoc"><p>BRIGHT is the same as BOLD. </p>
- </td></tr>
- <tr><td class="fieldname"><a id="add24f9a933f9a6e613de6d56854e5c52ad810ed8e97088a3c987f179dfb88cefc"></a>BLINK </td><td class="fielddoc"><p>SLOW BLINK. </p>
- </td></tr>
- <tr><td class="fieldname"><a id="add24f9a933f9a6e613de6d56854e5c52a1955bdc302911f376074eb9b02e56639"></a>INVERSE </td><td class="fielddoc"><p>INVERSE is Background on Foreground. </p>
- </td></tr>
- </table>
- </div>
- </div>
- <a id="a08afbc9eecb6efd7d4c741023b11db91"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a08afbc9eecb6efd7d4c741023b11db91">◆ </a></span>BorderStyle</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">enum <a class="el" href="namespacedoor.html#a08afbc9eecb6efd7d4c741023b11db91">door::BorderStyle</a></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">strong</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>The different Borders supported by <a class="el" href="classdoor_1_1Panel.html">Panel</a>. </p>
- <table class="fieldtable">
- <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a08afbc9eecb6efd7d4c741023b11db91ab50339a10e1de285ac99d4c3990b8693"></a>NONE </td><td class="fielddoc"><p>NONE (0) </p>
- </td></tr>
- <tr><td class="fieldname"><a id="a08afbc9eecb6efd7d4c741023b11db91a0679273e201afd0bf57af3961f8a23b8"></a>SINGLE </td><td class="fielddoc"><p>SINGLE (1) </p>
- </td></tr>
- <tr><td class="fieldname"><a id="a08afbc9eecb6efd7d4c741023b11db91afd3e4ece78a7d422280d5ed379482229"></a>DOUBLE </td><td class="fielddoc"><p>DOUBLE (2) </p>
- </td></tr>
- <tr><td class="fieldname"><a id="a08afbc9eecb6efd7d4c741023b11db91a6dfbebc428d74ec8a1552722ceccda3a"></a>SINGLE_DOUBLE </td><td class="fielddoc"><p>SINGLE top DOUBLE side (3) </p>
- </td></tr>
- <tr><td class="fieldname"><a id="a08afbc9eecb6efd7d4c741023b11db91acc939b66711e314a026eba1532bec367"></a>DOUBLE_SINGLE </td><td class="fielddoc"><p>DOUBLE top SINGLE side (4) </p>
- </td></tr>
- <tr><td class="fieldname"><a id="a08afbc9eecb6efd7d4c741023b11db91a56f031dd03707d695f76c63ddbf40bd7"></a>BLANK </td><td class="fielddoc"><p>BLANK (5) </p>
- </td></tr>
- </table>
- </div>
- </div>
- <a id="abafe0a9e79349883af3ab2a7fb544366"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#abafe0a9e79349883af3ab2a7fb544366">◆ </a></span>COLOR</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">enum <a class="el" href="namespacedoor.html#abafe0a9e79349883af3ab2a7fb544366">door::COLOR</a> : std::int8_t</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">strong</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>The colors available under ANSI-BBS. </p>
- <p>ANSI Color codes </p>
- <table class="fieldtable">
- <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="abafe0a9e79349883af3ab2a7fb544366a08d0012388564e95c3b4a7407cf04965"></a>BLACK </td><td class="fielddoc"><p>BLACK (0) </p>
- </td></tr>
- <tr><td class="fieldname"><a id="abafe0a9e79349883af3ab2a7fb544366aa2d9547b5d3dd9f05984475f7c926da0"></a>RED </td><td class="fielddoc"><p>RED (1) </p>
- </td></tr>
- <tr><td class="fieldname"><a id="abafe0a9e79349883af3ab2a7fb544366a9de0e5dd94e861317e74964bed179fa0"></a>GREEN </td><td class="fielddoc"><p>GREEN (2) </p>
- </td></tr>
- <tr><td class="fieldname"><a id="abafe0a9e79349883af3ab2a7fb544366a493cacf6f6a2ae4798b319b8b9ba9488"></a>BROWN </td><td class="fielddoc"><p>BROWN (3) </p>
- </td></tr>
- <tr><td class="fieldname"><a id="abafe0a9e79349883af3ab2a7fb544366a8a568e5f41b7e4da88fe5c4a00aad34e"></a>YELLOW </td><td class="fielddoc"><p>YELLOW (3) </p>
- </td></tr>
- <tr><td class="fieldname"><a id="abafe0a9e79349883af3ab2a7fb544366a1b3e1ee9bff86431dea6b181365ba65f"></a>BLUE </td><td class="fielddoc"><p>BLUE (4) </p>
- </td></tr>
- <tr><td class="fieldname"><a id="abafe0a9e79349883af3ab2a7fb544366ac634ffea7195608364671ac52ee59a61"></a>MAGENTA </td><td class="fielddoc"><p>MAGENTA (5) </p>
- </td></tr>
- <tr><td class="fieldname"><a id="abafe0a9e79349883af3ab2a7fb544366a344dd8cd533280795b9db82ef0c92749"></a>CYAN </td><td class="fielddoc"><p>CYAN (6) </p>
- </td></tr>
- <tr><td class="fieldname"><a id="abafe0a9e79349883af3ab2a7fb544366ab5bf627e448384cf3a4c35121ca6008d"></a>WHITE </td><td class="fielddoc"><p>WHITE (7) </p>
- </td></tr>
- </table>
- </div>
- </div>
- <a id="af025775fb0b68d66dc42ee3299444fb7"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#af025775fb0b68d66dc42ee3299444fb7">◆ </a></span>Justify</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">enum <a class="el" href="namespacedoor.html#af025775fb0b68d66dc42ee3299444fb7">door::Justify</a></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">strong</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000001">Deprecated:</a></b></dt><dd>Not used </dd></dl>
- </div>
- </div>
- <h2 class="groupheader">Function Documentation</h2>
- <a id="a7e94df0d0af14da619835aa90cfa8f2a"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a7e94df0d0af14da619835aa90cfa8f2a">◆ </a></span>cp437toUnicode() <span class="overload">[1/2]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void door::cp437toUnicode </td>
- <td>(</td>
- <td class="paramtype">const char * </td>
- <td class="paramname"><em>input</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">std::string & </td>
- <td class="paramname"><em>out</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Convert from CP437 to unicode. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">input</td><td></td></tr>
- <tr><td class="paramname">out</td><td></td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a id="a5efa4fb96eacd6b90e5cbb0bd985f3fc"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a5efa4fb96eacd6b90e5cbb0bd985f3fc">◆ </a></span>cp437toUnicode() <span class="overload">[2/2]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void door::cp437toUnicode </td>
- <td>(</td>
- <td class="paramtype">std::string </td>
- <td class="paramname"><em>input</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">std::string & </td>
- <td class="paramname"><em>out</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Convert from CP437 to unicode. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">input</td><td></td></tr>
- <tr><td class="paramname">out</td><td></td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a id="ae6c40e2e917f64a9c42d977a88fe18fa"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ae6c40e2e917f64a9c42d977a88fe18fa">◆ </a></span>operator<<() <span class="overload">[1/7]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">std::ostream& door::operator<< </td>
- <td>(</td>
- <td class="paramtype">std::ostream & </td>
- <td class="paramname"><em>os</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const <a class="el" href="classdoor_1_1ANSIColor.html">ANSIColor</a> & </td>
- <td class="paramname"><em>c</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>This converts ANSI <a class="el" href="namespacedoor.html#abafe0a9e79349883af3ab2a7fb544366">COLOR</a> and <a class="el" href="namespacedoor.html#add24f9a933f9a6e613de6d56854e5c52">ATTR</a> to ANSI codes understood by the <a class="el" href="classdoor_1_1Door.html">Door</a> output class. </p>
- </div>
- </div>
- <a id="ad5d6277de5e8274cec970a4633d713b1"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ad5d6277de5e8274cec970a4633d713b1">◆ </a></span>operator<<() <span class="overload">[2/7]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">std::ostream& door::operator<< </td>
- <td>(</td>
- <td class="paramtype">std::ostream & </td>
- <td class="paramname"><em>os</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const <a class="el" href="classdoor_1_1Clrscr.html">Clrscr</a> & </td>
- <td class="paramname"><em>clr</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Clear the screen using ANSI codes.</p>
- <p>Not all systems home the cursor after clearing the screen. We automatically home the cursor as well.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">os</td><td>std::ostream& </td></tr>
- <tr><td class="paramname">clr</td><td>const <a class="el" href="classdoor_1_1Clrscr.html" title="Clear the screen.">Clrscr</a>& </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>std::ostream& </dd></dl>
- </div>
- </div>
- <a id="aae6ca4805185baa51dcc661a69fa801b"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aae6ca4805185baa51dcc661a69fa801b">◆ </a></span>operator<<() <span class="overload">[3/7]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">std::ostream& door::operator<< </td>
- <td>(</td>
- <td class="paramtype">std::ostream & </td>
- <td class="paramname"><em>os</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const <a class="el" href="classdoor_1_1Goto.html">Goto</a> & </td>
- <td class="paramname"><em>g</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Output the ANSI codes to position the cursor to the given y,x position.</p>
- <dl class="todo"><dt><b><a class="el" href="todo.html#_todo000002">Todo:</a></b></dt><dd><p class="startdd">Optimize the ANSI goto string output. </p>
- <p class="enddd">Update the <a class="el" href="classdoor_1_1Door.html">Door</a> object so it know where the cursor is positioned.</p>
- </dd></dl>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">os</td><td>std::ostream </td></tr>
- <tr><td class="paramname">g</td><td>const <a class="el" href="classdoor_1_1Goto.html" title="ANSI Goto X, Y position.">Goto</a> </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>std::ostream& </dd></dl>
- </div>
- </div>
- <a id="af3c1c222a45143cfa4e780cfb2e45243"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#af3c1c222a45143cfa4e780cfb2e45243">◆ </a></span>operator<<() <span class="overload">[4/7]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">std::ostream& door::operator<< </td>
- <td>(</td>
- <td class="paramtype">std::ostream & </td>
- <td class="paramname"><em>os</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const <a class="el" href="classdoor_1_1Line.html">Line</a> & </td>
- <td class="paramname"><em>l</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Output <a class="el" href="classdoor_1_1Line.html" title="Text and ANSIColor.">Line</a></p>
- <p>This looks for padding and paddingColor. This uses the render function if set.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">os</td><td>std::ostream </td></tr>
- <tr><td class="paramname">l</td><td>const <a class="el" href="classdoor_1_1Line.html" title="Text and ANSIColor.">Line</a> & </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>std::ostream& </dd></dl>
- </div>
- </div>
- <a id="aa6b909ef984a2aabc5b9a570884dff94"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aa6b909ef984a2aabc5b9a570884dff94">◆ </a></span>operator<<() <span class="overload">[5/7]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">std::ostream& door::operator<< </td>
- <td>(</td>
- <td class="paramtype">std::ostream & </td>
- <td class="paramname"><em>os</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const <a class="el" href="classdoor_1_1NewLine.html">NewLine</a> & </td>
- <td class="paramname"><em>nl</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Output Newline + CarriageReturn </p><dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">os</td><td>std::ostream </td></tr>
- <tr><td class="paramname">nl</td><td>const <a class="el" href="classdoor_1_1NewLine.html" title="CR+LF.">NewLine</a> </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>std::ostream& </dd></dl>
- </div>
- </div>
- <a id="a10848399ef2da2947ceb98b7707a688f"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a10848399ef2da2947ceb98b7707a688f">◆ </a></span>operator<<() <span class="overload">[6/7]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">std::ostream& door::operator<< </td>
- <td>(</td>
- <td class="paramtype">std::ostream & </td>
- <td class="paramname"><em>os</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const <a class="el" href="classdoor_1_1Panel.html">Panel</a> & </td>
- <td class="paramname"><em>p</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Output panel to stream. </p>
- <p>This uses the Panel.x, Panel.y to render the panel using ANSI control codes. Border style is considered, and wether or not we are using unicode. Colors of the border, and lines use their color or their renderFunction. </p><dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">os</td><td></td></tr>
- <tr><td class="paramname">p</td><td></td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>std::ostream& </dd></dl>
- </div>
- </div>
- <a id="a5ca5f798bc38b4e5dc1e482ace47b7df"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a5ca5f798bc38b4e5dc1e482ace47b7df">◆ </a></span>operator<<() <span class="overload">[7/7]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">std::ostream& door::operator<< </td>
- <td>(</td>
- <td class="paramtype">std::ostream & </td>
- <td class="paramname"><em>os</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const <a class="el" href="classdoor_1_1Screen.html">Screen</a> & </td>
- <td class="paramname"><em>s</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Outputs screen to stream. </p>
- <p>This iterates over panels, and outputs them. See <a class="el" href="classdoor_1_1Panel.html">door::Panel</a></p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramdir">[in,out]</td><td class="paramname">os</td><td>Stream </td></tr>
- <tr><td class="paramdir">[in]</td><td class="paramname">s</td><td><a class="el" href="classdoor_1_1Screen.html">Screen</a> to send </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>std::ostream& </dd></dl>
- </div>
- </div>
- <a id="a5cc0209e9203231d1bdb1e6b7f0876c3"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a5cc0209e9203231d1bdb1e6b7f0876c3">◆ </a></span>replace() <span class="overload">[1/2]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">bool door::replace </td>
- <td>(</td>
- <td class="paramtype">std::string & </td>
- <td class="paramname"><em>str</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const char * </td>
- <td class="paramname"><em>from</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const char * </td>
- <td class="paramname"><em>to</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Replace all instances of from with to. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">str</td><td></td></tr>
- <tr><td class="paramname">from</td><td></td></tr>
- <tr><td class="paramname">to</td><td></td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>true </dd>
- <dd>
- false </dd></dl>
- </div>
- </div>
- <a id="acba445fc4d33e1b0c1ff2b648cc2899d"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#acba445fc4d33e1b0c1ff2b648cc2899d">◆ </a></span>replace() <span class="overload">[2/2]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">bool door::replace </td>
- <td>(</td>
- <td class="paramtype">std::string & </td>
- <td class="paramname"><em>str</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const std::string & </td>
- <td class="paramname"><em>from</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const std::string & </td>
- <td class="paramname"><em>to</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Replaces one string with another once. </p>
- <p>Returns true if replaced.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramdir">[in,out]</td><td class="paramname">str</td><td>String to modify </td></tr>
- <tr><td class="paramdir">[in]</td><td class="paramname">from</td><td>String to search for </td></tr>
- <tr><td class="paramdir">[in]</td><td class="paramname">to</td><td>String to replace with </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>true </dd>
- <dd>
- false </dd></dl>
- </div>
- </div>
- <a id="a4fc2f3f7f1b3908cb71bd1d275594fe9"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a4fc2f3f7f1b3908cb71bd1d275594fe9">◆ </a></span>sig_handler()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void door::sig_handler </td>
- <td>(</td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>signal</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Signal handler for detecting hangup/broken pipe. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">signal</td><td></td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a id="afa94e91868d469077e4d3b400dedfd6c"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#afa94e91868d469077e4d3b400dedfd6c">◆ </a></span>to_lower()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void door::to_lower </td>
- <td>(</td>
- <td class="paramtype">std::string & </td>
- <td class="paramname"><em>text</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>convert string to lowercase </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">text</td><td></td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <h2 class="groupheader">Variable Documentation</h2>
- <a id="a018157cf945eeb22c9a1bc4fefff84ed"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a018157cf945eeb22c9a1bc4fefff84ed">◆ </a></span>BOXES</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">struct <a class="el" href="structdoor_1_1box__styles.html">box_styles</a> door::BOXES[]</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>CP437 box characters. </p>
- <p>top-left, top-right, top, side, bottom-left, bottom-right, middle-left, middle-right See <a class="el" href="namespacedoor.html#a08afbc9eecb6efd7d4c741023b11db91">BorderStyle</a> for the order the boxes are in. </p>
- </div>
- </div>
- <a id="ac70193caf66e4b9aed1529593727a6eb"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ac70193caf66e4b9aed1529593727a6eb">◆ </a></span>cls</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="classdoor_1_1Clrscr.html">Clrscr</a> door::cls</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Clear the BBS terminal. </p>
- <dl class="section examples"><dt>Examples</dt><dd><a class="el" href="menu-example_8cpp-example.html#a2">menu-example.cpp</a>.</dd>
- </dl>
- </div>
- </div>
- <a id="ac39a1dfdb8dec210d28133625f860bc1"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ac39a1dfdb8dec210d28133625f860bc1">◆ </a></span>debug_capture</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">bool door::debug_capture = false</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Capture the output for debugging. </p>
- <p>This is used by the tests. </p>
- </div>
- </div>
- <a id="aeade8b521c7f95755fdb166727c2b87c"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aeade8b521c7f95755fdb166727c2b87c">◆ </a></span>full_cp437</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">bool door::full_cp437 = false</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Was full CP437 detected? </p>
- <p>This is for full CP437 support, meaning it also supports hearts, diamonds, spades, clubs char(3)..char(6). These are sometimes ignored by CP437 translation programs as control codes. </p>
- </div>
- </div>
- <a id="aa7aaca15a8885a3ef3a6c85cd40ae617"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aa7aaca15a8885a3ef3a6c85cd40ae617">◆ </a></span>JOIN</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">const char* door::JOIN[2][2][2]</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <b>Initial value:</b><div class="fragment"><div class="line">= {{</div>
- <div class="line"> {<span class="stringliteral">"\xc3"</span>, <span class="stringliteral">"\xb4"</span>}, </div>
- <div class="line"> {<span class="stringliteral">"\xc6"</span>, <span class="stringliteral">"\xb5"</span>} </div>
- <div class="line"> },</div>
- <div class="line"> {</div>
- <div class="line"> {<span class="stringliteral">"\xc7"</span>, <span class="stringliteral">"\xb6"</span>}, </div>
- <div class="line"> {<span class="stringliteral">"\xcc"</span>, <span class="stringliteral">"\xb9"</span>}, </div>
- <div class="line"> }}</div>
- </div><!-- fragment -->
- <p>CP437 box line joining data. </p>
- <p>SINGLE 0, DOUBLE 1 Join Border to <a class="el" href="classdoor_1_1Line.html" title="Text and ANSIColor.">Line</a>, 0 is Left, 1 is Right. </p>
- </div>
- </div>
- <a id="a36352ded72aee66b10e1bda6d3d8efb8"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a36352ded72aee66b10e1bda6d3d8efb8">◆ </a></span>nl</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="classdoor_1_1NewLine.html">NewLine</a> door::nl</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>CRLF </p>
- <dl class="section examples"><dt>Examples</dt><dd><a class="el" href="menu-example_8cpp-example.html#a3">menu-example.cpp</a>.</dd>
- </dl>
- </div>
- </div>
- <a id="a64600b79b9b73f4705859ce4efb1a2fd"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a64600b79b9b73f4705859ce4efb1a2fd">◆ </a></span>pushback</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">std::list< char > door::pushback</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>pushback buffer for keys. </p>
- <p>This allows us to peek ahead and push back characters we're not interested it. It also allows us to test the <a class="el" href="classdoor_1_1Door.html#a10d40a7089473c72c1acf5a987777404">Door::getkey</a> function. </p>
- </div>
- </div>
- <a id="a3274dff22ddb19a3e429a703ee6f3e57"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a3274dff22ddb19a3e429a703ee6f3e57">◆ </a></span>rBlueYellow</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="namespacedoor.html#ad9c2405adaa0b5168bc53059b3a978c1">renderFunction</a> door::rBlueYellow</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <b>Initial value:</b><div class="fragment"><div class="line">= [](<span class="keyword">const</span> std::string &txt) -> Render {</div>
- <div class="line"> Render r(txt);</div>
- <div class="line"> </div>
- <div class="line"> ANSIColor blue(COLOR::BLUE, ATTR::BOLD);</div>
- <div class="line"> ANSIColor cyan(COLOR::YELLOW, ATTR::BOLD);</div>
- <div class="line"> </div>
- <div class="line"> <span class="keywordflow">for</span> (<span class="keywordtype">char</span> <span class="keyword">const</span> &c : txt) {</div>
- <div class="line"> <span class="keywordflow">if</span> (isupper(c))</div>
- <div class="line"> r.append(blue);</div>
- <div class="line"> <span class="keywordflow">else</span></div>
- <div class="line"> r.append(cyan);</div>
- <div class="line"> }</div>
- <div class="line"> <span class="keywordflow">return</span> r;</div>
- <div class="line">}</div>
- </div><!-- fragment -->
- <p>BlueYellow <a class="el" href="classdoor_1_1Render.html" title="Rendering a string with ANSIColor.">Render</a> example function. </p>
- <p>Example BlueYellow renderFunction. </p>
- </div>
- </div>
- <a id="ae3a70989c43f6cb3522308af748b4481"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ae3a70989c43f6cb3522308af748b4481">◆ </a></span>reset</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="classdoor_1_1ANSIColor.html">ANSIColor</a> door::reset</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>reset colors to normal </p>
- <p>This resets the colors to normal state. </p>
- <dl class="section examples"><dt>Examples</dt><dd><a class="el" href="menu-example_8cpp-example.html#a1">menu-example.cpp</a>.</dd>
- </dl>
- </div>
- </div>
- <a id="aeafa2ff6deb9ddddaab458b89f10c4e6"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aeafa2ff6deb9ddddaab458b89f10c4e6">◆ </a></span>UBOXES</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">struct <a class="el" href="structdoor_1_1box__styles.html">box_styles</a> door::UBOXES[]</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <b>Initial value:</b><div class="fragment"><div class="line">= {{<span class="stringliteral">"\u250c"</span>, <span class="stringliteral">"\u2510"</span>, <span class="stringliteral">"\u2500"</span>, <span class="stringliteral">"\u2502"</span>, <span class="stringliteral">"\u2514"</span>,</div>
- <div class="line"> <span class="stringliteral">"\u2518"</span>, <span class="stringliteral">"\u251c"</span>, <span class="stringliteral">"\u2524"</span>},</div>
- <div class="line"> {<span class="stringliteral">"\u2554"</span>, <span class="stringliteral">"\u2557"</span>, <span class="stringliteral">"\u2550"</span>, <span class="stringliteral">"\u2551"</span>, <span class="stringliteral">"\u255a"</span>,</div>
- <div class="line"> <span class="stringliteral">"\u255d"</span>, <span class="stringliteral">"\u2560"</span>, <span class="stringliteral">"\u2563"</span>},</div>
- <div class="line"> {<span class="stringliteral">"\u2553"</span>, <span class="stringliteral">"\u2556"</span>, <span class="stringliteral">"\u2500"</span>, <span class="stringliteral">"\u2551"</span>, <span class="stringliteral">"\u2559"</span>,</div>
- <div class="line"> <span class="stringliteral">"\u255c"</span>, <span class="stringliteral">"\u255f"</span>, <span class="stringliteral">"\u2562"</span>},</div>
- <div class="line"> {<span class="stringliteral">"\u2552"</span>, <span class="stringliteral">"\u2555"</span>, <span class="stringliteral">"\u2550"</span>, <span class="stringliteral">"\u2502"</span>, <span class="stringliteral">"\u2558"</span>,</div>
- <div class="line"> <span class="stringliteral">"\u255b"</span>, <span class="stringliteral">"\u255e"</span>, <span class="stringliteral">"\u2561"</span>}}</div>
- </div><!-- fragment -->
- <p>Unicode box characters. </p>
- <p>use <a href="https://en.wikipedia.org/wiki/Code_page_437">https://en.wikipedia.org/wiki/Code_page_437</a> for translations between CP437 and unicode symbols.</p>
- <p>This holds the characters needed to render the different box styles. tl tr top side bl br ml mr top-left, top-right, top, side, bottom-left, bottom-right, middle-left, middle-right See <a class="el" href="namespacedoor.html#a08afbc9eecb6efd7d4c741023b11db91">BorderStyle</a> for the order the boxes are in. </p>
- </div>
- </div>
- <a id="ad19e1b85072846f56b4f578410a5587e"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ad19e1b85072846f56b4f578410a5587e">◆ </a></span>UJOIN</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">const char* door::UJOIN[2][2][2]</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <b>Initial value:</b><div class="fragment"><div class="line">= {{</div>
- <div class="line"> {<span class="stringliteral">"\u251c"</span>, <span class="stringliteral">"\u2524"</span>}, </div>
- <div class="line"> {<span class="stringliteral">"\u255e"</span>, <span class="stringliteral">"\u2561"</span>} </div>
- <div class="line"> },</div>
- <div class="line"> {</div>
- <div class="line"> {<span class="stringliteral">"\u255f"</span>, <span class="stringliteral">"\u2562"</span>}, </div>
- <div class="line"> {<span class="stringliteral">"\u2560"</span>, <span class="stringliteral">"\u2563"</span>}, </div>
- <div class="line"> }}</div>
- </div><!-- fragment -->
- <p>Unicode box line joining data SINGLE 0, DOUBLE 1 Join Border to <a class="el" href="classdoor_1_1Line.html" title="Text and ANSIColor.">Line</a>, 0 is Left, 1 is Right. </p>
- </div>
- </div>
- </div><!-- contents -->
- <div class="ttc" id="aclassdoor_1_1ANSIColor_html"><div class="ttname"><a href="classdoor_1_1ANSIColor.html">door::ANSIColor</a></div><div class="ttdoc">Foreground, Background and Attributes.</div><div class="ttdef"><b>Definition:</b> door.h:137</div></div>
- <div class="ttc" id="anamespacedoor_html_adb2697f83f8ce701366e05ed72c97d6e"><div class="ttname"><a href="namespacedoor.html#adb2697f83f8ce701366e05ed72c97d6e">door::updateFunction</a></div><div class="ttdeci">std::function< std::string(void)> updateFunction</div><div class="ttdef"><b>Definition:</b> door.h:374</div></div>
- <div class="ttc" id="aclassdoor_1_1Render_html"><div class="ttname"><a href="classdoor_1_1Render.html">door::Render</a></div><div class="ttdoc">Rendering a string with ANSIColor.</div><div class="ttdef"><b>Definition:</b> door.h:319</div></div>
- <!-- start footer part -->
- <hr class="footer"/><address class="footer"><small>
- Generated by  <a href="http://www.doxygen.org/index.html">
- <img class="footer" src="doxygen.png" alt="doxygen"/>
- </a> 1.8.17
- </small></address>
- </body>
- </html>
|