Added copyright license header
diff --git a/contiki/ctk/ctk-conio.h b/contiki/ctk/ctk-conio.h
index 302ad56..4db105f 100644
--- a/contiki/ctk/ctk-conio.h
+++ b/contiki/ctk/ctk-conio.h
@@ -29,7 +29,7 @@
  *
  * This file is part of the "ctk" console GUI toolkit for cc65
  *
- * $Id: ctk-conio.h,v 1.3 2004/06/06 05:52:21 adamdunkels Exp $
+ * $Id: ctk-conio.h,v 1.4 2004/09/12 20:24:54 adamdunkels Exp $
  *
  */
 
@@ -43,9 +43,7 @@
 #define ctk_arch_keyavail kbhit
 #define ctk_arch_getkey   cgetc
 
-#ifndef CH_ENTER
 #define CH_ENTER '\n'
-#endif /* CH_ENTER */
 
 #ifndef CH_F1
 #define CH_F1 CH_ESC
diff --git a/contiki/ctk/ctk-draw-service.h b/contiki/ctk/ctk-draw-service.h
index 661134a..d0e572a 100644
--- a/contiki/ctk/ctk-draw-service.h
+++ b/contiki/ctk/ctk-draw-service.h
@@ -1,3 +1,37 @@
+/*
+ * Copyright (c) 2004, Adam Dunkels.
+ * All rights reserved. 
+ *
+ * Redistribution and use in source and binary forms, with or without 
+ * modification, are permitted provided that the following conditions 
+ * are met: 
+ * 1. Redistributions of source code must retain the above copyright 
+ *    notice, this list of conditions and the following disclaimer. 
+ * 2. Redistributions in binary form must reproduce the above copyright 
+ *    notice, this list of conditions and the following disclaimer in the 
+ *    documentation and/or other materials provided with the distribution. 
+ * 3. Neither the name of the Institute nor the names of its contributors 
+ *    may be used to endorse or promote products derived from this software 
+ *    without specific prior written permission. 
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 
+ * SUCH DAMAGE. 
+ *
+ * This file is part of the Contiki operating system.
+ * 
+ * Author: Adam Dunkels <adam@sics.se>
+ *
+ * $Id: ctk-draw-service.h,v 1.3 2004/09/12 20:24:55 adamdunkels Exp $
+ */
 #ifndef __CTK_DRAW_SERVICE_H__
 #define __CTK_DRAW_SERVICE_H__
 
diff --git a/contiki/ctk/ctk-draw.c b/contiki/ctk/ctk-draw.c
index dfc0ec2..33af1e2 100644
--- a/contiki/ctk/ctk-draw.c
+++ b/contiki/ctk/ctk-draw.c
@@ -1,3 +1,37 @@
+/*
+ * Copyright (c) 2004, Adam Dunkels.
+ * All rights reserved. 
+ *
+ * Redistribution and use in source and binary forms, with or without 
+ * modification, are permitted provided that the following conditions 
+ * are met: 
+ * 1. Redistributions of source code must retain the above copyright 
+ *    notice, this list of conditions and the following disclaimer. 
+ * 2. Redistributions in binary form must reproduce the above copyright 
+ *    notice, this list of conditions and the following disclaimer in the 
+ *    documentation and/or other materials provided with the distribution. 
+ * 3. Neither the name of the Institute nor the names of its contributors 
+ *    may be used to endorse or promote products derived from this software 
+ *    without specific prior written permission. 
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 
+ * SUCH DAMAGE. 
+ *
+ * This file is part of the Contiki operating system.
+ * 
+ * Author: Adam Dunkels <adam@sics.se>
+ *
+ * $Id: ctk-draw.c,v 1.4 2004/09/12 20:24:55 adamdunkels Exp $
+ */
 
 #include "ek-service.h"
 
diff --git a/contiki/ctk/ctk-mouse.h b/contiki/ctk/ctk-mouse.h
index f6018eb..09ef6f3 100644
--- a/contiki/ctk/ctk-mouse.h
+++ b/contiki/ctk/ctk-mouse.h
@@ -29,7 +29,7 @@
  *
  * This file is part of the "ctk" console GUI toolkit for cc65
  *
- * $Id: ctk-mouse.h,v 1.3 2004/06/06 05:52:21 adamdunkels Exp $
+ * $Id: ctk-mouse.h,v 1.4 2004/09/12 20:24:55 adamdunkels Exp $
  *
  */
 #ifndef __CTK_MOUSE_H__
