22 lines
No EOL
2.8 KiB
HTML
22 lines
No EOL
2.8 KiB
HTML
<!doctype html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
<title>System — Ludic</title>
|
||
<meta name="description" content="Low-level file and process access — raw file handles, reading a character, and running a shell command.">
|
||
<link rel="stylesheet" href="base.css">
|
||
<link rel="stylesheet" href="docs.css">
|
||
</head>
|
||
<body>
|
||
<header class="nav"><div class="wrap nav-in"><a class="brand" href="index.html"><span class="logo">L</span> Ludic</a><button class="nav-toggle" aria-label="Toggle menu" aria-expanded="false">☰</button><nav class="nav-links"><a href="index.html">Home</a><a href="api.html">API Reference</a><a class="nav-cta" href="https://git.workshopsoft.io/workshopsoft/ludic">Source ↗</a></nav></div></header>
|
||
<main class="wrap item">
|
||
<div class="crumbs"><a href="api.html">API Reference</a> <span>›</span> <span class="here">System</span></div>
|
||
<div class="item-head"><span class="kind-badge kind-namespace">namespace</span><h1 id="top">System</h1></div>
|
||
<p class="ns-blurb">Low-level file and process access — raw file handles, reading a character, and running a shell command. Outside the deterministic simulation. For command-line arguments, environment variables, the exit code, and the standard streams, use the <code>Os</code> namespace.</p>
|
||
<div class="ns-methods"><a class="ns-method" href="system-run.html"><code class="nm-sig">System.run(command) -> int</code><span class="nm-tip">Run a shell command.</span></a><a class="ns-method" href="system-read_char.html"><code class="nm-sig">System.read_char() -> int</code><span class="nm-tip">Read one byte from standard input.</span></a><a class="ns-method" href="system-file_open.html"><code class="nm-sig">System.file_open(path, mode) -> pointer</code><span class="nm-tip">Open a file.</span></a><a class="ns-method" href="system-file_read.html"><code class="nm-sig">System.file_read(file, buf, n) -> int</code><span class="nm-tip">Read bytes from a file.</span></a><a class="ns-method" href="system-file_write.html"><code class="nm-sig">System.file_write(file, buf, n) -> int</code><span class="nm-tip">Write bytes to a file.</span></a><a class="ns-method" href="system-file_seek.html"><code class="nm-sig">System.file_seek(file, offset, whence) -> int</code><span class="nm-tip">Move a file's read/write position.</span></a><a class="ns-method" href="system-file_tell.html"><code class="nm-sig">System.file_tell(file) -> int</code><span class="nm-tip">The current file position.</span></a><a class="ns-method" href="system-file_close.html"><code class="nm-sig">System.file_close(file) -> void</code><span class="nm-tip">Close a file.</span></a></div>
|
||
<a class="back" href="api.html">← All symbols</a>
|
||
</main>
|
||
<script src="ludic-highlight.js"></script>
|
||
<script>Ludic.installCards(); Ludic.flashTarget();</script>
|
||
</body></html> |