Usermode/AxWin3 - Added keysyms (symlink to kernel version)
[tpg/acess2.git] / Usermode / Applications / axwin2_src / Shell_src / main.c
index 43b37fd..f1c0416 100644 (file)
@@ -3,6 +3,8 @@
  * - By John Hodge (thePowersGang)
  */
 #include <axwin2/axwin.h>
+#include <stdlib.h>
+#include <stdio.h>
 
 // === CONSTANTS ===
 enum eTerminal_Events
@@ -25,6 +27,14 @@ tAxWin_Element       *geConsole;
 int main(int argc, char *argv[])
 {
        tAxWin_Element  *menu, *tab;
+       
+       if(argc != 1)
+       {
+               fprintf(stderr, "Usage: %s\n", argv[0]);
+               fprintf(stderr, "\tThis application takes no arguments\n");
+               return 0;
+       }
+
        AxWin_Register("Terminal", Global_HandleMessage);
 
        menu = AxWin_AddMenuItem(NULL, "File", 0);
@@ -33,7 +43,7 @@ int main(int argc, char *argv[])
        AxWin_AddMenuItem(menu, "&Close Tab\tCtrl-Shift-W", EVENT_CLOSE_TAB);
        AxWin_AddMenuItem(menu, "E&xit\tAlt-F4", EVENT_EXIT);
 
-       tab = AxWin_CreateTab("root@acess: ~");
+       tab = AxWin_CreateWindow("root@acess: ~");
        //geConsole = AxWin_CreateElement();
        
        AxWin_MessageLoop();
@@ -45,10 +55,18 @@ int main(int argc, char *argv[])
  */
 int Global_HandleMessage(tAxWin_Message *Message)
 {
-       return 0;
+       switch(Message->ID)
+       {
+       default:
+               return 0;
+       }
 }
 
 int Shell_HandleMessage(tAxWin_Message *Message)
 {
-       return 0;
+       switch(Message->ID)
+       {
+       default:
+               return 0;
+       }
 }

UCC git Repository :: git.ucc.asn.au