Files
libnx/console_8h_source.html
2018-05-09 02:54:44 +00:00

139 lines
50 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.11"/>
<title>libnx: include/switch/runtime/devices/console.h Source File</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>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</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">libnx
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul>
</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 id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_42bea3d40f1f1694e41a8f3166c98108.html">switch</a></li><li class="navelem"><a class="el" href="dir_afd0453aeaaca58db0f3a26ffe540381.html">runtime</a></li><li class="navelem"><a class="el" href="dir_8e84a2b4adc47392539d92413dc3768e.html">devices</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">console.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="console_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/**</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> * @file console.h</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> * @brief Framebuffer text console.</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> * @author yellows8</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> * @author WinterMute</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> * @copyright libnx Authors</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> * Provides stdio integration for printing to the Switch screen as well as debug print</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> * functionality provided by stderr.</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * General usage is to initialize the console by:</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> * @code</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> * consoleDemoInit()</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> * @endcode</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> * or to customize the console usage by:</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> * @code</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment"> * consoleInit()</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment"> * @endcode</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &quot;../../types.h&quot;</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#define CONSOLE_ESC(x) &quot;\x1b[&quot; #x</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#define CONSOLE_RESET CONSOLE_ESC(0m)</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#define CONSOLE_BLACK CONSOLE_ESC(30m)</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#define CONSOLE_RED CONSOLE_ESC(31;1m)</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#define CONSOLE_GREEN CONSOLE_ESC(32;1m)</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#define CONSOLE_YELLOW CONSOLE_ESC(33;1m)</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#define CONSOLE_BLUE CONSOLE_ESC(34;1m)</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="preprocessor">#define CONSOLE_MAGENTA CONSOLE_ESC(35;1m)</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="preprocessor">#define CONSOLE_CYAN CONSOLE_ESC(36;1m)</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="preprocessor">#define CONSOLE_WHITE CONSOLE_ESC(37;1m)</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="comment">/// A callback for printing a character.</span></div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="console_8h.html#a26c9115f671528f3718cf4d9663e7631"> 35</a></span>&#160;<span class="comment"></span><span class="keyword">typedef</span> bool(*<a class="code" href="console_8h.html#a26c9115f671528f3718cf4d9663e7631">ConsolePrint</a>)(<span class="keywordtype">void</span>* con, <span class="keywordtype">int</span> c);</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="comment">/// A font struct for the console.</span></div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="structConsoleFont.html"> 38</a></span>&#160;<span class="comment"></span><span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structConsoleFont.html">ConsoleFont</a></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;{</div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="structConsoleFont.html#a39b04d261a92b436dc1b5ceccabcb629"> 40</a></span>&#160; <a class="code" href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a>* <a class="code" href="structConsoleFont.html#a39b04d261a92b436dc1b5ceccabcb629">gfx</a>; <span class="comment">///&lt; A pointer to the font graphics</span></div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="structConsoleFont.html#a676b4b45082d34b8bfbd21d20e0a6444"> 41</a></span>&#160;<span class="comment"></span> <a class="code" href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a> <a class="code" href="structConsoleFont.html#a676b4b45082d34b8bfbd21d20e0a6444">asciiOffset</a>; <span class="comment">///&lt; Offset to the first valid character in the font table</span></div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="structConsoleFont.html#a741f70973f2dd71acdd7153ef3f7336d"> 42</a></span>&#160;<span class="comment"></span> <a class="code" href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a> <a class="code" href="structConsoleFont.html#a741f70973f2dd71acdd7153ef3f7336d">numChars</a>; <span class="comment">///&lt; Number of characters in the font graphics</span></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="comment"></span>}<a class="code" href="structConsoleFont.html">ConsoleFont</a>;</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;<span class="comment">/**</span></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;<span class="comment"> * @brief Console structure used to store the state of a console render context.</span></div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;<span class="comment"> * Default values from consoleGetDefault();</span></div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;<span class="comment"> * @code</span></div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;<span class="comment"> * PrintConsole defaultConsole =</span></div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;<span class="comment"> * {</span></div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;<span class="comment"> * //Font:</span></div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;<span class="comment"> * {</span></div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;<span class="comment"> * (u16*)default_font_bin, //font gfx</span></div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;<span class="comment"> * 0, //first ascii character in the set</span></div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;<span class="comment"> * 128, //number of characters in the font set</span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;<span class="comment"> * },</span></div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;<span class="comment"> * 0,0, //cursorX cursorY</span></div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;<span class="comment"> * 0,0, //prevcursorX prevcursorY</span></div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;<span class="comment"> * 80, //console width</span></div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;<span class="comment"> * 45, //console height</span></div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;<span class="comment"> * 0, //window x</span></div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;<span class="comment"> * 0, //window y</span></div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;<span class="comment"> * 80, //window width</span></div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;<span class="comment"> * 45, //window height</span></div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;<span class="comment"> * 3, //tab size</span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;<span class="comment"> * 0, //font character offset</span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;<span class="comment"> * 0, //print callback</span></div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;<span class="comment"> * false //console initialized</span></div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;<span class="comment"> * };</span></div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;<span class="comment"> * @endcode</span></div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="structPrintConsole.html"> 73</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structPrintConsole.html">PrintConsole</a></div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;{</div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="structPrintConsole.html#ad717d7741f526d595d3103d5a4e28358"> 75</a></span>&#160; <a class="code" href="structConsoleFont.html">ConsoleFont</a> <a class="code" href="structPrintConsole.html#ad717d7741f526d595d3103d5a4e28358">font</a>; <span class="comment">///&lt; Font of the console</span></div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a7ad29c4c42c6c798006de662ffe5504d"> 77</a></span>&#160; <a class="code" href="types_8h.html#afaa62991928fb9fb18ff0db62a040aba">u32</a> *<a class="code" href="structPrintConsole.html#a7ad29c4c42c6c798006de662ffe5504d">frameBuffer</a>; <span class="comment">///&lt; Framebuffer address</span></div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="structPrintConsole.html#aaa98499525bbb9c895668e482f443f61"> 78</a></span>&#160;<span class="comment"></span> <a class="code" href="types_8h.html#afaa62991928fb9fb18ff0db62a040aba">u32</a> *<a class="code" href="structPrintConsole.html#aaa98499525bbb9c895668e482f443f61">frameBuffer2</a>; <span class="comment">///&lt; Framebuffer address</span></div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a0b3c99b23f2b228279c0b080d4bbf73f"> 80</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="structPrintConsole.html#a0b3c99b23f2b228279c0b080d4bbf73f">cursorX</a>; <span class="comment">///&lt; Current X location of the cursor (as a tile offset by default)</span></div><div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a5170137741dc034414b516aebf6716d9"> 81</a></span>&#160;<span class="comment"></span> <span class="keywordtype">int</span> <a class="code" href="structPrintConsole.html#a5170137741dc034414b516aebf6716d9">cursorY</a>; <span class="comment">///&lt; Current Y location of the cursor (as a tile offset by default)</span></div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a5597cf20da49284bcb2ccadfbd095c02"> 83</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="structPrintConsole.html#a5597cf20da49284bcb2ccadfbd095c02">prevCursorX</a>; <span class="comment">///&lt; Internal state</span></div><div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a643913cb7f20767b07ecf1652b788245"> 84</a></span>&#160;<span class="comment"></span> <span class="keywordtype">int</span> <a class="code" href="structPrintConsole.html#a643913cb7f20767b07ecf1652b788245">prevCursorY</a>; <span class="comment">///&lt; Internal state</span></div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a12228047de6d55e25c7bed9427bfeda7"> 86</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="structPrintConsole.html#a12228047de6d55e25c7bed9427bfeda7">consoleWidth</a>; <span class="comment">///&lt; Width of the console hardware layer in characters</span></div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a6caefb88745fe180a9d59096d40b052a"> 87</a></span>&#160;<span class="comment"></span> <span class="keywordtype">int</span> <a class="code" href="structPrintConsole.html#a6caefb88745fe180a9d59096d40b052a">consoleHeight</a>; <span class="comment">///&lt; Height of the console hardware layer in characters</span></div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a3238a0f3691fd3742db45df2bda726cd"> 89</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="structPrintConsole.html#a3238a0f3691fd3742db45df2bda726cd">windowX</a>; <span class="comment">///&lt; Window X location in characters (not implemented)</span></div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="structPrintConsole.html#af541d301e1ee4f1a8aaecca9f78d40de"> 90</a></span>&#160;<span class="comment"></span> <span class="keywordtype">int</span> <a class="code" href="structPrintConsole.html#af541d301e1ee4f1a8aaecca9f78d40de">windowY</a>; <span class="comment">///&lt; Window Y location in characters (not implemented)</span></div><div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a7eaeb319aa6626250a18d52da7b57221"> 91</a></span>&#160;<span class="comment"></span> <span class="keywordtype">int</span> <a class="code" href="structPrintConsole.html#a7eaeb319aa6626250a18d52da7b57221">windowWidth</a>; <span class="comment">///&lt; Window width in characters (not implemented)</span></div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a97fa07262bd5a64ba5b5174e01e7128b"> 92</a></span>&#160;<span class="comment"></span> <span class="keywordtype">int</span> <a class="code" href="structPrintConsole.html#a97fa07262bd5a64ba5b5174e01e7128b">windowHeight</a>; <span class="comment">///&lt; Window height in characters (not implemented)</span></div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a4bd05d4de8d7869489891cbaee90c782"> 94</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="structPrintConsole.html#a4bd05d4de8d7869489891cbaee90c782">tabSize</a>; <span class="comment">///&lt; Size of a tab</span></div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a6b6eeecccc8e971914be5f588774305c"> 95</a></span>&#160;<span class="comment"></span> <span class="keywordtype">int</span> <a class="code" href="structPrintConsole.html#a6b6eeecccc8e971914be5f588774305c">fg</a>; <span class="comment">///&lt; Foreground color</span></div><div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a795b918b4a70b3f64fa6b493379d3bed"> 96</a></span>&#160;<span class="comment"></span> <span class="keywordtype">int</span> <a class="code" href="structPrintConsole.html#a795b918b4a70b3f64fa6b493379d3bed">bg</a>; <span class="comment">///&lt; Background color</span></div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a30ec62fecd8dd432fa16d17a25744538"> 97</a></span>&#160;<span class="comment"></span> <span class="keywordtype">int</span> <a class="code" href="structPrintConsole.html#a30ec62fecd8dd432fa16d17a25744538">flags</a>; <span class="comment">///&lt; Reverse/bright flags</span></div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="structPrintConsole.html#ac2a6a9e9c3adda6c2e6ac11e4ebb7d14"> 99</a></span>&#160; <a class="code" href="console_8h.html#a26c9115f671528f3718cf4d9663e7631">ConsolePrint</a> <a class="code" href="structPrintConsole.html#ac2a6a9e9c3adda6c2e6ac11e4ebb7d14">PrintChar</a>; <span class="comment">///&lt; Callback for printing a character. Should return true if it has handled rendering the graphics (else the print engine will attempt to render via tiles).</span></div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="structPrintConsole.html#abeb3c904af0e353bec10603044a4f705"> 101</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="structPrintConsole.html#abeb3c904af0e353bec10603044a4f705">consoleInitialised</a>; <span class="comment">///&lt; True if the console is initialized</span></div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160;<span class="comment"></span>}<a class="code" href="structPrintConsole.html">PrintConsole</a>;</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160;</div><div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="console_8h.html#a41fe600f48a6367d8807559efec50c23"> 104</a></span>&#160;<span class="preprocessor">#define CONSOLE_COLOR_BOLD (1&lt;&lt;0) </span><span class="comment">///&lt; Bold text</span></div><div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="console_8h.html#a2b150f5112f253251b71c0e20691b8f6"> 105</a></span>&#160;<span class="comment"></span>#define CONSOLE_COLOR_FAINT (1&lt;&lt;1) <span class="comment">///&lt; Faint text</span></div><div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="console_8h.html#ab42f3fc96a41cf751ec6971091495d77"> 106</a></span>&#160;<span class="comment"></span>#define CONSOLE_ITALIC (1&lt;&lt;2) <span class="comment">///&lt; Italic text</span></div><div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="console_8h.html#a3d8177cdd85a63ef7836efe4e00871e0"> 107</a></span>&#160;<span class="comment"></span>#define CONSOLE_UNDERLINE (1&lt;&lt;3) <span class="comment">///&lt; Underlined text</span></div><div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="console_8h.html#adb7259b545cc753eca543d28074c4389"> 108</a></span>&#160;<span class="comment"></span>#define CONSOLE_BLINK_SLOW (1&lt;&lt;4) <span class="comment">///&lt; Slow blinking text</span></div><div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="console_8h.html#a7afdfddea655f10c609d05b686ce36f9"> 109</a></span>&#160;<span class="comment"></span>#define CONSOLE_BLINK_FAST (1&lt;&lt;5) <span class="comment">///&lt; Fast blinking text</span></div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="console_8h.html#a0c2c4bcacad671310f6a2e19a9dd920e"> 110</a></span>&#160;<span class="comment"></span>#define CONSOLE_COLOR_REVERSE (1&lt;&lt;6) <span class="comment">///&lt; Reversed color text</span></div><div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="console_8h.html#a5f2b14ddb935b78bd666e5ec560d39c1"> 111</a></span>&#160;<span class="comment"></span>#define CONSOLE_CONCEAL (1&lt;&lt;7) <span class="comment">///&lt; Concealed text</span></div><div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="console_8h.html#a5ff7f67fc2b49604335c850701a49404"> 112</a></span>&#160;<span class="comment"></span>#define CONSOLE_CROSSED_OUT (1&lt;&lt;8) <span class="comment">///&lt; Crossed out text</span></div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160;<span class="comment">/// Console debug devices supported by libnx.</span></div><div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28"> 115</a></span>&#160;<span class="comment"></span><span class="keyword">typedef</span> <span class="keyword">enum</span> {</div><div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28af3ea53eb5c0a68a80dbeb1c0c31b6849"> 116</a></span>&#160; <a class="code" href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28af3ea53eb5c0a68a80dbeb1c0c31b6849">debugDevice_NULL</a>, <span class="comment">///&lt; Swallows prints to stderr</span></div><div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28a795dfb32f1905816a543c95e5ed17b52"> 117</a></span>&#160;<span class="comment"></span> <a class="code" href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28a795dfb32f1905816a543c95e5ed17b52">debugDevice_SVC</a>, <span class="comment">///&lt; Outputs stderr debug statements using svcOutputDebugString, which can then be captured by interactive debuggers</span></div><div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28ae5f4a5fe20d1b01a2e211cfe394325d7"> 118</a></span>&#160;<span class="comment"></span> <a class="code" href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28ae5f4a5fe20d1b01a2e211cfe394325d7">debugDevice_CONSOLE</a>, <span class="comment">///&lt; Directs stderr debug statements to Switch console window</span></div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160;<span class="comment"></span> debugDevice_3DMOO = <a class="code" href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28a795dfb32f1905816a543c95e5ed17b52">debugDevice_SVC</a>,</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;} <a class="code" href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28">debugDevice</a>;</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160;<span class="comment">/**</span></div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160;<span class="comment"> * @brief Loads the font into the console.</span></div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;<span class="comment"> * @param console Pointer to the console to update, if NULL it will update the current console.</span></div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160;<span class="comment"> * @param font The font to load.</span></div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160;<span class="keywordtype">void</span> <a class="code" href="console_8h.html#a4e271d69c07c67efe877502fe17c44e5">consoleSetFont</a>(<a class="code" href="structPrintConsole.html">PrintConsole</a>* console, <a class="code" href="structConsoleFont.html">ConsoleFont</a>* font);</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160;<span class="comment">/**</span></div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160;<span class="comment"> * @brief Sets the print window.</span></div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160;<span class="comment"> * @param console Console to set, if NULL it will set the current console window.</span></div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160;<span class="comment"> * @param x X location of the window.</span></div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160;<span class="comment"> * @param y Y location of the window.</span></div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160;<span class="comment"> * @param width Width of the window.</span></div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160;<span class="comment"> * @param height Height of the window.</span></div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160;<span class="keywordtype">void</span> <a class="code" href="console_8h.html#a4a65cfe4467b2059c6b70e15d861b563">consoleSetWindow</a>(<a class="code" href="structPrintConsole.html">PrintConsole</a>* console, <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">int</span> width, <span class="keywordtype">int</span> height);</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160;<span class="comment">/**</span></div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160;<span class="comment"> * @brief Gets a pointer to the console with the default values.</span></div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160;<span class="comment"> * This should only be used when using a single console or without changing the console that is returned, otherwise use consoleInit().</span></div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160;<span class="comment"> * @return A pointer to the console with the default values.</span></div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160;<a class="code" href="structPrintConsole.html">PrintConsole</a>* <a class="code" href="console_8h.html#a42372b48c57aeb95774e13254104def8">consoleGetDefault</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160;<span class="comment">/**</span></div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160;<span class="comment"> * @brief Make the specified console the render target.</span></div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160;<span class="comment"> * @param console A pointer to the console struct (must have been initialized with consoleInit(PrintConsole* console)).</span></div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160;<span class="comment"> * @return A pointer to the previous console.</span></div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160;<a class="code" href="structPrintConsole.html">PrintConsole</a> *<a class="code" href="console_8h.html#ac2f9e3b09fe2b65e02598ed556d9e10f">consoleSelect</a>(<a class="code" href="structPrintConsole.html">PrintConsole</a>* console);</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160;<span class="comment">/**</span></div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160;<span class="comment"> * @brief Initialise the console.</span></div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160;<span class="comment"> * @param console A pointer to the console data to initialize (if it&#39;s NULL, the default console will be used).</span></div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160;<span class="comment"> * @return A pointer to the current console.</span></div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160;<a class="code" href="structPrintConsole.html">PrintConsole</a>* <a class="code" href="console_8h.html#ada9ff8995c5e60783d6b918ae964ece1">consoleInit</a>(<a class="code" href="structPrintConsole.html">PrintConsole</a>* console);</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160;<span class="comment">/**</span></div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160;<span class="comment"> * @brief Initializes debug console output on stderr to the specified device.</span></div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160;<span class="comment"> * @param device The debug device (or devices) to output debug print statements to.</span></div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160;<span class="keywordtype">void</span> <a class="code" href="console_8h.html#ac4fe073b8a8251a5216b66eef8788da2">consoleDebugInit</a>(<a class="code" href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28">debugDevice</a> device);</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160;<span class="comment">/// Clears the screan by using iprintf(&quot;\x1b[2J&quot;);</span></div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160;<span class="comment"></span><span class="keywordtype">void</span> <a class="code" href="console_8h.html#ac62c34a3fa2a6403c690dd80022b3e34">consoleClear</a>(<span class="keywordtype">void</span>);</div><div class="ttc" id="structConsoleFont_html"><div class="ttname"><a href="structConsoleFont.html">ConsoleFont</a></div><div class="ttdoc">A font struct for the console. </div><div class="ttdef"><b>Definition:</b> console.h:38</div></div>
<div class="ttc" id="console_8h_html_ac2f9e3b09fe2b65e02598ed556d9e10f"><div class="ttname"><a href="console_8h.html#ac2f9e3b09fe2b65e02598ed556d9e10f">consoleSelect</a></div><div class="ttdeci">PrintConsole * consoleSelect(PrintConsole *console)</div><div class="ttdoc">Make the specified console the render target. </div></div>
<div class="ttc" id="structPrintConsole_html_abeb3c904af0e353bec10603044a4f705"><div class="ttname"><a href="structPrintConsole.html#abeb3c904af0e353bec10603044a4f705">PrintConsole::consoleInitialised</a></div><div class="ttdeci">bool consoleInitialised</div><div class="ttdoc">True if the console is initialized. </div><div class="ttdef"><b>Definition:</b> console.h:101</div></div>
<div class="ttc" id="structPrintConsole_html_ad717d7741f526d595d3103d5a4e28358"><div class="ttname"><a href="structPrintConsole.html#ad717d7741f526d595d3103d5a4e28358">PrintConsole::font</a></div><div class="ttdeci">ConsoleFont font</div><div class="ttdoc">Font of the console. </div><div class="ttdef"><b>Definition:</b> console.h:75</div></div>
<div class="ttc" id="console_8h_html_a26c9115f671528f3718cf4d9663e7631"><div class="ttname"><a href="console_8h.html#a26c9115f671528f3718cf4d9663e7631">ConsolePrint</a></div><div class="ttdeci">bool(* ConsolePrint)(void *con, int c)</div><div class="ttdoc">A callback for printing a character. </div><div class="ttdef"><b>Definition:</b> console.h:35</div></div>
<div class="ttc" id="types_8h_html_ace9d960e74685e2cd84b36132dbbf8aa"><div class="ttname"><a href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a></div><div class="ttdeci">uint16_t u16</div><div class="ttdoc">16-bit unsigned integer. </div><div class="ttdef"><b>Definition:</b> types.h:22</div></div>
<div class="ttc" id="structPrintConsole_html_a6caefb88745fe180a9d59096d40b052a"><div class="ttname"><a href="structPrintConsole.html#a6caefb88745fe180a9d59096d40b052a">PrintConsole::consoleHeight</a></div><div class="ttdeci">int consoleHeight</div><div class="ttdoc">Height of the console hardware layer in characters. </div><div class="ttdef"><b>Definition:</b> console.h:87</div></div>
<div class="ttc" id="structPrintConsole_html_a0b3c99b23f2b228279c0b080d4bbf73f"><div class="ttname"><a href="structPrintConsole.html#a0b3c99b23f2b228279c0b080d4bbf73f">PrintConsole::cursorX</a></div><div class="ttdeci">int cursorX</div><div class="ttdoc">Current X location of the cursor (as a tile offset by default) </div><div class="ttdef"><b>Definition:</b> console.h:80</div></div>
<div class="ttc" id="structPrintConsole_html_a7eaeb319aa6626250a18d52da7b57221"><div class="ttname"><a href="structPrintConsole.html#a7eaeb319aa6626250a18d52da7b57221">PrintConsole::windowWidth</a></div><div class="ttdeci">int windowWidth</div><div class="ttdoc">Window width in characters (not implemented) </div><div class="ttdef"><b>Definition:</b> console.h:91</div></div>
<div class="ttc" id="structPrintConsole_html_a7ad29c4c42c6c798006de662ffe5504d"><div class="ttname"><a href="structPrintConsole.html#a7ad29c4c42c6c798006de662ffe5504d">PrintConsole::frameBuffer</a></div><div class="ttdeci">u32 * frameBuffer</div><div class="ttdoc">Framebuffer address. </div><div class="ttdef"><b>Definition:</b> console.h:77</div></div>
<div class="ttc" id="structPrintConsole_html_a5170137741dc034414b516aebf6716d9"><div class="ttname"><a href="structPrintConsole.html#a5170137741dc034414b516aebf6716d9">PrintConsole::cursorY</a></div><div class="ttdeci">int cursorY</div><div class="ttdoc">Current Y location of the cursor (as a tile offset by default) </div><div class="ttdef"><b>Definition:</b> console.h:81</div></div>
<div class="ttc" id="structPrintConsole_html_a97fa07262bd5a64ba5b5174e01e7128b"><div class="ttname"><a href="structPrintConsole.html#a97fa07262bd5a64ba5b5174e01e7128b">PrintConsole::windowHeight</a></div><div class="ttdeci">int windowHeight</div><div class="ttdoc">Window height in characters (not implemented) </div><div class="ttdef"><b>Definition:</b> console.h:92</div></div>
<div class="ttc" id="structPrintConsole_html_a30ec62fecd8dd432fa16d17a25744538"><div class="ttname"><a href="structPrintConsole.html#a30ec62fecd8dd432fa16d17a25744538">PrintConsole::flags</a></div><div class="ttdeci">int flags</div><div class="ttdoc">Reverse/bright flags. </div><div class="ttdef"><b>Definition:</b> console.h:97</div></div>
<div class="ttc" id="structPrintConsole_html_af541d301e1ee4f1a8aaecca9f78d40de"><div class="ttname"><a href="structPrintConsole.html#af541d301e1ee4f1a8aaecca9f78d40de">PrintConsole::windowY</a></div><div class="ttdeci">int windowY</div><div class="ttdoc">Window Y location in characters (not implemented) </div><div class="ttdef"><b>Definition:</b> console.h:90</div></div>
<div class="ttc" id="structConsoleFont_html_a676b4b45082d34b8bfbd21d20e0a6444"><div class="ttname"><a href="structConsoleFont.html#a676b4b45082d34b8bfbd21d20e0a6444">ConsoleFont::asciiOffset</a></div><div class="ttdeci">u16 asciiOffset</div><div class="ttdoc">Offset to the first valid character in the font table. </div><div class="ttdef"><b>Definition:</b> console.h:41</div></div>
<div class="ttc" id="console_8h_html_ab80a9da3fec1fbf425035eeaa9b51c28ae5f4a5fe20d1b01a2e211cfe394325d7"><div class="ttname"><a href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28ae5f4a5fe20d1b01a2e211cfe394325d7">debugDevice_CONSOLE</a></div><div class="ttdoc">Directs stderr debug statements to Switch console window. </div><div class="ttdef"><b>Definition:</b> console.h:118</div></div>
<div class="ttc" id="types_8h_html_afaa62991928fb9fb18ff0db62a040aba"><div class="ttname"><a href="types_8h.html#afaa62991928fb9fb18ff0db62a040aba">u32</a></div><div class="ttdeci">uint32_t u32</div><div class="ttdoc">32-bit unsigned integer. </div><div class="ttdef"><b>Definition:</b> types.h:23</div></div>
<div class="ttc" id="console_8h_html_ab80a9da3fec1fbf425035eeaa9b51c28a795dfb32f1905816a543c95e5ed17b52"><div class="ttname"><a href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28a795dfb32f1905816a543c95e5ed17b52">debugDevice_SVC</a></div><div class="ttdoc">Outputs stderr debug statements using svcOutputDebugString, which can then be captured by interactive...</div><div class="ttdef"><b>Definition:</b> console.h:117</div></div>
<div class="ttc" id="console_8h_html_ab80a9da3fec1fbf425035eeaa9b51c28"><div class="ttname"><a href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28">debugDevice</a></div><div class="ttdeci">debugDevice</div><div class="ttdoc">Console debug devices supported by libnx. </div><div class="ttdef"><b>Definition:</b> console.h:115</div></div>
<div class="ttc" id="console_8h_html_ac4fe073b8a8251a5216b66eef8788da2"><div class="ttname"><a href="console_8h.html#ac4fe073b8a8251a5216b66eef8788da2">consoleDebugInit</a></div><div class="ttdeci">void consoleDebugInit(debugDevice device)</div><div class="ttdoc">Initializes debug console output on stderr to the specified device. </div></div>
<div class="ttc" id="structPrintConsole_html_ac2a6a9e9c3adda6c2e6ac11e4ebb7d14"><div class="ttname"><a href="structPrintConsole.html#ac2a6a9e9c3adda6c2e6ac11e4ebb7d14">PrintConsole::PrintChar</a></div><div class="ttdeci">ConsolePrint PrintChar</div><div class="ttdoc">Callback for printing a character. Should return true if it has handled rendering the graphics (else ...</div><div class="ttdef"><b>Definition:</b> console.h:99</div></div>
<div class="ttc" id="structPrintConsole_html_a643913cb7f20767b07ecf1652b788245"><div class="ttname"><a href="structPrintConsole.html#a643913cb7f20767b07ecf1652b788245">PrintConsole::prevCursorY</a></div><div class="ttdeci">int prevCursorY</div><div class="ttdoc">Internal state. </div><div class="ttdef"><b>Definition:</b> console.h:84</div></div>
<div class="ttc" id="console_8h_html_a4a65cfe4467b2059c6b70e15d861b563"><div class="ttname"><a href="console_8h.html#a4a65cfe4467b2059c6b70e15d861b563">consoleSetWindow</a></div><div class="ttdeci">void consoleSetWindow(PrintConsole *console, int x, int y, int width, int height)</div><div class="ttdoc">Sets the print window. </div></div>
<div class="ttc" id="structPrintConsole_html_a3238a0f3691fd3742db45df2bda726cd"><div class="ttname"><a href="structPrintConsole.html#a3238a0f3691fd3742db45df2bda726cd">PrintConsole::windowX</a></div><div class="ttdeci">int windowX</div><div class="ttdoc">Window X location in characters (not implemented) </div><div class="ttdef"><b>Definition:</b> console.h:89</div></div>
<div class="ttc" id="console_8h_html_a4e271d69c07c67efe877502fe17c44e5"><div class="ttname"><a href="console_8h.html#a4e271d69c07c67efe877502fe17c44e5">consoleSetFont</a></div><div class="ttdeci">void consoleSetFont(PrintConsole *console, ConsoleFont *font)</div><div class="ttdoc">Loads the font into the console. </div></div>
<div class="ttc" id="console_8h_html_ab80a9da3fec1fbf425035eeaa9b51c28af3ea53eb5c0a68a80dbeb1c0c31b6849"><div class="ttname"><a href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28af3ea53eb5c0a68a80dbeb1c0c31b6849">debugDevice_NULL</a></div><div class="ttdoc">Swallows prints to stderr. </div><div class="ttdef"><b>Definition:</b> console.h:116</div></div>
<div class="ttc" id="structPrintConsole_html_a6b6eeecccc8e971914be5f588774305c"><div class="ttname"><a href="structPrintConsole.html#a6b6eeecccc8e971914be5f588774305c">PrintConsole::fg</a></div><div class="ttdeci">int fg</div><div class="ttdoc">Foreground color. </div><div class="ttdef"><b>Definition:</b> console.h:95</div></div>
<div class="ttc" id="structPrintConsole_html_a5597cf20da49284bcb2ccadfbd095c02"><div class="ttname"><a href="structPrintConsole.html#a5597cf20da49284bcb2ccadfbd095c02">PrintConsole::prevCursorX</a></div><div class="ttdeci">int prevCursorX</div><div class="ttdoc">Internal state. </div><div class="ttdef"><b>Definition:</b> console.h:83</div></div>
<div class="ttc" id="structConsoleFont_html_a39b04d261a92b436dc1b5ceccabcb629"><div class="ttname"><a href="structConsoleFont.html#a39b04d261a92b436dc1b5ceccabcb629">ConsoleFont::gfx</a></div><div class="ttdeci">u16 * gfx</div><div class="ttdoc">A pointer to the font graphics. </div><div class="ttdef"><b>Definition:</b> console.h:40</div></div>
<div class="ttc" id="structPrintConsole_html_a12228047de6d55e25c7bed9427bfeda7"><div class="ttname"><a href="structPrintConsole.html#a12228047de6d55e25c7bed9427bfeda7">PrintConsole::consoleWidth</a></div><div class="ttdeci">int consoleWidth</div><div class="ttdoc">Width of the console hardware layer in characters. </div><div class="ttdef"><b>Definition:</b> console.h:86</div></div>
<div class="ttc" id="structPrintConsole_html_a4bd05d4de8d7869489891cbaee90c782"><div class="ttname"><a href="structPrintConsole.html#a4bd05d4de8d7869489891cbaee90c782">PrintConsole::tabSize</a></div><div class="ttdeci">int tabSize</div><div class="ttdoc">Size of a tab. </div><div class="ttdef"><b>Definition:</b> console.h:94</div></div>
<div class="ttc" id="structConsoleFont_html_a741f70973f2dd71acdd7153ef3f7336d"><div class="ttname"><a href="structConsoleFont.html#a741f70973f2dd71acdd7153ef3f7336d">ConsoleFont::numChars</a></div><div class="ttdeci">u16 numChars</div><div class="ttdoc">Number of characters in the font graphics. </div><div class="ttdef"><b>Definition:</b> console.h:42</div></div>
<div class="ttc" id="console_8h_html_ac62c34a3fa2a6403c690dd80022b3e34"><div class="ttname"><a href="console_8h.html#ac62c34a3fa2a6403c690dd80022b3e34">consoleClear</a></div><div class="ttdeci">void consoleClear(void)</div><div class="ttdoc">Clears the screan by using iprintf(&quot;\x1b[2J&quot;);. </div></div>
<div class="ttc" id="console_8h_html_a42372b48c57aeb95774e13254104def8"><div class="ttname"><a href="console_8h.html#a42372b48c57aeb95774e13254104def8">consoleGetDefault</a></div><div class="ttdeci">PrintConsole * consoleGetDefault(void)</div><div class="ttdoc">Gets a pointer to the console with the default values. </div></div>
<div class="ttc" id="structPrintConsole_html"><div class="ttname"><a href="structPrintConsole.html">PrintConsole</a></div><div class="ttdoc">Console structure used to store the state of a console render context. </div><div class="ttdef"><b>Definition:</b> console.h:73</div></div>
<div class="ttc" id="console_8h_html_ada9ff8995c5e60783d6b918ae964ece1"><div class="ttname"><a href="console_8h.html#ada9ff8995c5e60783d6b918ae964ece1">consoleInit</a></div><div class="ttdeci">PrintConsole * consoleInit(PrintConsole *console)</div><div class="ttdoc">Initialise the console. </div></div>
<div class="ttc" id="structPrintConsole_html_aaa98499525bbb9c895668e482f443f61"><div class="ttname"><a href="structPrintConsole.html#aaa98499525bbb9c895668e482f443f61">PrintConsole::frameBuffer2</a></div><div class="ttdeci">u32 * frameBuffer2</div><div class="ttdoc">Framebuffer address. </div><div class="ttdef"><b>Definition:</b> console.h:78</div></div>
<div class="ttc" id="structPrintConsole_html_a795b918b4a70b3f64fa6b493379d3bed"><div class="ttname"><a href="structPrintConsole.html#a795b918b4a70b3f64fa6b493379d3bed">PrintConsole::bg</a></div><div class="ttdeci">int bg</div><div class="ttdoc">Background color. </div><div class="ttdef"><b>Definition:</b> console.h:96</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>