Skip to content

Commit

Permalink
merge dev into main
Browse files Browse the repository at this point in the history
  • Loading branch information
twiddlingbits committed Jun 17, 2024
2 parents d026aa6 + 77a44c5 commit 7b9da59
Show file tree
Hide file tree
Showing 57 changed files with 647 additions and 797 deletions.
84 changes: 43 additions & 41 deletions azure/docsite/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="/img/favicon.ico" />
<title>twr-wasm documentation</title>
<link rel="stylesheet" href="/css/theme.css" />
<link rel="stylesheet" href="/css/theme_extra.css" />
<link rel="shortcut icon" href="/docsite/img/favicon.ico" />
<title>twr-wasm C/C++ Web Assembly Runtime Library</title>
<link rel="stylesheet" href="/docsite/css/theme.css" />
<link rel="stylesheet" href="/docsite/css/theme_extra.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css" />

<!--[if lt IE 9]>
<script src="/js/html5shiv.min.js"></script>
<script src="/docsite/js/html5shiv.min.js"></script>
<![endif]-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
<script>hljs.highlightAll();</script>
Expand All @@ -23,77 +23,79 @@
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
<div class="wy-side-scroll">
<div class="wy-side-nav-search">
<a href="/." class="icon icon-home"> twr-wasm documentation
<a href="/docsite/." class="icon icon-home"> twr-wasm C/C++ Web Assembly Runtime Library
</a><div role="search">
<form id ="rtd-search-form" class="wy-form" action="//search.html" method="get">
<form id ="rtd-search-form" class="wy-form" action="/docsite//search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" title="Type search term here" />
</form>
</div>
</div>

<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<ul>
<li class="toctree-l1"><a class="reference internal" href="/.">Home</a>
<li class="toctree-l1"><a class="reference internal" href="/docsite/.">Home</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Getting Started</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="/gettingstarted/installation/">Installation</a>
<li class="toctree-l1"><a class="reference internal" href="/docsite/gettingstarted/installation/">Installation</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="/gettingstarted/firstwasm/">Your First C Wasm</a>
<li class="toctree-l1"><a class="reference internal" href="/docsite/gettingstarted/helloworld/">Create wasm C Hello World</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="/gettingstarted/keyconcepts/">Key Concepts</a>
<li class="toctree-l1"><a class="reference internal" href="/docsite/gettingstarted/keyconcepts/">Key Concepts</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="/gettingstarted/stdio/">Stdio</a>
<li class="toctree-l1"><a class="reference internal" href="/docsite/gettingstarted/stdio/">Stdio</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="/gettingstarted/compiler-opts/">Compiler, Linker, Memory</a>
<li class="toctree-l1"><a class="reference internal" href="/docsite/gettingstarted/compiler-opts/">Compiler, Linker, Memory</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Examples</span></p>
<p class="caption"><span class="caption-text">WASM Examples</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="/examples/examples-overview/">Overview</a>
<li class="toctree-l1"><a class="reference internal" href="/docsite/examples/examples-overview/">Overview</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="/examples/examples-helloworld/">hello world</a>
<li class="toctree-l1"><a class="reference internal" href="/docsite/examples/examples-helloworld/">hello world</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="/examples/examples-stdio-div/">stdio-div</a>
<li class="toctree-l1"><a class="reference internal" href="/docsite/examples/examples-stdio-div/">stdio-div</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="/examples/examples-stdio-canvas/">stdio-canvas</a>
<li class="toctree-l1"><a class="reference internal" href="/docsite/examples/examples-stdio-canvas/">stdio-canvas</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="/examples/examples-balls/">balls</a>
<li class="toctree-l1"><a class="reference internal" href="/docsite/examples/examples-balls/">balls</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="/examples/examples-maze/">maze</a>
<li class="toctree-l1"><a class="reference internal" href="/docsite/examples/examples-maze/">maze</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="/examples/examples-fft/">fft</a>
<li class="toctree-l1"><a class="reference internal" href="/docsite/examples/examples-fft/">fft</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="/examples/examples-more/">more</a>
<li class="toctree-l1"><a class="reference internal" href="/docsite/examples/examples-libcxx/">libc++</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="/docsite/examples/examples-more/">more</a>
</li>
</ul>
<p class="caption"><span class="caption-text">API Reference</span></p>
<p class="caption"><span class="caption-text">twr-wasm API Reference</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="/api/api-typescript/">TypeScript/JavaScript</a>
<li class="toctree-l1"><a class="reference internal" href="/docsite/api/api-typescript/">TypeScript/JavaScript</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="/api/api-localization/">C Localization</a>
<li class="toctree-l1"><a class="reference internal" href="/docsite/api/api-localization/">C Localization</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="/api/api-c-general/">C General</a>
<li class="toctree-l1"><a class="reference internal" href="/docsite/api/api-c-general/">C General</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="/api/api-libc%2B%2B/">C++ libc++</a>
<li class="toctree-l1"><a class="reference internal" href="/docsite/api/api-libc%2B%2B/">C++ with libc++</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="/api/api-c-d2d/">C Draw 2D</a>
<li class="toctree-l1"><a class="reference internal" href="/docsite/api/api-c-d2d/">C Draw 2D</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="/api/api-c-con/">C Console I/O</a>
<li class="toctree-l1"><a class="reference internal" href="/docsite/api/api-c-con/">C Console I/O</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="/api/api-c-stdlib/">C Standard C Library</a>
<li class="toctree-l1"><a class="reference internal" href="/docsite/api/api-c-stdlib/">C Standard C Library</a>
</li>
</ul>
<p class="caption"><span class="caption-text">More</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="/more/wasm-problem/">The Wasm Problem</a>
<li class="toctree-l1"><a class="reference internal" href="/docsite/more/wasm-problem/">The Wasm Problem</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="/more/debugging/">Debugging</a>
<li class="toctree-l1"><a class="reference internal" href="/docsite/more/debugging/">Debugging WASM</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="/more/production/">Production</a>
<li class="toctree-l1"><a class="reference internal" href="/docsite/more/production/">Production</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="/more/building/">Building the Source</a>
<li class="toctree-l1"><a class="reference internal" href="/docsite/more/building/">Building the Source</a>
</li>
</ul>
</div>
Expand All @@ -103,13 +105,13 @@
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="Mobile navigation menu">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="/.">twr-wasm documentation</a>
<a href="/docsite/.">twr-wasm C/C++ Web Assembly Runtime Library</a>