diff --git a/contiki/ctk/ctk-term-in.c b/contiki/ctk/ctk-term-in.c
index ea1a545..667c33a 100644
--- a/contiki/ctk/ctk-term-in.c
+++ b/contiki/ctk/ctk-term-in.c
@@ -1,3 +1,37 @@
+/*
+ * Copyright (c) 2004, Adam Dunkels.
+ * All rights reserved. 
+ *
+ * Redistribution and use in source and binary forms, with or without 
+ * modification, are permitted provided that the following conditions 
+ * are met: 
+ * 1. Redistributions of source code must retain the above copyright 
+ *    notice, this list of conditions and the following disclaimer. 
+ * 2. Redistributions in binary form must reproduce the above copyright 
+ *    notice, this list of conditions and the following disclaimer in the 
+ *    documentation and/or other materials provided with the distribution. 
+ * 3. Neither the name of the Institute nor the names of its contributors 
+ *    may be used to endorse or promote products derived from this software 
+ *    without specific prior written permission. 
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 
+ * SUCH DAMAGE. 
+ *
+ * This file is part of the Contiki operating system.
+ * 
+ * Author: Adam Dunkels <adam@sics.se>
+ *
+ * $Id: ctk-term-in.c,v 1.2 2004/09/12 20:24:55 adamdunkels Exp $
+ */
 #include <string.h>
 #include "ctk.h"
 #include "ctk-term.h"
diff --git a/contiki/ctk/ctk-term-int.h b/contiki/ctk/ctk-term-int.h
index 64bbd2c..711c8ab 100644
--- a/contiki/ctk/ctk-term-int.h
+++ b/contiki/ctk/ctk-term-int.h
@@ -64,4 +64,4 @@
 
 void ctk_term_input_init();
 
-#endif /* __CTK_TERM_INT_H__ */
\ No newline at end of file
+#endif /* __CTK_TERM_INT_H__ */
diff --git a/contiki/ctk/ctk-term-out.h b/contiki/ctk/ctk-term-out.h
index 78f5582..6db7544 100644
--- a/contiki/ctk/ctk-term-out.h
+++ b/contiki/ctk/ctk-term-out.h
@@ -7,4 +7,4 @@
 			   unsigned char  c, 
 			   unsigned char  color);
 
-#endif /* __CTK_TERM_OUT_H__ */
\ No newline at end of file
+#endif /* __CTK_TERM_OUT_H__ */
diff --git a/contiki/ctk/ctk-vncserver.h b/contiki/ctk/ctk-vncserver.h
index d1c12d3..1663748 100644
--- a/contiki/ctk/ctk-vncserver.h
+++ b/contiki/ctk/ctk-vncserver.h
@@ -29,7 +29,7 @@
  *
  * This file is part of the "ctk" console GUI toolkit for cc65
  *
- * $Id: ctk-vncserver.h,v 1.3 2004/06/06 05:52:21 adamdunkels Exp $
+ * $Id: ctk-vncserver.h,v 1.4 2004/09/12 20:24:55 adamdunkels Exp $
  *
  */
 #ifndef __CTK_VNCSERVER_H__
diff --git a/contiki/ctk/vnc-out.h b/contiki/ctk/vnc-out.h
index 67a5505..94cfb95 100644
--- a/contiki/ctk/vnc-out.h
+++ b/contiki/ctk/vnc-out.h
@@ -28,7 +28,7 @@
  *
  * This file is part of the uIP TCP/IP stack.
  *
- * $Id: vnc-out.h,v 1.3 2004/06/06 05:52:21 adamdunkels Exp $
+ * $Id: vnc-out.h,v 1.4 2004/09/12 20:24:55 adamdunkels Exp $
  *
  */
 
diff --git a/contiki/ctk/vnc-server.h b/contiki/ctk/vnc-server.h
index cfaa844..79cd033 100644
--- a/contiki/ctk/vnc-server.h
+++ b/contiki/ctk/vnc-server.h
@@ -28,7 +28,7 @@
  *
  * This file is part of the uIP TCP/IP stack.
  *
- * $Id: vnc-server.h,v 1.3 2004/06/06 05:52:21 adamdunkels Exp $
+ * $Id: vnc-server.h,v 1.4 2004/09/12 20:24:55 adamdunkels Exp $
  *
  */