mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 04:22:50 +02:00
326 lines
55 KiB
HTML
326 lines
55 KiB
HTML
<!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" lang="en-US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.9.8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<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>
|
|
<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 id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">libnx<span id="projectnumber"> v4.9.0</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.8 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @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:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(document).ready(function() { init_codefold(0); });
|
|
/* @license-end */
|
|
</script>
|
|
<!-- 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">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</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 id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">/**</span></div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment"> * @file console.h</span></div>
|
|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"> * @brief Framebuffer text console.</span></div>
|
|
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> * @author yellows8</span></div>
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"> * @author WinterMute</span></div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> * @copyright libnx Authors</span></div>
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> *</span></div>
|
|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment"> * Provides stdio integration for printing to the Switch screen as well as debug print</span></div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment"> * functionality provided by stderr.</span></div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment"> *</span></div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment"> * General usage is to initialize the console by:</span></div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment"> * @code</span></div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="comment"> * consoleInit(NULL)</span></div>
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="comment"> * @endcode</span></div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="comment"> * optionally customizing the console usage by passing a pointer to a custom PrintConsole struct.</span></div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="comment"> */</span></div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="preprocessor">#pragma once</span></div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="preprocessor">#include "../../types.h"</span></div>
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="preprocessor">#define CONSOLE_ESC(x) "\x1b[" #x</span></div>
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="preprocessor">#define CONSOLE_RESET CONSOLE_ESC(0m)</span></div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="preprocessor">#define CONSOLE_BLACK CONSOLE_ESC(30m)</span></div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor">#define CONSOLE_RED CONSOLE_ESC(31;1m)</span></div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#define CONSOLE_GREEN CONSOLE_ESC(32;1m)</span></div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor">#define CONSOLE_YELLOW CONSOLE_ESC(33;1m)</span></div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#define CONSOLE_BLUE CONSOLE_ESC(34;1m)</span></div>
|
|
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor">#define CONSOLE_MAGENTA CONSOLE_ESC(35;1m)</span></div>
|
|
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="preprocessor">#define CONSOLE_CYAN CONSOLE_ESC(36;1m)</span></div>
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="preprocessor">#define CONSOLE_WHITE CONSOLE_ESC(37;1m)</span></div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> </div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="comment">// Forward declaration</span></div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code hl_struct" href="structPrintConsole.html">PrintConsole</a> <a class="code hl_struct" href="structPrintConsole.html">PrintConsole</a>;</div>
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="comment">/// Renderer interface for the console.</span></div>
|
|
<div class="foldopen" id="foldopen00035" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="structConsoleRenderer.html"> 35</a></span><span class="comment"></span><span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code hl_struct" href="structConsoleRenderer.html">ConsoleRenderer</a></div>
|
|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span>{</div>
|
|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> bool (*init)(<a class="code hl_struct" href="structPrintConsole.html">PrintConsole</a>* con);</div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> void (*deinit)(<a class="code hl_struct" href="structPrintConsole.html">PrintConsole</a>* con);</div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> void (*drawChar)(<a class="code hl_struct" href="structPrintConsole.html">PrintConsole</a>* con, <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">int</span> c);</div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> void (*scrollWindow)(<a class="code hl_struct" href="structPrintConsole.html">PrintConsole</a>* con);</div>
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> void (*flushAndSwap)(<a class="code hl_struct" href="structPrintConsole.html">PrintConsole</a>* con);</div>
|
|
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span>} <a class="code hl_struct" href="structConsoleRenderer.html">ConsoleRenderer</a>;</div>
|
|
</div>
|
|
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span><span class="comment">/// A font struct for the console.</span></div>
|
|
<div class="foldopen" id="foldopen00045" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="structConsoleFont.html"> 45</a></span><span class="comment"></span><span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code hl_struct" href="structConsoleFont.html">ConsoleFont</a></div>
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span>{</div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"><a class="line" href="structConsoleFont.html#a4dc6997b016c9e05b2bdfbfa9d85f760"> 47</a></span> <span class="keyword">const</span> <span class="keywordtype">void</span>* <a class="code hl_variable" href="structConsoleFont.html#a4dc6997b016c9e05b2bdfbfa9d85f760">gfx</a>; <span class="comment">///< A pointer to the font graphics</span></div>
|
|
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="structConsoleFont.html#a676b4b45082d34b8bfbd21d20e0a6444"> 48</a></span> <a class="code hl_typedef" href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a> <a class="code hl_variable" href="structConsoleFont.html#a676b4b45082d34b8bfbd21d20e0a6444">asciiOffset</a>; <span class="comment">///< Offset to the first valid character in the font table</span></div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"><a class="line" href="structConsoleFont.html#a741f70973f2dd71acdd7153ef3f7336d"> 49</a></span> <a class="code hl_typedef" href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a> <a class="code hl_variable" href="structConsoleFont.html#a741f70973f2dd71acdd7153ef3f7336d">numChars</a>; <span class="comment">///< Number of characters in the font graphics</span></div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <a class="code hl_typedef" href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a> tileWidth;</div>
|
|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <a class="code hl_typedef" href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a> tileHeight;</div>
|
|
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span>}<a class="code hl_struct" href="structConsoleFont.html">ConsoleFont</a>;</div>
|
|
</div>
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span><span class="comment">/**</span></div>
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span><span class="comment"> * @brief Console structure used to store the state of a console render context.</span></div>
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span><span class="comment"> *</span></div>
|
|
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span><span class="comment"> * Default values from consoleGetDefault();</span></div>
|
|
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span><span class="comment"> * @code</span></div>
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span><span class="comment"> * PrintConsole defaultConsole =</span></div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span><span class="comment"> * {</span></div>
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span><span class="comment"> * //Font:</span></div>
|
|
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span><span class="comment"> * {</span></div>
|
|
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span><span class="comment"> * default_font_bin, //font gfx</span></div>
|
|
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span><span class="comment"> * 0, //first ascii character in the set</span></div>
|
|
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span><span class="comment"> * 256, //number of characters in the font set</span></div>
|
|
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span><span class="comment"> * 16, //tile width</span></div>
|
|
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span><span class="comment"> * 16, //tile height</span></div>
|
|
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span><span class="comment"> * },</span></div>
|
|
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span><span class="comment"> * NULL, //renderer</span></div>
|
|
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span><span class="comment"> * 0,0, //cursorX cursorY</span></div>
|
|
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span><span class="comment"> * 0,0, //prevcursorX prevcursorY</span></div>
|
|
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span><span class="comment"> * 80, //console width</span></div>
|
|
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span><span class="comment"> * 45, //console height</span></div>
|
|
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span><span class="comment"> * 0, //window x</span></div>
|
|
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span><span class="comment"> * 0, //window y</span></div>
|
|
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span><span class="comment"> * 80, //window width</span></div>
|
|
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span><span class="comment"> * 45, //window height</span></div>
|
|
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span><span class="comment"> * 3, //tab size</span></div>
|
|
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span><span class="comment"> * 7, // foreground color</span></div>
|
|
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span><span class="comment"> * 0, // background color</span></div>
|
|
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span><span class="comment"> * 0, // flags</span></div>
|
|
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span><span class="comment"> * false //console initialized</span></div>
|
|
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span><span class="comment"> * };</span></div>
|
|
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span><span class="comment"> * @endcode</span></div>
|
|
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span><span class="comment"> */</span></div>
|
|
<div class="foldopen" id="foldopen00086" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"><a class="line" href="structPrintConsole.html"> 86</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structPrintConsole.html">PrintConsole</a></div>
|
|
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span>{</div>
|
|
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"><a class="line" href="structPrintConsole.html#ad717d7741f526d595d3103d5a4e28358"> 88</a></span> <a class="code hl_struct" href="structConsoleFont.html">ConsoleFont</a> <a class="code hl_variable" href="structPrintConsole.html#ad717d7741f526d595d3103d5a4e28358">font</a>; <span class="comment">///< Font of the console</span></div>
|
|
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a7d1fdccf4719544c61acc7ce8c4e3a19"> 89</a></span> <a class="code hl_struct" href="structConsoleRenderer.html">ConsoleRenderer</a>* <a class="code hl_variable" href="structPrintConsole.html#a7d1fdccf4719544c61acc7ce8c4e3a19">renderer</a>; <span class="comment">///< Renderer of the console</span></div>
|
|
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> </div>
|
|
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a0b3c99b23f2b228279c0b080d4bbf73f"> 91</a></span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structPrintConsole.html#a0b3c99b23f2b228279c0b080d4bbf73f">cursorX</a>; <span class="comment">///< Current X location of the cursor (as a tile offset by default)</span></div>
|
|
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a5170137741dc034414b516aebf6716d9"> 92</a></span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structPrintConsole.html#a5170137741dc034414b516aebf6716d9">cursorY</a>; <span class="comment">///< Current Y location of the cursor (as a tile offset by default)</span></div>
|
|
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> </div>
|
|
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a5597cf20da49284bcb2ccadfbd095c02"> 94</a></span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structPrintConsole.html#a5597cf20da49284bcb2ccadfbd095c02">prevCursorX</a>; <span class="comment">///< Internal state</span></div>
|
|
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a643913cb7f20767b07ecf1652b788245"> 95</a></span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structPrintConsole.html#a643913cb7f20767b07ecf1652b788245">prevCursorY</a>; <span class="comment">///< Internal state</span></div>
|
|
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> </div>
|
|
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a12228047de6d55e25c7bed9427bfeda7"> 97</a></span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structPrintConsole.html#a12228047de6d55e25c7bed9427bfeda7">consoleWidth</a>; <span class="comment">///< Width of the console hardware layer in characters</span></div>
|
|
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a6caefb88745fe180a9d59096d40b052a"> 98</a></span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structPrintConsole.html#a6caefb88745fe180a9d59096d40b052a">consoleHeight</a>; <span class="comment">///< Height of the console hardware layer in characters</span></div>
|
|
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> </div>
|
|
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a3238a0f3691fd3742db45df2bda726cd"> 100</a></span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structPrintConsole.html#a3238a0f3691fd3742db45df2bda726cd">windowX</a>; <span class="comment">///< Window X location in characters</span></div>
|
|
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"><a class="line" href="structPrintConsole.html#af541d301e1ee4f1a8aaecca9f78d40de"> 101</a></span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structPrintConsole.html#af541d301e1ee4f1a8aaecca9f78d40de">windowY</a>; <span class="comment">///< Window Y location in characters</span></div>
|
|
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a7eaeb319aa6626250a18d52da7b57221"> 102</a></span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structPrintConsole.html#a7eaeb319aa6626250a18d52da7b57221">windowWidth</a>; <span class="comment">///< Window width in characters</span></div>
|
|
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a97fa07262bd5a64ba5b5174e01e7128b"> 103</a></span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structPrintConsole.html#a97fa07262bd5a64ba5b5174e01e7128b">windowHeight</a>; <span class="comment">///< Window height in characters</span></div>
|
|
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> </div>
|
|
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a4bd05d4de8d7869489891cbaee90c782"> 105</a></span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structPrintConsole.html#a4bd05d4de8d7869489891cbaee90c782">tabSize</a>; <span class="comment">///< Size of a tab</span></div>
|
|
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"><a class="line" href="structPrintConsole.html#ad329e4a7372f51e7b64cceca3be8d2df"> 106</a></span> <a class="code hl_typedef" href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a> <a class="code hl_variable" href="structPrintConsole.html#ad329e4a7372f51e7b64cceca3be8d2df">fg</a>; <span class="comment">///< Foreground color</span></div>
|
|
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a403a10a66b1a1ff4a7c8ad78df66ac02"> 107</a></span> <a class="code hl_typedef" href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a> <a class="code hl_variable" href="structPrintConsole.html#a403a10a66b1a1ff4a7c8ad78df66ac02">bg</a>; <span class="comment">///< Background color</span></div>
|
|
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a30ec62fecd8dd432fa16d17a25744538"> 108</a></span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structPrintConsole.html#a30ec62fecd8dd432fa16d17a25744538">flags</a>; <span class="comment">///< Reverse/bright flags</span></div>
|
|
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> </div>
|
|
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"><a class="line" href="structPrintConsole.html#abeb3c904af0e353bec10603044a4f705"> 110</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="structPrintConsole.html#abeb3c904af0e353bec10603044a4f705">consoleInitialised</a>; <span class="comment">///< True if the console is initialized</span></div>
|
|
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> </div>
|
|
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"><a class="line" href="console_8h.html#a41fe600f48a6367d8807559efec50c23"> 113</a></span><span class="preprocessor">#define CONSOLE_COLOR_BOLD (1<<0) </span><span class="comment">///< Bold text</span></div>
|
|
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"><a class="line" href="console_8h.html#a2b150f5112f253251b71c0e20691b8f6"> 114</a></span><span class="preprocessor">#define CONSOLE_COLOR_FAINT (1<<1) </span><span class="comment">///< Faint text</span></div>
|
|
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"><a class="line" href="console_8h.html#ab42f3fc96a41cf751ec6971091495d77"> 115</a></span><span class="preprocessor">#define CONSOLE_ITALIC (1<<2) </span><span class="comment">///< Italic text</span></div>
|
|
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"><a class="line" href="console_8h.html#a3d8177cdd85a63ef7836efe4e00871e0"> 116</a></span><span class="preprocessor">#define CONSOLE_UNDERLINE (1<<3) </span><span class="comment">///< Underlined text</span></div>
|
|
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"><a class="line" href="console_8h.html#adb7259b545cc753eca543d28074c4389"> 117</a></span><span class="preprocessor">#define CONSOLE_BLINK_SLOW (1<<4) </span><span class="comment">///< Slow blinking text</span></div>
|
|
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"><a class="line" href="console_8h.html#a7afdfddea655f10c609d05b686ce36f9"> 118</a></span><span class="preprocessor">#define CONSOLE_BLINK_FAST (1<<5) </span><span class="comment">///< Fast blinking text</span></div>
|
|
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"><a class="line" href="console_8h.html#a0c2c4bcacad671310f6a2e19a9dd920e"> 119</a></span><span class="preprocessor">#define CONSOLE_COLOR_REVERSE (1<<6) </span><span class="comment">///< Reversed color text</span></div>
|
|
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"><a class="line" href="console_8h.html#a5f2b14ddb935b78bd666e5ec560d39c1"> 120</a></span><span class="preprocessor">#define CONSOLE_CONCEAL (1<<7) </span><span class="comment">///< Concealed text</span></div>
|
|
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"><a class="line" href="console_8h.html#a5ff7f67fc2b49604335c850701a49404"> 121</a></span><span class="preprocessor">#define CONSOLE_CROSSED_OUT (1<<8) </span><span class="comment">///< Crossed out text</span></div>
|
|
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"><a class="line" href="console_8h.html#aae0fa7e2d9d00e9a9032cb27b3ea2b89"> 122</a></span><span class="preprocessor">#define CONSOLE_FG_CUSTOM (1<<9) </span><span class="comment">///< Foreground custom color</span></div>
|
|
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"><a class="line" href="console_8h.html#a2bc490632f54b282103853fa573a1d0a"> 123</a></span><span class="preprocessor">#define CONSOLE_BG_CUSTOM (1<<10) </span><span class="comment">///< Background custom color</span></div>
|
|
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span><span class="comment">/// Console debug devices supported by libnx.</span></div>
|
|
<div class="foldopen" id="foldopen00126" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"><a class="line" href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28"> 126</a></span><span class="comment"></span><span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
|
|
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"><a class="line" href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28af3ea53eb5c0a68a80dbeb1c0c31b6849"> 127</a></span> <a class="code hl_enumvalue" href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28af3ea53eb5c0a68a80dbeb1c0c31b6849">debugDevice_NULL</a>, <span class="comment">///< Swallows prints to stderr</span></div>
|
|
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"><a class="line" href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28a795dfb32f1905816a543c95e5ed17b52"> 128</a></span> <a class="code hl_enumvalue" href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28a795dfb32f1905816a543c95e5ed17b52">debugDevice_SVC</a>, <span class="comment">///< Outputs stderr debug statements using svcOutputDebugString, which can then be captured by interactive debuggers</span></div>
|
|
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"><a class="line" href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28ae5f4a5fe20d1b01a2e211cfe394325d7"> 129</a></span> <a class="code hl_enumvalue" href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28ae5f4a5fe20d1b01a2e211cfe394325d7">debugDevice_CONSOLE</a>, <span class="comment">///< Directs stderr debug statements to Switch console window</span></div>
|
|
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span>} <a class="code hl_enumeration" href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28">debugDevice</a>;</div>
|
|
</div>
|
|
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span><span class="comment">/**</span></div>
|
|
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span><span class="comment"> * @brief Loads the font into the console.</span></div>
|
|
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span><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 id="l00135" name="l00135"></a><span class="lineno"> 135</span><span class="comment"> * @param font The font to load.</span></div>
|
|
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span><span class="comment"> */</span></div>
|
|
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"><a class="line" href="console_8h.html#a4e271d69c07c67efe877502fe17c44e5"> 137</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="console_8h.html#a4e271d69c07c67efe877502fe17c44e5">consoleSetFont</a>(<a class="code hl_struct" href="structPrintConsole.html">PrintConsole</a>* console, <a class="code hl_struct" href="structConsoleFont.html">ConsoleFont</a>* font);</div>
|
|
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span><span class="comment">/**</span></div>
|
|
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span><span class="comment"> * @brief Sets the print window.</span></div>
|
|
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span><span class="comment"> * @param console Console to set, if NULL it will set the current console window.</span></div>
|
|
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span><span class="comment"> * @param x X location of the window.</span></div>
|
|
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span><span class="comment"> * @param y Y location of the window.</span></div>
|
|
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span><span class="comment"> * @param width Width of the window.</span></div>
|
|
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span><span class="comment"> * @param height Height of the window.</span></div>
|
|
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span><span class="comment"> */</span></div>
|
|
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"><a class="line" href="console_8h.html#a4a65cfe4467b2059c6b70e15d861b563"> 147</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="console_8h.html#a4a65cfe4467b2059c6b70e15d861b563">consoleSetWindow</a>(<a class="code hl_struct" 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 id="l00148" name="l00148"></a><span class="lineno"> 148</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span><span class="comment">/**</span></div>
|
|
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span><span class="comment"> * @brief Gets a pointer to the console with the default values.</span></div>
|
|
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span><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 id="l00152" name="l00152"></a><span class="lineno"> 152</span><span class="comment"> * @return A pointer to the console with the default values.</span></div>
|
|
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span><span class="comment"> */</span></div>
|
|
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"><a class="line" href="console_8h.html#a75750f9ddbb62e857309d791e6fcf749"> 154</a></span><a class="code hl_struct" href="structPrintConsole.html">PrintConsole</a>* <a class="code hl_function" href="console_8h.html#a75750f9ddbb62e857309d791e6fcf749">consoleGetDefault</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span><span class="comment">/**</span></div>
|
|
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span><span class="comment"> * @brief Make the specified console the render target.</span></div>
|
|
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span><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 id="l00159" name="l00159"></a><span class="lineno"> 159</span><span class="comment"> * @return A pointer to the previous console.</span></div>
|
|
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span><span class="comment"> */</span></div>
|
|
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"><a class="line" href="console_8h.html#a8ca43733c23082493ee102331db6f875"> 161</a></span><a class="code hl_struct" href="structPrintConsole.html">PrintConsole</a> *<a class="code hl_function" href="console_8h.html#a8ca43733c23082493ee102331db6f875">consoleSelect</a>(<a class="code hl_struct" href="structPrintConsole.html">PrintConsole</a>* console);</div>
|
|
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span><span class="comment">/**</span></div>
|
|
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span><span class="comment"> * @brief Initialise the console.</span></div>
|
|
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span><span class="comment"> * @param console A pointer to the console data to initialize (if it's NULL, the default console will be used).</span></div>
|
|
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span><span class="comment"> * @return A pointer to the current console.</span></div>
|
|
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span><span class="comment"> */</span></div>
|
|
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"><a class="line" href="console_8h.html#a5a752134c293188a41bed497d35b5486"> 168</a></span><a class="code hl_struct" href="structPrintConsole.html">PrintConsole</a>* <a class="code hl_function" href="console_8h.html#a5a752134c293188a41bed497d35b5486">consoleInit</a>(<a class="code hl_struct" href="structPrintConsole.html">PrintConsole</a>* console);</div>
|
|
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span><span class="comment">/**</span></div>
|
|
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span><span class="comment"> * @brief Deinitialise the console.</span></div>
|
|
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span><span class="comment"> * @param console A pointer to the console data to initialize (if it's NULL, the default console will be used).</span></div>
|
|
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span><span class="comment"> */</span></div>
|
|
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"><a class="line" href="console_8h.html#a19f5241173feabf57680aedb05bbfdbf"> 174</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="console_8h.html#a19f5241173feabf57680aedb05bbfdbf">consoleExit</a>(<a class="code hl_struct" href="structPrintConsole.html">PrintConsole</a>* console);</div>
|
|
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span><span class="comment">/**</span></div>
|
|
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span><span class="comment"> * @brief Updates the console, submitting a new frame to the display.</span></div>
|
|
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span><span class="comment"> * @param console A pointer to the console data to initialize (if it's NULL, the default console will be used).</span></div>
|
|
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span><span class="comment"> * @remark This function should be called periodically. Failure to call this function will result in lack of screen updating.</span></div>
|
|
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span><span class="comment"> */</span></div>
|
|
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"><a class="line" href="console_8h.html#a794ce951e8494348596902cf2d7df0bf"> 181</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="console_8h.html#a794ce951e8494348596902cf2d7df0bf">consoleUpdate</a>(<a class="code hl_struct" href="structPrintConsole.html">PrintConsole</a>* console);</div>
|
|
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span><span class="comment">/**</span></div>
|
|
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span><span class="comment"> * @brief Initializes debug console output on stderr to the specified device.</span></div>
|
|
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span><span class="comment"> * @param device The debug device (or devices) to output debug print statements to.</span></div>
|
|
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span><span class="comment"> */</span></div>
|
|
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"><a class="line" href="console_8h.html#ac4fe073b8a8251a5216b66eef8788da2"> 187</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="console_8h.html#ac4fe073b8a8251a5216b66eef8788da2">consoleDebugInit</a>(<a class="code hl_enumeration" href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28">debugDevice</a> device);</div>
|
|
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span><span class="comment">/// Clears the screan by using printf("\x1b[2J");</span></div>
|
|
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"><a class="line" href="console_8h.html#ac62c34a3fa2a6403c690dd80022b3e34"> 190</a></span><span class="comment"></span><span class="keywordtype">void</span> <a class="code hl_function" href="console_8h.html#ac62c34a3fa2a6403c690dd80022b3e34">consoleClear</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="ttc" id="aconsole_8h_html_a19f5241173feabf57680aedb05bbfdbf"><div class="ttname"><a href="console_8h.html#a19f5241173feabf57680aedb05bbfdbf">consoleExit</a></div><div class="ttdeci">void consoleExit(PrintConsole *console)</div><div class="ttdoc">Deinitialise the console.</div></div>
|
|
<div class="ttc" id="aconsole_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="aconsole_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="aconsole_8h_html_a5a752134c293188a41bed497d35b5486"><div class="ttname"><a href="console_8h.html#a5a752134c293188a41bed497d35b5486">consoleInit</a></div><div class="ttdeci">PrintConsole * consoleInit(PrintConsole *console)</div><div class="ttdoc">Initialise the console.</div></div>
|
|
<div class="ttc" id="aconsole_8h_html_a75750f9ddbb62e857309d791e6fcf749"><div class="ttname"><a href="console_8h.html#a75750f9ddbb62e857309d791e6fcf749">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="aconsole_8h_html_a794ce951e8494348596902cf2d7df0bf"><div class="ttname"><a href="console_8h.html#a794ce951e8494348596902cf2d7df0bf">consoleUpdate</a></div><div class="ttdeci">void consoleUpdate(PrintConsole *console)</div><div class="ttdoc">Updates the console, submitting a new frame to the display.</div></div>
|
|
<div class="ttc" id="aconsole_8h_html_a8ca43733c23082493ee102331db6f875"><div class="ttname"><a href="console_8h.html#a8ca43733c23082493ee102331db6f875">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="aconsole_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:126</div></div>
|
|
<div class="ttc" id="aconsole_8h_html_ab80a9da3fec1fbf425035eeaa9b51c28a795dfb32f1905816a543c95e5ed17b52"><div class="ttname"><a href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28a795dfb32f1905816a543c95e5ed17b52">debugDevice_SVC</a></div><div class="ttdeci">@ debugDevice_SVC</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:128</div></div>
|
|
<div class="ttc" id="aconsole_8h_html_ab80a9da3fec1fbf425035eeaa9b51c28ae5f4a5fe20d1b01a2e211cfe394325d7"><div class="ttname"><a href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28ae5f4a5fe20d1b01a2e211cfe394325d7">debugDevice_CONSOLE</a></div><div class="ttdeci">@ debugDevice_CONSOLE</div><div class="ttdoc">Directs stderr debug statements to Switch console window.</div><div class="ttdef"><b>Definition</b> console.h:129</div></div>
|
|
<div class="ttc" id="aconsole_8h_html_ab80a9da3fec1fbf425035eeaa9b51c28af3ea53eb5c0a68a80dbeb1c0c31b6849"><div class="ttname"><a href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28af3ea53eb5c0a68a80dbeb1c0c31b6849">debugDevice_NULL</a></div><div class="ttdeci">@ debugDevice_NULL</div><div class="ttdoc">Swallows prints to stderr.</div><div class="ttdef"><b>Definition</b> console.h:127</div></div>
|
|
<div class="ttc" id="aconsole_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="aconsole_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 printf("\x1b[2J");.</div></div>
|
|
<div class="ttc" id="astructConsoleFont_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:46</div></div>
|
|
<div class="ttc" id="astructConsoleFont_html_a4dc6997b016c9e05b2bdfbfa9d85f760"><div class="ttname"><a href="structConsoleFont.html#a4dc6997b016c9e05b2bdfbfa9d85f760">ConsoleFont::gfx</a></div><div class="ttdeci">const void * gfx</div><div class="ttdoc">A pointer to the font graphics.</div><div class="ttdef"><b>Definition</b> console.h:47</div></div>
|
|
<div class="ttc" id="astructConsoleFont_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:48</div></div>
|
|
<div class="ttc" id="astructConsoleFont_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:49</div></div>
|
|
<div class="ttc" id="astructConsoleRenderer_html"><div class="ttname"><a href="structConsoleRenderer.html">ConsoleRenderer</a></div><div class="ttdoc">Renderer interface for the console.</div><div class="ttdef"><b>Definition</b> console.h:36</div></div>
|
|
<div class="ttc" id="astructPrintConsole_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:87</div></div>
|
|
<div class="ttc" id="astructPrintConsole_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:91</div></div>
|
|
<div class="ttc" id="astructPrintConsole_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:97</div></div>
|
|
<div class="ttc" id="astructPrintConsole_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:108</div></div>
|
|
<div class="ttc" id="astructPrintConsole_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.</div><div class="ttdef"><b>Definition</b> console.h:100</div></div>
|
|
<div class="ttc" id="astructPrintConsole_html_a403a10a66b1a1ff4a7c8ad78df66ac02"><div class="ttname"><a href="structPrintConsole.html#a403a10a66b1a1ff4a7c8ad78df66ac02">PrintConsole::bg</a></div><div class="ttdeci">u16 bg</div><div class="ttdoc">Background color.</div><div class="ttdef"><b>Definition</b> console.h:107</div></div>
|
|
<div class="ttc" id="astructPrintConsole_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:105</div></div>
|
|
<div class="ttc" id="astructPrintConsole_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:92</div></div>
|
|
<div class="ttc" id="astructPrintConsole_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:94</div></div>
|
|
<div class="ttc" id="astructPrintConsole_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:95</div></div>
|
|
<div class="ttc" id="astructPrintConsole_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:98</div></div>
|
|
<div class="ttc" id="astructPrintConsole_html_a7d1fdccf4719544c61acc7ce8c4e3a19"><div class="ttname"><a href="structPrintConsole.html#a7d1fdccf4719544c61acc7ce8c4e3a19">PrintConsole::renderer</a></div><div class="ttdeci">ConsoleRenderer * renderer</div><div class="ttdoc">Renderer of the console.</div><div class="ttdef"><b>Definition</b> console.h:89</div></div>
|
|
<div class="ttc" id="astructPrintConsole_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.</div><div class="ttdef"><b>Definition</b> console.h:102</div></div>
|
|
<div class="ttc" id="astructPrintConsole_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.</div><div class="ttdef"><b>Definition</b> console.h:103</div></div>
|
|
<div class="ttc" id="astructPrintConsole_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:110</div></div>
|
|
<div class="ttc" id="astructPrintConsole_html_ad329e4a7372f51e7b64cceca3be8d2df"><div class="ttname"><a href="structPrintConsole.html#ad329e4a7372f51e7b64cceca3be8d2df">PrintConsole::fg</a></div><div class="ttdeci">u16 fg</div><div class="ttdoc">Foreground color.</div><div class="ttdef"><b>Definition</b> console.h:106</div></div>
|
|
<div class="ttc" id="astructPrintConsole_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:88</div></div>
|
|
<div class="ttc" id="astructPrintConsole_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.</div><div class="ttdef"><b>Definition</b> console.h:101</div></div>
|
|
<div class="ttc" id="atypes_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:20</div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
|
|
</small></address>
|
|
</body>
|
|
</html>
|