VM の設定ファイルはその VM ディレクトリ内の nono.cfg
(または -c で指定したファイル) です。
@@ -322,7 +322,7 @@ VM の設定ファイルはその VM デ
(or the file specified by -c option) in the VM directory.
Its syntax is
key = value format, one per line.
White spaces before and after
key and
value are ignored.
-And, blank lines, lines beginning with "
#", and
+Blank lines, lines beginning with "
#", and
lines with unrecognized key are also ignored.
@@ -382,6 +382,20 @@ config_item("ethernet-macaddr = strin
_EOM_
);
+config_item("hostkbd-input = string", <<<_EOM_
+ホストキーボードの入力モードを指定します。
+char ならキャラクタ入力モード、
+jp なら日本語キーボードモードです。
+デフォルトは char です。
+詳細は VM について の章を参照してください。
+Specifies the input mode of the host keyboard.
+char means the character mode,
+jp means the Japanese keyboard mode.
+The defualt is char.
+See About VM for details.
+_EOM_
+);
+
config_item("hostnet-driver = string", <<<_EOM_
イーサネットデバイスのホスト側ドライバを指定します。
afpacket、bpf、tap のうち
@@ -787,8 +801,8 @@ _EOM_
-VM について About VM
-ステータスパネル Status Panel
+4. VM について About VM
+4.1. ステータスパネル Status Panel
ステータスパネル中央にあるパフォーマンスメータのアイコンは
高速モードの状態を表示しています。
@@ -830,7 +844,343 @@ the VM is running in full speed mode.
-キー入力 Key input
+4.2. キー入力モード Key input mode
+
+LUNA のキーボードは通常日本語キーボードです
+(英語キーボードも存在するようですが…)。
+そのため、ホストが日本語キーボードの場合とそうでない場合のために
+2つの入力モードを用意しています。
+どちらも一長一短があります。
+
Most LUNAs have the Japanese keyboard
+(though I ever heard there are the US keyboard...).
+So nono provides two input modes
+for Japanese keyboard users and non Japanese keyboard users.
+Both have advantages and disadvantages.
+
+JP キーボードモードは、ホストが日本語キーボードであることを前提に
+対応するキーの押下、開放をその都度 VM に入力します。
+メリットとしては動作が実機に近くなり、
+特にキーリピート(をハードウェアが行わないこと)も忠実に再現可能です。
+デメリットは ALT + TAB やアクセラレータキーでメニューを開く場合などに
+キー入力が残ることがあることです
+(キーを押した後でフォーカスが外れるとキーを離したことが
+アプリケーションに通知されないため)。
+またホストが日本語キーボードでなければ使いづらいです。
+JP keyboard mode assumes that the host uses the Japanese keyboard.
+Each time you presses and releases a key,
+nono sends the corresponding key-pressed or key-released to the VM.
+One advantage is that it's close to the real machine behavior,
+and another is that it can reproduce
+the LUNA keyboard itself does not perform a key repeat.
+On the other hand,
+one disadvantage is that key sometimes remains pressed,
+especially when you enter ALT + TAB to switch the application
+or enter accelerator key to open the menu
+(If the application loses the focus after the key is pressed,
+the application will not receive the subsequent key release).
+And another disadvantage is that
+it will be hard to use for non Japenese keyboard users.
+
+
+一方、キャラクタ入力モードは、ホストから入力された「文字」を
+再び LUNA のキーコードに解釈し直して VM に入力するモードです。
+例えばゲスト OS に "@" を入力したい場合、
+US キーボードなら [SHIFT] + [2] を、
+JP キーボードなら [@] キーを押しますが、
+どちらも VM には [@] キーの押下、[@] キーの開放が連続して送られます。
+US キーボードで [SHIFT] を押したことは通知されません。
+逆に "=" を入力したい場合、
+US キーボードなら [=] キーを、
+JP キーボードなら [SHIFT] + [-] を押しますが、
+どちらも VM には
+[SHIFT]押下 → [-]押下 → [-]開放 → [SHIFT]開放のシーケンスが送られます。
+このようにホストキーボードのレイアウトによらず、
+入力したい文字が入力できるようになり、
+通常のタイピングで困ることはないと思います。
+デメリットは、通常の文字入力以外のタイピングはほぼ出来ないことです。
+[SHIFT] キーを押したままにすることや、
+文字が入力できないキーの組み合わせは入力出来ません。
+もう一つのデメリットはキーリピート(をハードウェアが行わないこと)が再現できず、
+ホスト側のキーリピートが効いてしまうことです
+(本来キーリピートが動作しない ROM やブートローダでもキーリピートが効くことは
+一般ユーザからはメリットに感じられるかも知れませんが)。
+In contrast, in the character mode, when you type a character,
+nono re-converts it into the LUNA's key code and sends it to the VM.
+For example if you want to type "@" in the guest OS,
+you would press [SHIFT] + [2] on the US keyboard or [@] on the JP keyboard.
+In both cases, the sequence of
+[@]-pressed and [@]-released will be sent to the VM.
+Note that the fact that you pressed [SHIFT] key on the US keyboard
+will not be sent to the VM.
+Another example, if you want to type "=",
+you would press [=] on the US keyboard or [SHIFT] + [-] on the JP keyboard.
+In both cases, the sequence of
+[SHIFT]-pressed, [-]-pressed, [-]-released, and [SHIFT]-released
+will be sent to the VM.
+Thus, you can type what character you want to type,
+regardless of your keyboard layout.
+Of course there are some disadvantages.
+Firstly, it's hard to type any special characters,
+for example, you can not type any key conbinations
+that don't generate a character.
+Or you can not hold [SHIFT] key pressed.
+Secondly, the key repeat works (by the host),
+even though it should not work as a correct emulation
+(Although some of you may feel it an advantage).
+
+
+4.3. キャラクタ入力モードのキーコード対応表
+Keycode table in the character mode
+
+キャラクタ入力モードでの、ホストから入力した文字と
+VM に送信されるキーの対応は次の通りです。
+ファンクションキーとカーソルキーは文字ではありませんが
+特別に対応しています。
+HostChar が N/A で示してあるキーはソフトウェアキーボードからのみ入力できます。
+
The following table shows the correspondence between
+the character that typed from the host
+and the key that will be sent to the VM.
+nono can recognize the function keys and arrow keys.
+The keys where the HostChar is N/A can
+only be typed from the software keyboard window.
+
+
+
+a 〜 z [A] 〜 [Z]
+ 0 〜 9 [0] 〜 [9]
+ SPACE [SPACE]
+ - [-]
+ ^ [^]
+ \ [\]
+ @ [@]
+ [ [[]
+ ; [;]
+ : [:]
+ ] []]
+ , [,]
+ . [.]
+ / [/]
+ ^@ [CTRL]+[@]
+ ^A 〜 ^Z [CTRL]+[A] 〜 [CTRL]+[Z]
+ ^[ [ESC]
+ ^\ [CTRL]+[\]
+ ^] [CTRL]+[]]
+ ^^ [CTRL]+[^]
+ ^_ [CTRL]+[_]
+ ^H [BS]
+ ^I [TAB]
+ ^M [Enter]
+
+ A 〜 Z [SHIFT]+[A] 〜 [SHIFT]+[Z]
+ ! [SHIFT]+[1]
+ " [SHIFT]+[2]
+ # [SHIFT]+[3]
+ $ [SHIFT]+[4]
+ % [SHIFT]+[5]
+ & [SHIFT]+[6]
+ ' [SHIFT]+[7]
+ ( [SHIFT]+[8]
+ ) [SHIFT]+[9]
+ = [SHIFT]+[-]
+ ~ [SHIFT]+[^]
+ | [SHIFT]+[\]
+ ` [SHIFT]+[@]
+ { [SHIFT]+[[]
+ + [SHIFT]+[;]
+ * [SHIFT]+[:]
+ ] [SHIFT]+[]]
+ < [SHIFT]+[,]
+ > [SHIFT]+[.]
+ ? [SHIFT]+[/]
+ _ [SHIFT]+[_]
+
+ F1 〜 F10 [PF1] 〜 [PF10]
+ ↑ [↑]
+ ← [←]
+ → [→]
+ ↓ [↓]
+ N/A [確定]
+ N/A [前面]
+ N/A [CAP]
+ N/A [かな]
+ N/A [変換]
+ N/A [消去]
+ N/A [呼出]
+ N/A [文節←]
+ N/A [文節→]
+ N/A Numpad[0]〜[9]
+ N/A Numpad[+]
+ N/A Numpad[-]
+ N/A Numpad[*]
+ N/A Numpad[/]
+ N/A Numpad[=]
+ N/A Numpad[.]
+ N/A Numpad[Enter]
+__EOM__;
+ $table = array();
+ $table[0] = array();
+ $table[1] = array();
+ $table[2] = array();
+ $i = 0;
+ foreach (split("\n", $str) as $s) {
+ if ($s == "") {
+ $i++;
+ continue;
+ }
+ $s = preg_replace("/^\t+/", "", $s);
+ list ($hkey, $gkey) = preg_split("/\t+/", $s);
+ $table[$i][] = array($hkey, $gkey);
+ }
+
+ for ($j = 0; $j < count($table); $j++) {
+ switch ($j) {
+ case 0: $classname = "left"; break;
+ case 1: $classname = "middle"; break;
+ case 2: $classname = "right"; break;
+ }
+ print "\n";
+ print "";
+ print "| HostChar";
+ print " | GuestKey\n";
+ for ($i = 0; $i < count($table[$j]); $i++) {
+ list ($h, $g) = $table[$j][$i];
+ print " |
";
+ print "| {$h}";
+ print " | ${g}\n";
+ }
+ print " |
\n";
+ }
+?>
+
+
+
+4.4. JP キーボードモードのキーコード対応表
+Keycode table in the JP keyboard mode
+
+JP キーボードモードでの、ホストキーと VM に送信されるキーの対応は次の通りです。
+HostKey が N/A で示してあるキーは
+ソフトウェアキーボードからのみ入力出来ます。
+
The following table shows the correspondence between
+the host key and the guest key.
+The keys where the HostKey is N/A can only be enter from
+the software keyboard window.
+
+
+\n";
+ print "";
+ print "| HostKey";
+ print " | GuestKey\n";
+ for ($i = 0; $i < count($table[$j]); $i++) {
+ list ($h, $g) = $table[$j][$i];
+ print " |
";
+ print "| {$h}";
+ print " | ${g}\n";
+ }
+ print "\n";
+ }
+?>
+
+
+
+4.5. キーリピート Key Repeat
LUNA では、キーボードがハードウェア側でキーリピートを行わず、
ソフトウェア(OS など)がキーリピートの処理を行います。
@@ -848,8 +1198,7 @@ VM が高速動作するとキーリピ
(ALT + TAB やアクセラレータキーでメニューを開くと起きがちです)
高速モードが抑制されたままということが起きえます。
その場合はソフトウェアキーボードからキー入力を解除するなどしてください。
-
-On LUNA,
+On LUNA,
key repeat is done by software(OS), not by the keyboard hardware.
For this reason,
key repeat doesn't occur on LUNA's PROM or NetBSD/luna68k's bootloader
@@ -870,8 +1219,8 @@ In this case, you can resolve it by usin
-実行してみる Try it
-NetBSD/luna68k を実行してみる Try NetBSD/luna68k
+5. 実行してみる Try it
+5.1. NetBSD/luna68k を実行してみる Try NetBSD/luna68k
つついさんが NetBSD/luna68k 9.2 の liveimage を用意されています。
Tsutsui-san has provided a liveimage of NetBSD/luna68k 9.2.
@@ -978,7 +1327,7 @@ and nono will terminate when the VM is p
-OpenBSD/luna88k を実行してみる Try OpenBSD/luna88k
+5.2. OpenBSD/luna88k を実行してみる Try OpenBSD/luna88k
あおやまさんが OpenBSD/luna88k 6.9 の liveimage を用意されています。
Aoyama-san has provided a liveimage of OpenBSD/luna88k 6.9.
@@ -1063,7 +1412,7 @@ and nono will terminate when the VM is p
- ネットワーク設定例 Example of network setup
+ 6. ネットワーク設定例 Example of network setup
wm0 を持つ NetBSD ホストに tap(4) デバイスを用いて
nono のゲスト OS を接続する場合の設定例です。
@@ -1156,14 +1505,8 @@ It's OK if you can see "HostNet Driver:
-
- 変更履歴 Changes
-
-
- 過去のバージョンからの移行方法 How to migrate from old versions
+ 7. 過去のバージョンからの移行方法 How to migrate from old versions
バージョンアップに伴い設定ファイル等に非互換が発生する場合があります。
その場合は以下の移行方法を参照して設定ファイル等を更新してください。
@@ -1174,14 +1517,21 @@ In such case, you may need to upgrade it
+
+ 8. 変更履歴 Changes
+
+
- ライセンス License
+ 9. 連絡先、ライセンス等 Contact, License, etc
+
+ 9.1. ライセンス License
-
- 連絡先 Contact us
+ 9.2. 連絡先 Contact us
バグ報告などは以下にお願いします。日本語でおk。
If you find any problems, please let me know.
@@ -1190,8 +1540,7 @@ You may write in English.
>https://github.com/isaki68k/nono-issue/issues
-
- パッチの提供について About contributes
+ 9.3. パッチの提供について About contributes
パッチを提供してくださる場合は以下に同意したものとします。
If you provide a patch to nono, you must agree to the following conditions:
@@ -1207,8 +1556,7 @@ You may write in English.
-
- Acknowledgements
+ 9.4. Acknowledgements
nono は以下の広告条項を含むソースコードを利用しています。
nono uses source code with the following advertising clause.
|