12a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)<!DOCTYPE html>
22a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)<html>
32a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)<!--
42a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)Copyright (c) 2012 The Chromium Authors. All rights reserved.
52a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)Use of this source code is governed by a BSD-style license that can be
62a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)found in the LICENSE file.
72a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)-->
82a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)<head>
92a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  <meta http-equiv="Pragma" content="no-cache">
102a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  <meta http-equiv="Expires" content="-1">
112a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  <title>{{title}}</title>
122a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  <script type="text/javascript" src="common.js"></script>
132a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  <script type="text/javascript" src="example.js"></script>
142a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)</head>
15effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch<body {{attrs}} data-attrs="PS_STDOUT=dev/tty PS_TTY_PREFIX=tty: PS_EXIT_MESSAGE=exit">
162a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  <h1>{{title}}</h1>
172a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  <h2>Status: <code id="statusField">NO-STATUS</code></h2>
18c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)  <p>The Hello World Stdio example is the simplest one in the SDK.  It uses the
19eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch     ppapi_main library which creates a Module and an Instance, using default
20c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)     values to simplify setup and communication with the PPAPI system.  In
21c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)     addition, it uses the nacl_io library to remap IO to the Pepper API.  This
22c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)     simplifies IO by providing a standard blocking API and allowing STDERR to
23c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)     go to the JavaScript console by default.</p>
242a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  <p>In main, we write to both STDOUT and STDERR, printing a hello world
25c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)     message.</p>
262a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
272a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  <!-- The NaCl plugin will be embedded inside the element with id "listener".
282a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)      See common.js.-->
29c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)  <h2>Output:</h2>
30c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)  <pre id="log" style="font-weight:bold"></pre>
312a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  <div id="listener"></div>
322a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)</body>
332a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)</html>
34