Events

Events are messages sent to the event endpoint (-event or Debug → Event...) about various emulated physical devices like the drives, cassette or keyboard. You might want to watch them for high-level debugging or send them to a program which blinks real LEDs or something.

Event messages are send one per line and are simple ASCII text:

dN
Floppy drive N is now active. d-1 means no floppy drive is active.
sN
The active floppy drive has seeked to track N.
hN
Hard drive N is now active. h-1 means no hard drive is active.
eN
The active hard drive has seeked to track N.
c1
The cassette relay has turned on.
c0
The cassette relay has turned off.
p1
Data is being send to the printer.
p0
No data is being send to the printer.
kRCS
The key at row R and column C has been pressed (S=1) or released (S=0). For example, if the A key is tapped on a Model 1 a k011 message will be sent followed closely by a k010. See the keyboard matrices below for how to map row and column numbers to keys for each model.
r1
The reset button has been pressed.
r0
The reset button has been released.

Keyboard Matrices

Not all models have keyboards and others like the DT-1 and Model 2/12/16/6000 family are not yet emulated at the keyboard matrix level. These models do not generate keyboard events.

Model I Keyboard Matrix

Column
Row01234567
0@ABCDEFG
1HIJKLMNO
2PQRSTUVW
3XYZ
401234567
589:;,-./
6EnterClearBreakSpace-Bar
7Shift

Model III Keyboard Matrix

Column
Row01234567
0@ABCDEFG
1HIJKLMNO
2PQRSTUVW
3XYZ
401234567
589:;,-./
6EnterClearBreakSpace-Bar
7Left ShiftRight Shift

Model 4 Keyboard Matrix

Column
Row01234567
0@ABCDEFG
1HIJKLMNO
2PQRSTUVW
3XYZ
401234567
589:;,-./
6EnterClearBreakSpace-Bar
7Left ShiftRight ShiftCtrlCapsF1F2F3

Japanese Model I Keyboard Matrix

Column
Row01234567
0
@ ゙

A チ

B コ

C ソ

D シ

E イ

F ハ

G キ
1
H ク

I ニ

J マ

K ノ

L リ

M モ

N ミ

O ラ
2
P セ

Q タ

R ス

S ト

T カ

U ナ

V ヒ

Wテ
3
X サ

Y ン

Z ツ

0

1

2

3

4
4
0 ワ
!
1 ヌ
"
2 フ
# ァ
3 ア
$ ゥ
4 ウ
% ェ
5 エ
& ォ
6 オ
' ャ
7 ヤ
5 ( 「
8 ユ
( ョ
9 ヨ
* 「
: ケ
+
; レ
< 、
, ネ
=
- ホ
> 。
. ル
? ・
/ メ
6 Enter
clearム
Break → ロ Space-Bar
7
¥ ヘ

5

6

7

8

9

.
8 Shift
9 英数
カナ
Note the keys marked 0 .. 9 and . are on the numeric keypad which can be read independently on the Japanese Model I. The numeric keybord is wired in parallel with the main keyboard on the original Model I (and 3 and 4).

Videotex/CoCo matrix

Column
Row01234567
0 @ A B C D E F G
1 H I J K L M N O
2 P Q R S T U V W
3 X Y Z Space-Bar
4 0 1 2 3 4 5 6 7
5 8 9 : ; , - . /
6 Enter Clear Break Shift

MC-10 Keyboard Matrix

Column
Row01234567
0 @ A ▚ B C ▖ D ▟ E ▜ F ▞ G ▐
1 H I J K L M N O
2 P Q █ R ▀ S ▘ T ▙ U V ▗ W ▛
3 X ▄ Y ▌ Z ▝ Enter Space-Bar
4 0 1 2 3 4 5 6 7
5 8 9 : ; , - . /
6 Control Break Shift