diff options
Diffstat (limited to 'src/term.c')
| -rw-r--r-- | src/term.c | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/src/term.c b/src/term.c index ec30796bfff..53879e57e5b 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -2133,8 +2133,7 @@ DEFUN ("tty-display-color-p", Ftty_display_color_p, Stty_display_color_p, | |||
| 2133 | TERMINAL can be a terminal object, a frame, or nil (meaning the | 2133 | TERMINAL can be a terminal object, a frame, or nil (meaning the |
| 2134 | selected frame's terminal). This function always returns nil if | 2134 | selected frame's terminal). This function always returns nil if |
| 2135 | TERMINAL does not refer to a text-only terminal. */) | 2135 | TERMINAL does not refer to a text-only terminal. */) |
| 2136 | (terminal) | 2136 | (Lisp_Object terminal) |
| 2137 | Lisp_Object terminal; | ||
| 2138 | { | 2137 | { |
| 2139 | struct terminal *t = get_tty_terminal (terminal, 0); | 2138 | struct terminal *t = get_tty_terminal (terminal, 0); |
| 2140 | if (!t) | 2139 | if (!t) |
| @@ -2151,8 +2150,7 @@ DEFUN ("tty-display-color-cells", Ftty_display_color_cells, | |||
| 2151 | TERMINAL can be a terminal object, a frame, or nil (meaning the | 2150 | TERMINAL can be a terminal object, a frame, or nil (meaning the |
| 2152 | selected frame's terminal). This function always returns 0 if | 2151 | selected frame's terminal). This function always returns 0 if |
| 2153 | TERMINAL does not refer to a text-only terminal. */) | 2152 | TERMINAL does not refer to a text-only terminal. */) |
| 2154 | (terminal) | 2153 | (Lisp_Object terminal) |
| 2155 | Lisp_Object terminal; | ||
| 2156 | { | 2154 | { |
| 2157 | struct terminal *t = get_tty_terminal (terminal, 0); | 2155 | struct terminal *t = get_tty_terminal (terminal, 0); |
| 2158 | if (!t) | 2156 | if (!t) |
| @@ -2336,8 +2334,7 @@ Returns nil if TERMINAL is not on a tty device. | |||
| 2336 | 2334 | ||
| 2337 | TERMINAL can be a terminal object, a frame, or nil (meaning the | 2335 | TERMINAL can be a terminal object, a frame, or nil (meaning the |
| 2338 | selected frame's terminal). */) | 2336 | selected frame's terminal). */) |
| 2339 | (terminal) | 2337 | (Lisp_Object terminal) |
| 2340 | Lisp_Object terminal; | ||
| 2341 | { | 2338 | { |
| 2342 | struct terminal *t = get_terminal (terminal, 1); | 2339 | struct terminal *t = get_terminal (terminal, 1); |
| 2343 | 2340 | ||
| @@ -2356,8 +2353,7 @@ DEFUN ("controlling-tty-p", Fcontrolling_tty_p, Scontrolling_tty_p, 0, 1, 0, | |||
| 2356 | TERMINAL can be a terminal object, a frame, or nil (meaning the | 2353 | TERMINAL can be a terminal object, a frame, or nil (meaning the |
| 2357 | selected frame's terminal). This function always returns nil if | 2354 | selected frame's terminal). This function always returns nil if |
| 2358 | TERMINAL is not on a tty device. */) | 2355 | TERMINAL is not on a tty device. */) |
| 2359 | (terminal) | 2356 | (Lisp_Object terminal) |
| 2360 | Lisp_Object terminal; | ||
| 2361 | { | 2357 | { |
| 2362 | struct terminal *t = get_terminal (terminal, 1); | 2358 | struct terminal *t = get_terminal (terminal, 1); |
| 2363 | 2359 | ||
| @@ -2377,8 +2373,7 @@ no effect if used on a non-tty terminal. | |||
| 2377 | TERMINAL can be a terminal object, a frame or nil (meaning the | 2373 | TERMINAL can be a terminal object, a frame or nil (meaning the |
| 2378 | selected frame's terminal). This function always returns nil if | 2374 | selected frame's terminal). This function always returns nil if |
| 2379 | TERMINAL does not refer to a text-only terminal. */) | 2375 | TERMINAL does not refer to a text-only terminal. */) |
| 2380 | (terminal) | 2376 | (Lisp_Object terminal) |
| 2381 | Lisp_Object terminal; | ||
| 2382 | { | 2377 | { |
| 2383 | struct terminal *t = get_terminal (terminal, 1); | 2378 | struct terminal *t = get_terminal (terminal, 1); |
| 2384 | 2379 | ||
| @@ -2408,8 +2403,7 @@ terminal device. | |||
| 2408 | suspended. | 2403 | suspended. |
| 2409 | 2404 | ||
| 2410 | A suspended tty may be resumed by calling `resume-tty' on it. */) | 2405 | A suspended tty may be resumed by calling `resume-tty' on it. */) |
| 2411 | (tty) | 2406 | (Lisp_Object tty) |
| 2412 | Lisp_Object tty; | ||
| 2413 | { | 2407 | { |
| 2414 | struct terminal *t = get_tty_terminal (tty, 1); | 2408 | struct terminal *t = get_tty_terminal (tty, 1); |
| 2415 | FILE *f; | 2409 | FILE *f; |
| @@ -2475,8 +2469,7 @@ suspended. | |||
| 2475 | 2469 | ||
| 2476 | TTY may be a terminal object, a frame, or nil (meaning the selected | 2470 | TTY may be a terminal object, a frame, or nil (meaning the selected |
| 2477 | frame's terminal). */) | 2471 | frame's terminal). */) |
| 2478 | (tty) | 2472 | (Lisp_Object tty) |
| 2479 | Lisp_Object tty; | ||
| 2480 | { | 2473 | { |
| 2481 | struct terminal *t = get_tty_terminal (tty, 1); | 2474 | struct terminal *t = get_tty_terminal (tty, 1); |
| 2482 | int fd; | 2475 | int fd; |
| @@ -3148,7 +3141,7 @@ DEFUN ("gpm-mouse-start", Fgpm_mouse_start, Sgpm_mouse_start, | |||
| 3148 | 0, 0, 0, | 3141 | 0, 0, 0, |
| 3149 | doc: /* Open a connection to Gpm. | 3142 | doc: /* Open a connection to Gpm. |
| 3150 | Gpm-mouse can only be activated for one tty at a time. */) | 3143 | Gpm-mouse can only be activated for one tty at a time. */) |
| 3151 | () | 3144 | (void) |
| 3152 | { | 3145 | { |
| 3153 | struct frame *f = SELECTED_FRAME (); | 3146 | struct frame *f = SELECTED_FRAME (); |
| 3154 | struct tty_display_info *tty | 3147 | struct tty_display_info *tty |
| @@ -3196,7 +3189,7 @@ close_gpm (int fd) | |||
| 3196 | DEFUN ("gpm-mouse-stop", Fgpm_mouse_stop, Sgpm_mouse_stop, | 3189 | DEFUN ("gpm-mouse-stop", Fgpm_mouse_stop, Sgpm_mouse_stop, |
| 3197 | 0, 0, 0, | 3190 | 0, 0, 0, |
| 3198 | doc: /* Close a connection to Gpm. */) | 3191 | doc: /* Close a connection to Gpm. */) |
| 3199 | () | 3192 | (void) |
| 3200 | { | 3193 | { |
| 3201 | struct frame *f = SELECTED_FRAME (); | 3194 | struct frame *f = SELECTED_FRAME (); |
| 3202 | struct tty_display_info *tty | 3195 | struct tty_display_info *tty |