summaryrefslogtreecommitdiff
path: root/ao-view
diff options
context:
space:
mode:
Diffstat (limited to 'ao-view')
-rw-r--r--ao-view/aoview.glade1
-rw-r--r--ao-view/aoview.h4
-rw-r--r--ao-view/aoview_main.c16
3 files changed, 15 insertions, 6 deletions
diff --git a/ao-view/aoview.glade b/ao-view/aoview.glade
index df08b83c..3481a779 100644
--- a/ao-view/aoview.glade
+++ b/ao-view/aoview.glade
@@ -651,7 +651,6 @@ You should have received a copy of the GNU General Public License along with AoV
<property name="type_hint">normal</property>
<property name="skip_taskbar_hint">True</property>
<property name="transient_for">aoview</property>
- <property name="has_separator">False</property>
<property name="buttons">close</property>
<property name="text">Saving EEPROM data as</property>
<property name="secondary_text">&lt;filename&gt;</property>
diff --git a/ao-view/aoview.h b/ao-view/aoview.h
index 62d0640b..e8334e5b 100644
--- a/ao-view/aoview.h
+++ b/ao-view/aoview.h
@@ -308,4 +308,8 @@ aoview_flite_start(void);
void
aoview_flite_stop(void);
+/* aoview_main.c */
+
+extern char *aoview_tty;
+
#endif /* _AOVIEW_H_ */
diff --git a/ao-view/aoview_main.c b/ao-view/aoview_main.c
index 36a82e0e..64c1c027 100644
--- a/ao-view/aoview_main.c
+++ b/ao-view/aoview_main.c
@@ -32,29 +32,29 @@ static void destroy_event(GtkWidget *widget, gpointer data)
}
extern int _Xdebug;
+char *aoview_tty = NULL;
int main(int argc, char **argv)
{
GladeXML *xml = NULL;
GtkWidget *mainwindow;
- char *device = NULL;
GtkAboutDialog *about_dialog;
static struct option long_options[] = {
- { "device", 1, 0, 'd'},
+ { "tty", 1, 0, 'T'},
{ "sync", 0, 0, 's'},
{ 0, 0, 0, 0 }
};
for (;;) {
int c, temp;
- c = getopt_long_only(argc, argv, "sd:", long_options, &temp);
+ c = getopt_long_only(argc, argv, "sT:", long_options, &temp);
if (c == -1)
break;
switch (c) {
- case 'd':
- device = optarg;
+ case 'T':
+ aoview_tty = optarg;
break;
case 's':
_Xdebug = 1;
@@ -102,6 +102,12 @@ int main(int argc, char **argv)
aoview_label_init(xml);
+ if (aoview_tty) {
+ if (!aoview_monitor_connect(aoview_tty)) {
+ perror(aoview_tty);
+ exit(1);
+ }
+ }
aoview_voice_speak("rocket flight monitor ready\n");
gtk_main();