15f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)<!DOCTYPE html>
25f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)<html>
35f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)<!--
45f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)Copyright (c) 2012 The Chromium Authors. All rights reserved.
55f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)Use of this source code is governed by a BSD-style license that can be
65f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)found in the LICENSE file.
75f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)-->
803b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)<head>
95f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)  <meta http-equiv="Pragma" content="no-cache">
105f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)  <meta http-equiv="Expires" content="-1">
1103b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)  <title>{{title}}</title>
125f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)  <script type="text/javascript" src="common.js"></script>
135f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)  <script type="text/javascript" src="example.js"></script>
145f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)</head>
155f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)<body {{attrs}} data-attrs="PS_STDOUT=dev/tty PS_TTY_PREFIX=tty: PS_EXIT_MESSAGE=exit">
165f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)  <h1>{{title}}</h1>
175f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)  <h2>Status: <code id="statusField">NO-STATUS</code></h2>
185f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)  <p>The Hello World Stdio example is the simplest one in the SDK.  It uses the
195f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)     ppapi_main library which creates a Module and an Instance, using default
205f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)     values to simplify setup and communication with the PPAPI system.  In
215f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)     addition, it uses the nacl_io library to remap IO to the Pepper API.  This
225f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)     simplifies IO by providing a standard blocking API and allowing STDERR to
235f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)     go to the JavaScript console by default.</p>
245f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)  <p>In main, we write to both STDOUT and STDERR, printing a hello world
255f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)     message.</p>
265f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)
275f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)  <!-- The NaCl plugin will be embedded inside the element with id "listener".
285f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)      See common.js.-->
295f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)  <h2>Output:</h2>
305f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)  <pre id="log" style="font-weight:bold"></pre>
315f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)  <div id="listener"></div>
325f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)</body>
335f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)</html>
345f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)