aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Rumney2007-05-15 23:07:41 +0000
committerJason Rumney2007-05-15 23:07:41 +0000
commit5d333979c35d90c5ac89aba75f04f083cbd6f7c8 (patch)
tree54ff5927acba06eb4c9c42ede3a6d557a205d1c8
parent5c217767aedfadc8449ff2b0c7e37f2375c9a693 (diff)
downloademacs-5d333979c35d90c5ac89aba75f04f083cbd6f7c8.tar.gz
emacs-5d333979c35d90c5ac89aba75f04f083cbd6f7c8.zip
(dissociate_if_controlling_tty) [WINDOWSNT]: Don't define function body.
(init_tty) [WINDOWSNT]: Use selected_frame for initializing.
-rw-r--r--src/term.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/term.c b/src/term.c
index dcbe3f88a16..82b30b18af0 100644
--- a/src/term.c
+++ b/src/term.c
@@ -2365,6 +2365,7 @@ set_tty_hooks (struct terminal *terminal)
2365static void 2365static void
2366dissociate_if_controlling_tty (int fd) 2366dissociate_if_controlling_tty (int fd)
2367{ 2367{
2368#ifndef WINDOWSNT
2368 int pgid; 2369 int pgid;
2369 EMACS_GET_TTY_PGRP (fd, &pgid); /* If tcgetpgrp succeeds, fd is the ctty. */ 2370 EMACS_GET_TTY_PGRP (fd, &pgid); /* If tcgetpgrp succeeds, fd is the ctty. */
2370 if (pgid != -1) 2371 if (pgid != -1)
@@ -2389,6 +2390,7 @@ dissociate_if_controlling_tty (int fd)
2389#endif /* ! TIOCNOTTY */ 2390#endif /* ! TIOCNOTTY */
2390#endif /* ! USG */ 2391#endif /* ! USG */
2391 } 2392 }
2393#endif
2392} 2394}
2393 2395
2394static void maybe_fatal(); 2396static void maybe_fatal();
@@ -2509,11 +2511,17 @@ init_tty (char *name, char *terminal_type, int must_succeed)
2509 2511
2510 area = (char *) xmalloc (2044); 2512 area = (char *) xmalloc (2044);
2511 2513
2512 FrameRows (tty) = FRAME_LINES (f); /* XXX */ 2514 {
2513 FrameCols (tty) = FRAME_COLS (f); /* XXX */ 2515 struct frame *f = XFRAME (selected_frame);
2514 tty->specified_window = FRAME_LINES (f); /* XXX */
2515 2516
2516 tty->terminal->delete_in_insert_mode = 1; 2517 FrameRows (tty) = FRAME_LINES (f); /* XXX */
2518 FrameCols (tty) = FRAME_COLS (f); /* XXX */
2519 tty->specified_window = FRAME_LINES (f); /* XXX */
2520
2521 FRAME_CAN_HAVE_SCROLL_BARS (f) = 0; /* XXX */
2522 FRAME_VERTICAL_SCROLL_BAR_TYPE (f) = vertical_scroll_bar_none; /* XXX */
2523 }
2524 tty->delete_in_insert_mode = 1;
2517 2525
2518 UseTabs (tty) = 0; 2526 UseTabs (tty) = 0;
2519 terminal->scroll_region_ok = 0; 2527 terminal->scroll_region_ok = 0;
@@ -2526,9 +2534,7 @@ init_tty (char *name, char *terminal_type, int must_succeed)
2526 2534
2527 baud_rate = 19200; 2535 baud_rate = 19200;
2528 2536
2529 FRAME_CAN_HAVE_SCROLL_BARS (f) = 0; /* XXX */ 2537 tty->TN_max_colors = 16; /* Required to be non-zero for tty-display-color-p */
2530 FRAME_VERTICAL_SCROLL_BAR_TYPE (f) = vertical_scroll_bar_none; /* XXX */
2531 TN_max_colors = 16; /* Required to be non-zero for tty-display-color-p */
2532 2538
2533 return terminal; 2539 return terminal;
2534#else /* not WINDOWSNT */ 2540#else /* not WINDOWSNT */