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