</nav>
<div class="wy-nav-content">
<div class="rst-content"><div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="/." class="icon icon-home" aria-label="Docs"></a></li>
<li><a href="/docsite/." class="icon icon-home" aria-label="Docs"></a></li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
Expand Down Expand Up @@ -154,11 +156,11 @@ <h1 id="404-page-not-found">404</h1>

</span>
</div>
<script src="/js/jquery-3.6.0.min.js"></script>
<script>var base_url = "/";</script>
<script src="/js/theme_extra.js"></script>
<script src="/js/theme.js"></script>
<script src="/search/main.js"></script>
<script src="/docsite/js/jquery-3.6.0.min.js"></script>
<script>var base_url = "/docsite/";</script>
<script src="/docsite/js/theme_extra.js"></script>
<script src="/docsite/js/theme.js"></script>
<script src="/docsite/search/main.js"></script>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
Expand Down
34 changes: 17 additions & 17 deletions azure/docsite/api/api-c-con/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><link rel="canonical" href="https://twiddlingbits.dev/api/api-c-con/" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><link rel="canonical" href="https://twiddlingbits.dev/docsite/api/api-c-con/" />
<link rel="shortcut icon" href="../../img/favicon.ico" />
<title>C Console I/O - twr-wasm documentation</title>
<title>C Console I/O - twr-wasm C/C++ Web Assembly Runtime Library</title>
<link rel="stylesheet" href="../../css/theme.css" />
<link rel="stylesheet" href="../../css/theme_extra.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css" />
Expand All @@ -14,7 +14,7 @@
// Current page data
var mkdocs_page_name = "C Console I/O";
var mkdocs_page_input_path = "api\\api-c-con.md";
var mkdocs_page_url = "/api/api-c-con/";
var mkdocs_page_url = "/docsite/api/api-c-con/";
</script>

