Skip to content

Commit

Permalink
deploy: 4b49bd1
Browse files Browse the repository at this point in the history
  • Loading branch information
noelwelsh committed Jan 6, 2025
1 parent 59cff2e commit 2e23491
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 6 deletions.
2 changes: 2 additions & 0 deletions examples.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<li class="level1 active nav-leaf"><a href="#">Examples</a></li>
<li class="level1 nav-leaf"><a href="jvm.html">JVM Backend</a></li>
<li class="level1 nav-leaf"><a href="js.html">Javascript Backend</a></li>
<li class="level1 nav-leaf"><a href="native.html">Native Backend</a></li>
</ul>
</details>
</nav>
Expand All @@ -38,6 +39,7 @@
<li class="level1 active nav-leaf"><a href="#">Examples</a></li>
<li class="level1 nav-leaf"><a href="jvm.html">JVM Backend</a></li>
<li class="level1 nav-leaf"><a href="js.html">Javascript Backend</a></li>
<li class="level1 nav-leaf"><a href="native.html">Native Backend</a></li>
</ul>
</nav>

Expand Down
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<li class="level1 nav-leaf"><a href="examples.html">Examples</a></li>
<li class="level1 nav-leaf"><a href="jvm.html">JVM Backend</a></li>
<li class="level1 nav-leaf"><a href="js.html">Javascript Backend</a></li>
<li class="level1 nav-leaf"><a href="native.html">Native Backend</a></li>
</ul>
</details>
</nav>
Expand All @@ -38,15 +39,15 @@
<li class="level1 nav-leaf"><a href="examples.html">Examples</a></li>
<li class="level1 nav-leaf"><a href="jvm.html">JVM Backend</a></li>
<li class="level1 nav-leaf"><a href="js.html">Javascript Backend</a></li>
<li class="level1 nav-leaf"><a href="native.html">Native Backend</a></li>
</ul>
</nav>

<div id="content">
<main class="content">
<h1 id="terminus" class="title">Terminus</h1>
<p>Terminus is a Scala 3 library for working with the terminal.
It currently supports JVM and Javascript backends.
We intend to add <a href="https://scala-native.org/en/stable/">Scala Native</a> support .</p>
It currently supports JVM, Scala Native, and Javascript backends.</p>

<h2 id="setup" class="section">Setup</h2>
<p>To use Terminus, add the following to your <code>build.sbt</code></p>
Expand Down
4 changes: 3 additions & 1 deletion js.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<li class="level1 nav-leaf"><a href="examples.html">Examples</a></li>
<li class="level1 nav-leaf"><a href="jvm.html">JVM Backend</a></li>
<li class="level1 active nav-leaf"><a href="#">Javascript Backend</a></li>
<li class="level1 nav-leaf"><a href="native.html">Native Backend</a></li>
</ul>
</details>
</nav>
Expand All @@ -38,6 +39,7 @@
<li class="level1 nav-leaf"><a href="examples.html">Examples</a></li>
<li class="level1 nav-leaf"><a href="jvm.html">JVM Backend</a></li>
<li class="level1 active nav-leaf"><a href="#">Javascript Backend</a></li>
<li class="level1 nav-leaf"><a href="native.html">Native Backend</a></li>
</ul>
</nav>

