emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/term.c,v


From: Jason Rumney
Subject: [Emacs-diffs] Changes to emacs/src/term.c,v
Date: Tue, 04 Sep 2007 23:13:57 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Jason Rumney <jasonr>   07/09/04 23:13:57

Index: term.c
===================================================================
RCS file: /sources/emacs/emacs/src/term.c,v
retrieving revision 1.194
retrieving revision 1.195
diff -u -b -r1.194 -r1.195
--- term.c      4 Sep 2007 22:31:01 -0000       1.194
+++ term.c      4 Sep 2007 23:13:57 -0000       1.195
@@ -3273,6 +3273,9 @@
 
 #ifdef WINDOWSNT
   initialize_w32_display (terminal);
+  /* The following two are inaccessible from w32console.c.  */
+  terminal->delete_frame_hook = &delete_tty_output;
+  terminal->delete_terminal_hook = &delete_tty;
 
   /* XXX Can this be non-null?  */
   if (name)
@@ -3282,23 +3285,21 @@
     }
   tty->type = xstrdup (terminal_type);  
 
-  /* XXX not sure if this line is correct. If it is not set then we
-     crash in update_display_1. */
   tty->output = stdout;
+  tty->input = stdin;
+  add_keyboard_wait_descriptor (0);
   
   Wcm_clear (tty);
 
-  area = (char *) xmalloc (2044); /* XXX this seems unused. */
-
   {
     struct frame *f = XFRAME (selected_frame);
 
-    FrameRows (tty) = FRAME_LINES (f); /* XXX */
-    FrameCols (tty) = FRAME_COLS (f);  /* XXX */
-    tty->specified_window = FRAME_LINES (f); /* XXX */
+    FrameRows (tty) = FRAME_LINES (f);
+    FrameCols (tty) = FRAME_COLS (f);
+    tty->specified_window = FRAME_LINES (f);
 
-    FRAME_CAN_HAVE_SCROLL_BARS (f) = 0; /* XXX */
-    FRAME_VERTICAL_SCROLL_BAR_TYPE (f) = vertical_scroll_bar_none; /* XXX */
+    FRAME_CAN_HAVE_SCROLL_BARS (f) = 0;
+    FRAME_VERTICAL_SCROLL_BAR_TYPE (f) = vertical_scroll_bar_none;
   }
   tty->delete_in_insert_mode = 1;
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]