<!--[if lt IE 9]>
Expand All @@ -30,7 +30,7 @@
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
<div class="wy-side-scroll">
<div class="wy-side-nav-search">
<a href="../.." class="icon icon-home"> twr-wasm documentation
<a href="../.." class="icon icon-home"> twr-wasm C/C++ Web Assembly Runtime Library
</a><div role="search">
<form id ="rtd-search-form" class="wy-form" action="../../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" title="Type search term here" />
Expand All @@ -47,7 +47,7 @@
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../gettingstarted/installation/">Installation</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../gettingstarted/firstwasm/">Your First C Wasm</a>
<li class="toctree-l1"><a class="reference internal" href="../../gettingstarted/helloworld/">Create wasm C Hello World</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../gettingstarted/keyconcepts/">Key Concepts</a>
</li>
Expand All @@ -56,7 +56,7 @@
<li class="toctree-l1"><a class="reference internal" href="../../gettingstarted/compiler-opts/">Compiler, Linker, Memory</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Examples</span></p>
<p class="caption"><span class="caption-text">WASM Examples</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../examples/examples-overview/">Overview</a>
</li>
Expand All @@ -72,27 +72,27 @@
</li>
<li class="toctree-l1"><a class="reference internal" href="../../examples/examples-fft/">fft</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../examples/examples-libcxx/">libc++</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../examples/examples-more/">more</a>
</li>
</ul>
<p class="caption"><span class="caption-text">API Reference</span></p>
<p class="caption"><span class="caption-text">twr-wasm API Reference</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../api-typescript/">TypeScript/JavaScript</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../api-localization/">C Localization</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../api-c-general/">C General</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../api-libc%2B%2B/">C++ libc++</a>
<li class="toctree-l1"><a class="reference internal" href="../api-libc%2B%2B/">C++ with libc++</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../api-c-d2d/">C Draw 2D</a>
</li>
<li class="toctree-l1 current"><a class="reference internal current" href="./">C Console I/O</a>
<ul class="current">
<li class="toctree-l2"><a class="reference internal" href="#examples">Examples</a>
</li>
<li class="toctree-l2"><a class="reference internal" href="#overview">Overview</a>
</li>
<li class="toctree-l2"><a class="reference internal" href="#getting-stderrstdin-stdout">Getting stderr,stdin, stdout</a>
</li>
<li class="toctree-l2"><a class="reference internal" href="#getting-a-new-console">Getting a new console</a>
Expand Down Expand Up @@ -154,7 +154,7 @@
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../more/wasm-problem/">The Wasm Problem</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../more/debugging/">Debugging</a>
<li class="toctree-l1"><a class="reference internal" href="../../more/debugging/">Debugging WASM</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../more/production/">Production</a>
</li>
Expand All @@ -168,14 +168,14 @@
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="Mobile navigation menu">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../..">twr-wasm documentation</a>
<a href="../..">twr-wasm C/C++ Web Assembly Runtime Library</a>

</nav>
<div class="wy-nav-content">
<div class="rst-content"><div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="../.." class="icon icon-home" aria-label="Docs"></a></li>
<li class="breadcrumb-item">API Reference</li>
<li class="breadcrumb-item">twr-wasm API Reference</li>
<li class="breadcrumb-item active">C Console I/O</li>
<li class="wy-breadcrumbs-aside">
<a href="https://github.com/twiddlingbits/twr-wasm/tree/main/docs/api/api-c-con.md" class="icon icon-github"> Edit on GitHub</a>
Expand All @@ -186,7 +186,10 @@
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div class="section" itemprop="articleBody">

<h1 id="streamed-and-windowed-console-io">Streamed and Windowed Console I/O</h1>
<h1 id="streamed-and-windowed-wasm-console-io">Streamed and Windowed WASM Console I/O</h1>
<p>This section describes twr-wasm's method of providing and abstracting console I/O in Web Assembly Modules.</p>
<p>C character based input/output is abstracted by <code>struct IoConsole</code>. </p>
<p>Consoles can be "tty" aka "streamed", or they can be "windowed" (aka a "terminal"). </p>
<p>Also see <a href="../../gettingstarted/stdio/">stdio</a></p>
<h2 id="examples">Examples</h2>
<table>
Expand All @@ -205,9 +208,6 @@ <h2 id="examples">Examples</h2>
</tr>
</tbody>
</table>
<h2 id="overview">Overview</h2>
<p>C character based input/output is abstracted by <code>struct IoConsole</code>. </p>
<p>Consoles can be "tty" aka "streamed", or they can be "windowed" (aka a "terminal"). </p>
<h2 id="getting-stderrstdin-stdout">Getting stderr,stdin, stdout</h2>
<p>stdio.h defines <code>stdin</code>, <code>stdout</code>, <code>stderr</code> as explained here: <a href="../../gettingstarted/stdio/">stdio</a></p>
<p>stdio.h also defines <code>FILE</code> like this:</p>
Expand Down
Loading

0 comments on commit 7b9da59

Please sign in to comment.