+commands[] = {
+#define SRSCAN 0
+ {"SRSCAN", SRSCAN, OPTION_TTY},
+#define STATUS 1
+ {"STATUS", STATUS, OPTION_TTY},
+#define REQUEST 2
+ {"REQUEST", REQUEST, OPTION_TTY},
+#define LRSCAN 3
+ {"LRSCAN", LRSCAN, OPTION_TTY},
+#define PHASERS 4
+ {"PHASERS", PHASERS, 0},
+#define TORPEDO 5
+ {"TORPEDO", TORPEDO, 0},
+ {"PHOTONS", TORPEDO, 0},
+#define MOVE 6
+ {"MOVE", MOVE, 0},
+#define SHIELDS 7
+ {"SHIELDS", SHIELDS, 0},
+#define DOCK 8
+ {"DOCK", DOCK, 0},
+#define DAMAGES 9
+ {"DAMAGES", DAMAGES, 0},
+#define CHART 10
+ {"CHART", CHART, 0},
+#define IMPULSE 11
+ {"IMPULSE", IMPULSE, 0},
+#define REST 12
+ {"REST", REST, 0},
+#define WARP 13
+ {"WARP", WARP, 0},
+#define SCORE 14
+ {"SCORE", SCORE, 0},
+#define SENSORS 15
+ {"SENSORS", SENSORS, OPTION_PLANETS},
+#define ORBIT 16
+ {"ORBIT", ORBIT, OPTION_PLANETS},
+#define TRANSPORT 17
+ {"TRANSPORT", TRANSPORT, OPTION_PLANETS},
+#define MINE 18
+ {"MINE", MINE, OPTION_PLANETS},
+#define CRYSTALS 19
+ {"CRYSTALS", CRYSTALS, OPTION_PLANETS},
+#define SHUTTLE 20
+ {"SHUTTLE", SHUTTLE, OPTION_PLANETS},
+#define PLANETS 21
+ {"PLANETS", PLANETS, OPTION_PLANETS},
+#define REPORT 22
+ {"REPORT", REPORT, 0},
+#define COMPUTER 23
+ {"COMPUTER", COMPUTER, 0},
+#define COMMANDS 24
+ {"COMMANDS", COMMANDS, 0},
+#define EMEXIT 25
+ {"EMEXIT", EMEXIT, 0},
+#define PROBE 26
+ {"PROBE", PROBE, OPTION_PROBE},
+#define SAVE 27
+ {"SAVE", SAVE, 0},
+ {"FREEZE", SAVE, 0},
+#define ABANDON 28
+ {"ABANDON", ABANDON, 0},
+#define DESTRUCT 29
+ {"DESTRUCT", DESTRUCT, 0},
+#define DEATHRAY 30
+ {"DEATHRAY", DEATHRAY, 0},
+#define DEBUGCMD 31
+ {"DEBUG", DEBUGCMD, 0},
+#define MAYDAY 32
+ {"MAYDAY", MAYDAY, 0},
+ //{"SOS", MAYDAY, 0},
+ {"CALL", MAYDAY, 0},
+#define QUIT 33
+ {"QUIT", QUIT, 0},
+#define HELP 34
+ {"HELP", HELP, 0},
+};