Expand All @@ -61,7 +63,7 @@ <h2 id="running-a-terminal" class="section">Running a Terminal</h2>
<h2 id="user-input" class="section">User Input</h2>
<p>User input is asynchronous in the web browser, so the normal <a class="api" href="https://javadoc.io/doc/org.creativescala/terminus-docs_3/latest/terminus/Reader.html">Reader</a> interface doesn&#39;t work. Instead, Terminus provides a <code>readKey</code> method, which returns a <code>Future[String]</code>, where the <code>String</code> is the <a href="https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key">key from a DOM <code>KeyboardEvent</code></a>.</p>
<div class="flex flex-row justify-between">
<a class="pageNavigation" href="jvm.html">←JVM Backend</a>
<a class="pageNavigation" href="jvm.html">←JVM Backend</a> <a class="pageNavigation" href="native.html">Native Backend→</a>
</div>
</main>
<footer>Creative Scala is copyright Noel Welsh</footer>
Expand Down
5 changes: 4 additions & 1 deletion jvm.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<li class="level1 nav-leaf"><a href="examples.html">Examples</a></li>
<li class="level1 active nav-leaf"><a href="#">JVM Backend</a></li>
<li class="level1 nav-leaf"><a href="js.html">Javascript Backend</a></li>
<li class="level1 nav-leaf"><a href="native.html">Native Backend</a></li>
</ul>
</details>
</nav>
Expand All @@ -38,13 +39,15 @@
<li class="level1 nav-leaf"><a href="examples.html">Examples</a></li>
<li class="level1 active nav-leaf"><a href="#">JVM Backend</a></li>
<li class="level1 nav-leaf"><a href="js.html">Javascript Backend</a></li>
<li class="level1 nav-leaf"><a href="native.html">Native Backend</a></li>
</ul>
</nav>

<div id="content">
<main class="content">
<h1 id="jvm-backend" class="title">JVM Backend</h1>
<p>The JVM backend uses <a href="https://jline.org/">JLine</a> for terminal access. To use this implementation just import <code>terminus.Terminal</code> and call methods as normal.</p>
<p>The JVM backend uses <a href="https://jline.org/">JLine</a> for terminal access. It works on every platform that JLine supports, which includes Linux, macOS, and Windows.</p>
<p>To use this implementation just import <code>terminus.Terminal</code> and call methods as normal.</p>
<div class="flex flex-row justify-between">
<a class="pageNavigation" href="examples.html">←Examples</a> <a class="pageNavigation" href="js.html">Javascript Backend→</a>
</div>
Expand Down
4 changes: 2 additions & 2 deletions main.js.map

Large diffs are not rendered by default.

61 changes: 61 additions & 0 deletions native.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<!doctype html>
<html lang="">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="Laika 1.0.0" />
<title>Native Backend</title>


<meta name="description" content="docs" />

<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400|Source+Sans+Pro:300,400,600"
rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Crimson+Pro:400" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="css/creative-scala.css" /><link rel="stylesheet" type="text/css" href="xterm.css" />
<script src="js/toc.js"></script><script src="js/solution.js"></script><script src="main.js"></script><script src="xterm.js"></script>
<script> /* for avoiding page load transitions */</script>
</head>

<body>
<nav id="topbar">
<details>
<summary>Terminus</summary>
<ul class="nav-list">
<li class="level1 nav-leaf"><a href="examples.html">Examples</a></li>
<li class="level1 nav-leaf"><a href="jvm.html">JVM Backend</a></li>
<li class="level1 nav-leaf"><a href="js.html">Javascript Backend</a></li>
<li class="level1 active nav-leaf"><a href="#">Native Backend</a></li>
</ul>
</details>
</nav>
<nav id="sidebar">
<ul class="nav-list">
<li class="level1 nav-leaf"><a href="index.html">Terminus</a></li>
<li class="level1 nav-leaf"><a href="examples.html">Examples</a></li>
<li class="level1 nav-leaf"><a href="jvm.html">JVM Backend</a></li>
<li class="level1 nav-leaf"><a href="js.html">Javascript Backend</a></li>
<li class="level1 active nav-leaf"><a href="#">Native Backend</a></li>
</ul>
</nav>

<div id="content">
<main class="content">
<h1 id="native-backend" class="title">Native Backend</h1>
<p>The <a href="https://scala-native.org/">Scala Native</a> backend is built against Scala Native <em>0.5.6</em>. It currently supports macOS and Linux.</p>
<p>With the native backend you can produce executable that are very small (typically a few megabytes) and start in milliseconds.</p>
<div class="flex flex-row justify-between">
<a class="pageNavigation" href="js.html">←Javascript Backend</a>
</div>
</main>
<footer>Creative Scala is copyright Noel Welsh</footer>
</div>

</div>
</body>

</html>

0 comments on commit 2e23491

Please sign in to comment.