<!DOCTYPE html>
<html>
<!--
Copyright 2012 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<head>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<title>{{title}}</title>
<script type="text/javascript" src="common.js"></script>
<script type="text/javascript" src="example.js"></script>
</head>
<body {{attrs}} data-attrs="PS_STDOUT=dev/tty PS_TTY_PREFIX=tty: PS_EXIT_MESSAGE=exit">
<h1>{{title}}</h1>
<h2>Status: <code id="statusField">NO-STATUS</code></h2>
<p>The Hello World Stdio example is the simplest one in the SDK. It uses the
ppapi_main library which creates a Module and an Instance, using default
values to simplify setup and communication with the PPAPI system. In
addition, it uses the nacl_io library to remap IO to the Pepper API. This
simplifies IO by providing a standard blocking API and allowing STDERR to
go to the JavaScript console by default.</p>
<p>In main, we write to both STDOUT and STDERR, printing a hello world
message.</p>
<!-- The NaCl plugin will be embedded inside the element with id "listener".
See common.js.-->
<h2>Output:</h2>
<pre id="log" style="font-weight:bold"></pre>
<div id="listener"></div>
</body>
</html>