223 lines
27 KiB
HTML
223 lines
27 KiB
HTML
<!-- HTML header for doxygen 1.9.2-->
|
|
<!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" class="dark-mode">
|
|
<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.12.0"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>Archeus: /home/herbglitch/programs/archeus/arc/packages/console/ncurses/shell.c 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="../../navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="../../navtreedata.js"></script>
|
|
<script type="text/javascript" src="../../navtree.js"></script>
|
|
<script type="text/javascript" src="../../resize.js"></script>
|
|
<script type="text/javascript" src="../../cookie.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" />
|
|
<link href="../../doxygen-awesome.css" rel="stylesheet" type="text/css"/>
|
|
<link href="../../doxygen-awesome-sidebar-only.css" rel="stylesheet" type="text/css"/>
|
|
<link href="../../doxygen-awesome-sidebar-only-darkmode-toggle.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="../../doxygen-awesome-darkmode-toggle.js"></script>
|
|
</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">Archeus<span id="projectnumber"> 0.0.0</span>
|
|
</div>
|
|
<div id="projectbrief">A C library and game engine that focuses on documentation</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.12.0 -->
|
|
<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">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() { codefold.init(1); });
|
|
/* @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',true);
|
|
$(function() { init_search(); });
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function(){initNavTree('d6/d4f/shell_8c_source.html','../../'); initResizable(true); });
|
|
/* @license-end */
|
|
</script>
|
|
<div id="doc-content">
|
|
<!-- 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 class="header">
|
|
<div class="headertitle"><div class="title">shell.c</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="../../d6/d4f/shell_8c.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="preprocessor">#include "<a class="code" href="../../df/d03/shell_8h.html">arc/console/shell.h</a>"</span></div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span> </div>
|
|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="preprocessor">#include "<a class="code" href="../../d5/d08/buffer_8h.html">arc/console/buffer.h</a>"</span></div>
|
|
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="preprocessor">#include "<a class="code" href="../../da/d66/string_8h.html">arc/std/string.h</a>"</span></div>
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include "<a class="code" href="../../d6/d68/vector_8h.html">arc/std/vector.h</a>"</span></div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="preprocessor">#include <stdlib.h></span></div>
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span> </div>
|
|
<div class="foldopen" id="foldopen00008" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"><a class="line" href="../../df/d03/shell_8h.html#aad422f04801c70d2a27f6e30f74efd70"> 8</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="../../d6/d4f/shell_8c.html#aad422f04801c70d2a27f6e30f74efd70">ARC_ConsoleShell_Create</a>(<a class="code hl_struct" href="../../d9/d4c/structARC__ConsoleShell.html">ARC_ConsoleShell</a> **shell, <a class="code hl_struct" href="../../d1/d4a/structARC__ConsoleView.html">ARC_ConsoleView</a> *view, <a class="code hl_typedef" href="../../df/d03/shell_8h.html#a896c97abc1c3a02746738b4c0550f48b">ARC_ConsoleShell_UpdateFn</a> updateFn){</div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span> *shell = (<a class="code hl_struct" href="../../d9/d4c/structARC__ConsoleShell.html">ARC_ConsoleShell</a> *)malloc(<span class="keyword">sizeof</span>(<a class="code hl_struct" href="../../d9/d4c/structARC__ConsoleShell.html">ARC_ConsoleShell</a>));</div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> </div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span> (*shell)-><a class="code hl_variable" href="../../d9/d4c/structARC__ConsoleShell.html#a53d8365cb1119f21f0b23fa1abae8c05">view</a> = view;</div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> <a class="code hl_function" href="../../d5/d08/buffer_8h.html#a724aa56dd933bc31502a971204467132">ARC_ConsoleBuffer_Create</a>(&((*shell)->buffer));</div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> (*shell)->bufferLineIndex = 0;</div>
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> </div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> <a class="code hl_function" href="../../d6/d68/vector_8h.html#ac8de583c096684695a7d862c581b78f6">ARC_Vector_Create</a>(&((*shell)->history));</div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> (*shell)->historyIndex = 0;</div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> </div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> (*shell)->updateFn = updateFn;</div>
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> (*shell)->currentLine = NULL;</div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> (*shell)->userInput = NULL;</div>
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span>}</div>
|
|
</div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> </div>
|
|
<div class="foldopen" id="foldopen00023" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="../../df/d03/shell_8h.html#a5e9357a85d39bf8d040cfb4fa19ede06"> 23</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="../../d6/d4f/shell_8c.html#a5e9357a85d39bf8d040cfb4fa19ede06">ARC_ConsoleShell_Destroy</a>(<a class="code hl_struct" href="../../d9/d4c/structARC__ConsoleShell.html">ARC_ConsoleShell</a> *shell){</div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> <a class="code hl_function" href="../../d5/d08/buffer_8h.html#ab2a88c30d33e6d3120d98673fd6beec4">ARC_ConsoleBuffer_Destroy</a>(shell-><a class="code hl_variable" href="../../d9/d4c/structARC__ConsoleShell.html#a77c4a161dfbf8ad6c6afc18362c3ec66">buffer</a>);</div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> </div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> <span class="keywordflow">for</span>(uint32_t i = 0; i < ARC_Vector_Size(shell-><a class="code hl_variable" href="../../d9/d4c/structARC__ConsoleShell.html#a88f6d6daf79f0464766ae1a912eac0fa">history</a>); i++){</div>
|
|
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> <a class="code hl_struct" href="../../df/d06/structARC__String.html">ARC_String</a> *temp = (<a class="code hl_struct" href="../../df/d06/structARC__String.html">ARC_String</a> *)<a class="code hl_function" href="../../d6/d68/vector_8h.html#a1b01ba012d6fe295e8ce1446f9a6a3a0">ARC_Vector_Get</a>(shell-><a class="code hl_variable" href="../../d9/d4c/structARC__ConsoleShell.html#a88f6d6daf79f0464766ae1a912eac0fa">history</a>, i);</div>
|
|
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> </div>
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> <span class="keywordflow">if</span>(temp != NULL){</div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> <a class="code hl_function" href="../../da/d66/string_8h.html#ac63d17182fd14297f5e7021488d74e35">ARC_String_Destroy</a>(temp);</div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> }</div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> }</div>
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> </div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> <a class="code hl_function" href="../../d6/d68/vector_8h.html#a605bb525f6df05ec88742237e1911e47">ARC_Vector_Destroy</a>(shell-><a class="code hl_variable" href="../../d9/d4c/structARC__ConsoleShell.html#a88f6d6daf79f0464766ae1a912eac0fa">history</a>);</div>
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> free(shell);</div>
|
|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span>}</div>
|
|
</div>
|
|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> </div>
|
|
<div class="foldopen" id="foldopen00038" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="../../df/d03/shell_8h.html#ac73769a7e97b7ba99f74c53347249f63"> 38</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="../../d6/d4f/shell_8c.html#ac73769a7e97b7ba99f74c53347249f63">ARC_ConsoleShell_Update</a>(<a class="code hl_struct" href="../../d9/d4c/structARC__ConsoleShell.html">ARC_ConsoleShell</a> *shell){</div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> shell-><a class="code hl_variable" href="../../d9/d4c/structARC__ConsoleShell.html#a950522b4dfb71a19621da6b1077ccbdb">updateFn</a>(shell);</div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span>}</div>
|
|
</div>
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> </div>
|
|
<div class="foldopen" id="foldopen00042" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="../../df/d03/shell_8h.html#a43241a784b1a6a914899b26d9d86c10c"> 42</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="../../d6/d4f/shell_8c.html#a43241a784b1a6a914899b26d9d86c10c">ARC_ConsoleShell_Render</a>(<a class="code hl_struct" href="../../d9/d4c/structARC__ConsoleShell.html">ARC_ConsoleShell</a> *shell){</div>
|
|
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <a class="code hl_function" href="../../d5/d08/buffer_8h.html#a46ebb41d45ba5aeafa12372f69539458">ARC_ConsoleBuffer_Render</a>(shell-><a class="code hl_variable" href="../../d9/d4c/structARC__ConsoleShell.html#a77c4a161dfbf8ad6c6afc18362c3ec66">buffer</a>, shell-><a class="code hl_variable" href="../../d9/d4c/structARC__ConsoleShell.html#a53d8365cb1119f21f0b23fa1abae8c05">view</a>);</div>
|
|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span>}</div>
|
|
</div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> </div>
|
|
<div class="foldopen" id="foldopen00046" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="../../df/d03/shell_8h.html#ac52159572774e27f8c2e489f73b28314"> 46</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="../../d6/d4f/shell_8c.html#ac52159572774e27f8c2e489f73b28314">ARC_ConsoleShell_AddHistory</a>(<a class="code hl_struct" href="../../d9/d4c/structARC__ConsoleShell.html">ARC_ConsoleShell</a> *shell, <a class="code hl_struct" href="../../df/d06/structARC__String.html">ARC_String</a> *<span class="keywordtype">string</span>){</div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <a class="code hl_function" href="../../d6/d68/vector_8h.html#a2a06c8c4c1fc1f99e08568ef92c186ae">ARC_Vector_Add</a>(shell-><a class="code hl_variable" href="../../d9/d4c/structARC__ConsoleShell.html#a88f6d6daf79f0464766ae1a912eac0fa">history</a>, (<span class="keywordtype">void</span> *)<span class="keywordtype">string</span>);</div>
|
|
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span>}</div>
|
|
</div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> </div>
|
|
<div class="foldopen" id="foldopen00050" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="../../df/d03/shell_8h.html#a90d4df9f1eba33e1a15c3184621a4805"> 50</a></span><a class="code hl_struct" href="../../df/d06/structARC__String.html">ARC_String</a> *<a class="code hl_function" href="../../d6/d4f/shell_8c.html#a90d4df9f1eba33e1a15c3184621a4805">ARC_ConsoleShell_GetHistoryAt</a>(<a class="code hl_struct" href="../../d9/d4c/structARC__ConsoleShell.html">ARC_ConsoleShell</a> *shell, uint32_t index){</div>
|
|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> uint32_t maxHistory = ARC_Vector_Size(shell-><a class="code hl_variable" href="../../d9/d4c/structARC__ConsoleShell.html#a88f6d6daf79f0464766ae1a912eac0fa">history</a>);</div>
|
|
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <span class="keywordflow">if</span>(index >= maxHistory){</div>
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <span class="keywordflow">return</span> NULL;</div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> }</div>
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> </div>
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="keywordflow">return</span> (<a class="code hl_struct" href="../../df/d06/structARC__String.html">ARC_String</a> *)<a class="code hl_function" href="../../d6/d68/vector_8h.html#a1b01ba012d6fe295e8ce1446f9a6a3a0">ARC_Vector_Get</a>(shell-><a class="code hl_variable" href="../../d9/d4c/structARC__ConsoleShell.html#a88f6d6daf79f0464766ae1a912eac0fa">history</a>, (maxHistory - 1) - index);</div>
|
|
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span>}</div>
|
|
</div>
|
|
<div class="ttc" id="abuffer_8h_html"><div class="ttname"><a href="../../d5/d08/buffer_8h.html">buffer.h</a></div></div>
|
|
<div class="ttc" id="abuffer_8h_html_a46ebb41d45ba5aeafa12372f69539458"><div class="ttname"><a href="../../d5/d08/buffer_8h.html#a46ebb41d45ba5aeafa12372f69539458">ARC_ConsoleBuffer_Render</a></div><div class="ttdeci">void ARC_ConsoleBuffer_Render(ARC_ConsoleBuffer *buffer, ARC_ConsoleView *view)</div><div class="ttdoc">renders a buffer to a ARC_ConsoleView</div><div class="ttdef"><b>Definition</b> <a href="../../d3/d8b/buffer_8c_source.html#l00051">buffer.c:51</a></div></div>
|
|
<div class="ttc" id="abuffer_8h_html_a724aa56dd933bc31502a971204467132"><div class="ttname"><a href="../../d5/d08/buffer_8h.html#a724aa56dd933bc31502a971204467132">ARC_ConsoleBuffer_Create</a></div><div class="ttdeci">void ARC_ConsoleBuffer_Create(ARC_ConsoleBuffer **buffer)</div><div class="ttdoc">creates ARC_ConsoleBuffer type</div><div class="ttdef"><b>Definition</b> <a href="../../d3/d8b/buffer_8c_source.html#l00013">buffer.c:13</a></div></div>
|
|
<div class="ttc" id="abuffer_8h_html_ab2a88c30d33e6d3120d98673fd6beec4"><div class="ttname"><a href="../../d5/d08/buffer_8h.html#ab2a88c30d33e6d3120d98673fd6beec4">ARC_ConsoleBuffer_Destroy</a></div><div class="ttdeci">void ARC_ConsoleBuffer_Destroy(ARC_ConsoleBuffer *buffer)</div><div class="ttdoc">destroys ARC_ConsoleBuffer type</div><div class="ttdef"><b>Definition</b> <a href="../../d3/d8b/buffer_8c_source.html#l00022">buffer.c:22</a></div></div>
|
|
<div class="ttc" id="ashell_8c_html_a43241a784b1a6a914899b26d9d86c10c"><div class="ttname"><a href="../../d6/d4f/shell_8c.html#a43241a784b1a6a914899b26d9d86c10c">ARC_ConsoleShell_Render</a></div><div class="ttdeci">void ARC_ConsoleShell_Render(ARC_ConsoleShell *shell)</div><div class="ttdoc">renders the ARC_ConsoleShell type</div><div class="ttdef"><b>Definition</b> <a href="#l00042">shell.c:42</a></div></div>
|
|
<div class="ttc" id="ashell_8c_html_a5e9357a85d39bf8d040cfb4fa19ede06"><div class="ttname"><a href="../../d6/d4f/shell_8c.html#a5e9357a85d39bf8d040cfb4fa19ede06">ARC_ConsoleShell_Destroy</a></div><div class="ttdeci">void ARC_ConsoleShell_Destroy(ARC_ConsoleShell *shell)</div><div class="ttdoc">destroys ARC_ConsoleShell type</div><div class="ttdef"><b>Definition</b> <a href="#l00023">shell.c:23</a></div></div>
|
|
<div class="ttc" id="ashell_8c_html_a90d4df9f1eba33e1a15c3184621a4805"><div class="ttname"><a href="../../d6/d4f/shell_8c.html#a90d4df9f1eba33e1a15c3184621a4805">ARC_ConsoleShell_GetHistoryAt</a></div><div class="ttdeci">ARC_String * ARC_ConsoleShell_GetHistoryAt(ARC_ConsoleShell *shell, uint32_t index)</div><div class="ttdoc">gets history from ARC_ConsoleShell</div><div class="ttdef"><b>Definition</b> <a href="#l00050">shell.c:50</a></div></div>
|
|
<div class="ttc" id="ashell_8c_html_aad422f04801c70d2a27f6e30f74efd70"><div class="ttname"><a href="../../d6/d4f/shell_8c.html#aad422f04801c70d2a27f6e30f74efd70">ARC_ConsoleShell_Create</a></div><div class="ttdeci">void ARC_ConsoleShell_Create(ARC_ConsoleShell **shell, ARC_ConsoleView *view, ARC_ConsoleShell_UpdateFn updateFn)</div><div class="ttdoc">creates ARC_ConsoleShell type</div><div class="ttdef"><b>Definition</b> <a href="#l00008">shell.c:8</a></div></div>
|
|
<div class="ttc" id="ashell_8c_html_ac52159572774e27f8c2e489f73b28314"><div class="ttname"><a href="../../d6/d4f/shell_8c.html#ac52159572774e27f8c2e489f73b28314">ARC_ConsoleShell_AddHistory</a></div><div class="ttdeci">void ARC_ConsoleShell_AddHistory(ARC_ConsoleShell *shell, ARC_String *string)</div><div class="ttdoc">adds history ARC_String to ARC_ConsoleShell</div><div class="ttdef"><b>Definition</b> <a href="#l00046">shell.c:46</a></div></div>
|
|
<div class="ttc" id="ashell_8c_html_ac73769a7e97b7ba99f74c53347249f63"><div class="ttname"><a href="../../d6/d4f/shell_8c.html#ac73769a7e97b7ba99f74c53347249f63">ARC_ConsoleShell_Update</a></div><div class="ttdeci">void ARC_ConsoleShell_Update(ARC_ConsoleShell *shell)</div><div class="ttdoc">updates the ARC_ConsoleShell type</div><div class="ttdef"><b>Definition</b> <a href="#l00038">shell.c:38</a></div></div>
|
|
<div class="ttc" id="ashell_8h_html"><div class="ttname"><a href="../../df/d03/shell_8h.html">shell.h</a></div></div>
|
|
<div class="ttc" id="ashell_8h_html_a896c97abc1c3a02746738b4c0550f48b"><div class="ttname"><a href="../../df/d03/shell_8h.html#a896c97abc1c3a02746738b4c0550f48b">ARC_ConsoleShell_UpdateFn</a></div><div class="ttdeci">void(* ARC_ConsoleShell_UpdateFn)(ARC_ConsoleShell *shell)</div><div class="ttdef"><b>Definition</b> <a href="../../df/d03/shell_8h_source.html#l00024">shell.h:24</a></div></div>
|
|
<div class="ttc" id="astring_8h_html"><div class="ttname"><a href="../../da/d66/string_8h.html">string.h</a></div></div>
|
|
<div class="ttc" id="astring_8h_html_ac63d17182fd14297f5e7021488d74e35"><div class="ttname"><a href="../../da/d66/string_8h.html#ac63d17182fd14297f5e7021488d74e35">ARC_String_Destroy</a></div><div class="ttdeci">void ARC_String_Destroy(ARC_String *string)</div><div class="ttdoc">destroys ARC_String type</div><div class="ttdef"><b>Definition</b> <a href="../../d1/db0/string_8c_source.html#l00052">string.c:52</a></div></div>
|
|
<div class="ttc" id="astructARC__ConsoleShell_html"><div class="ttname"><a href="../../d9/d4c/structARC__ConsoleShell.html">ARC_ConsoleShell</a></div><div class="ttdef"><b>Definition</b> <a href="../../df/d03/shell_8h_source.html#l00029">shell.h:29</a></div></div>
|
|
<div class="ttc" id="astructARC__ConsoleShell_html_a53d8365cb1119f21f0b23fa1abae8c05"><div class="ttname"><a href="../../d9/d4c/structARC__ConsoleShell.html#a53d8365cb1119f21f0b23fa1abae8c05">ARC_ConsoleShell::view</a></div><div class="ttdeci">ARC_ConsoleView * view</div><div class="ttdef"><b>Definition</b> <a href="../../df/d03/shell_8h_source.html#l00030">shell.h:30</a></div></div>
|
|
<div class="ttc" id="astructARC__ConsoleShell_html_a77c4a161dfbf8ad6c6afc18362c3ec66"><div class="ttname"><a href="../../d9/d4c/structARC__ConsoleShell.html#a77c4a161dfbf8ad6c6afc18362c3ec66">ARC_ConsoleShell::buffer</a></div><div class="ttdeci">ARC_ConsoleBuffer * buffer</div><div class="ttdef"><b>Definition</b> <a href="../../df/d03/shell_8h_source.html#l00031">shell.h:31</a></div></div>
|
|
<div class="ttc" id="astructARC__ConsoleShell_html_a88f6d6daf79f0464766ae1a912eac0fa"><div class="ttname"><a href="../../d9/d4c/structARC__ConsoleShell.html#a88f6d6daf79f0464766ae1a912eac0fa">ARC_ConsoleShell::history</a></div><div class="ttdeci">ARC_Vector * history</div><div class="ttdef"><b>Definition</b> <a href="../../df/d03/shell_8h_source.html#l00034">shell.h:34</a></div></div>
|
|
<div class="ttc" id="astructARC__ConsoleShell_html_a950522b4dfb71a19621da6b1077ccbdb"><div class="ttname"><a href="../../d9/d4c/structARC__ConsoleShell.html#a950522b4dfb71a19621da6b1077ccbdb">ARC_ConsoleShell::updateFn</a></div><div class="ttdeci">ARC_ConsoleShell_UpdateFn updateFn</div><div class="ttdef"><b>Definition</b> <a href="../../df/d03/shell_8h_source.html#l00037">shell.h:37</a></div></div>
|
|
<div class="ttc" id="astructARC__ConsoleView_html"><div class="ttname"><a href="../../d1/d4a/structARC__ConsoleView.html">ARC_ConsoleView</a></div><div class="ttdef"><b>Definition</b> <a href="../../d0/da4/console_2ncurses_2view_8c_source.html#l00015">view.c:15</a></div></div>
|
|
<div class="ttc" id="astructARC__String_html"><div class="ttname"><a href="../../df/d06/structARC__String.html">ARC_String</a></div><div class="ttdoc">substring position within a string</div><div class="ttdef"><b>Definition</b> <a href="../../da/d66/string_8h_source.html#l00014">string.h:14</a></div></div>
|
|
<div class="ttc" id="avector_8h_html"><div class="ttname"><a href="../../d6/d68/vector_8h.html">vector.h</a></div></div>
|
|
<div class="ttc" id="avector_8h_html_a1b01ba012d6fe295e8ce1446f9a6a3a0"><div class="ttname"><a href="../../d6/d68/vector_8h.html#a1b01ba012d6fe295e8ce1446f9a6a3a0">ARC_Vector_Get</a></div><div class="ttdeci">void * ARC_Vector_Get(ARC_Vector *vector, uint32_t index)</div><div class="ttdoc">gets an item from an ARC_Vector at a position index</div><div class="ttdef"><b>Definition</b> <a href="../../df/d6b/src_2std_2vector_8c_source.html#l00153">vector.c:153</a></div></div>
|
|
<div class="ttc" id="avector_8h_html_a2a06c8c4c1fc1f99e08568ef92c186ae"><div class="ttname"><a href="../../d6/d68/vector_8h.html#a2a06c8c4c1fc1f99e08568ef92c186ae">ARC_Vector_Add</a></div><div class="ttdeci">void ARC_Vector_Add(ARC_Vector *vector, void *data)</div><div class="ttdoc">adds an item to an ARC_Vector</div><div class="ttdef"><b>Definition</b> <a href="../../df/d6b/src_2std_2vector_8c_source.html#l00070">vector.c:70</a></div></div>
|
|
<div class="ttc" id="avector_8h_html_a605bb525f6df05ec88742237e1911e47"><div class="ttname"><a href="../../d6/d68/vector_8h.html#a605bb525f6df05ec88742237e1911e47">ARC_Vector_Destroy</a></div><div class="ttdeci">void ARC_Vector_Destroy(ARC_Vector *vector)</div><div class="ttdoc">destroys an ARC_Vector</div><div class="ttdef"><b>Definition</b> <a href="../../df/d6b/src_2std_2vector_8c_source.html#l00054">vector.c:54</a></div></div>
|
|
<div class="ttc" id="avector_8h_html_ac8de583c096684695a7d862c581b78f6"><div class="ttname"><a href="../../d6/d68/vector_8h.html#ac8de583c096684695a7d862c581b78f6">ARC_Vector_Create</a></div><div class="ttdeci">void ARC_Vector_Create(ARC_Vector **vector, ARC_Vector_CompareDataFn *compareDataFn, ARC_Vector_DestroyDataFn *destroyDataFn)</div><div class="ttdoc">creates an ARC_Vector which is an "expandable" array</div><div class="ttdef"><b>Definition</b> <a href="../../df/d6b/src_2std_2vector_8c_source.html#l00031">vector.c:31</a></div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<!-- HTML footer for doxygen 1.9.2-->
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
<ul><li class="navelem"><a class="el" href="../../dir_93501a11e921083efbd154e0cdff5f10.html">packages</a></li><li class="navelem"><a class="el" href="../../dir_55e5558cfbdbc80ca812673b2b436991.html">console</a></li><li class="navelem"><a class="el" href="../../dir_4eff4d556f090b5df86a0d7e570b70c4.html">ncurses</a></li><li class="navelem"><a class="el" href="../../d6/d4f/shell_8c.html">shell.c</a></li></ul>
|
|
</div>
|
|
<script type="text/javascript">
|
|
// script for doxygen 1.9.1
|
|
$(function() {
|
|
toggleButton = document.createElement('doxygen-awesome-dark-mode-toggle')
|
|
toggleButton.title = "Toggle Light/Dark Mode"
|
|
$(document).ready(function(){
|
|
document.getElementById("MSearchBox").parentNode.appendChild(toggleButton)
|
|
})
|
|
$(window).resize(function(){
|
|
document.getElementById("MSearchBox").parentNode.appendChild(toggleButton)
|
|
})
|
|
})
|
|
</script>
|
|
</body>
|
|
</html>
|