コンソール

目次

キーワード

概要

console.xsl には、コンソール画面っぽい表示を行うための template が記述されています。

ソース

<console xml:space="preserve" title="テスト用のコンソール画面">
<prompt/>slogin test@server<comment>SSH でサーバにログイン</comment>
Password: <input>サーバ上のパスワードを入力</input>
<prompt char="[server test] &gt;"/>pwd<comment>現在位置を確認</comment>
/home/test
<prompt char="[server test] &gt;"/>exit
<prompt/>
</console>

結果

> slogin test@server
← SSH でサーバにログイン
Password: サーバ上のパスワードを入力
[server test] > pwd
← 現在位置を確認
/home/test
[server test] > exit
>