Mercurial > emacs
comparison src/term.c @ 83891:dab32bc3edc8
* server.el (server-start, server-unload-hook): Undo previous
change.
* xt-mouse.el: Undo previous change.
* term.c (Vsuspend_tty_functions, Vresume_tty_functions)
(syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Tue, 04 Sep 2007 23:28:49 +0000 |
parents | 2855c55ba18b |
children | b651dc7c54ac |
comparison
equal
deleted
inserted
replaced
83890:950e89ecc12b | 83891:dab32bc3edc8 |
---|---|
122 /* Display space properties */ | 122 /* Display space properties */ |
123 | 123 |
124 extern Lisp_Object Qspace, QCalign_to, QCwidth; | 124 extern Lisp_Object Qspace, QCalign_to, QCwidth; |
125 | 125 |
126 /* Functions to call after suspending a tty. */ | 126 /* Functions to call after suspending a tty. */ |
127 Lisp_Object Vsuspend_tty_hook; | 127 Lisp_Object Vsuspend_tty_functions; |
128 | 128 |
129 /* Functions to call after resuming a tty. */ | 129 /* Functions to call after resuming a tty. */ |
130 Lisp_Object Vresume_tty_hook; | 130 Lisp_Object Vresume_tty_functions; |
131 | 131 |
132 /* Chain of all tty device parameters. */ | 132 /* Chain of all tty device parameters. */ |
133 struct tty_display_info *tty_list; | 133 struct tty_display_info *tty_list; |
134 | 134 |
135 /* Nonzero means no need to redraw the entire frame on resuming a | 135 /* Nonzero means no need to redraw the entire frame on resuming a |
2227 not updated. | 2227 not updated. |
2228 | 2228 |
2229 TTY may be a terminal id, a frame, or nil for the terminal device of | 2229 TTY may be a terminal id, a frame, or nil for the terminal device of |
2230 the currently selected frame. | 2230 the currently selected frame. |
2231 | 2231 |
2232 This function runs `suspend-tty-hook' after suspending the | 2232 This function runs `suspend-tty-functions' after suspending the |
2233 device. The functions are run with one arg, the id of the suspended | 2233 device. The functions are run with one arg, the id of the suspended |
2234 terminal device. | 2234 terminal device. |
2235 | 2235 |
2236 `suspend-tty' does nothing if it is called on a device that is already | 2236 `suspend-tty' does nothing if it is called on a device that is already |
2237 suspended. | 2237 suspended. |
2262 t->display_info.tty->output = 0; | 2262 t->display_info.tty->output = 0; |
2263 | 2263 |
2264 if (FRAMEP (t->display_info.tty->top_frame)) | 2264 if (FRAMEP (t->display_info.tty->top_frame)) |
2265 FRAME_SET_VISIBLE (XFRAME (t->display_info.tty->top_frame), 0); | 2265 FRAME_SET_VISIBLE (XFRAME (t->display_info.tty->top_frame), 0); |
2266 | 2266 |
2267 /* Run `suspend-tty-hook'. */ | 2267 /* Run `suspend-tty-functions'. */ |
2268 if (!NILP (Vrun_hooks)) | 2268 if (!NILP (Vrun_hooks)) |
2269 { | 2269 { |
2270 Lisp_Object args[2]; | 2270 Lisp_Object args[2]; |
2271 args[0] = intern ("suspend-tty-hook"); | 2271 args[0] = intern ("suspend-tty-functions"); |
2272 args[1] = make_number (t->id); | 2272 args[1] = make_number (t->id); |
2273 Frun_hook_with_args (2, args); | 2273 Frun_hook_with_args (2, args); |
2274 } | 2274 } |
2275 } | 2275 } |
2276 | 2276 |
2286 suspended terminal are revived. | 2286 suspended terminal are revived. |
2287 | 2287 |
2288 It is an error to resume a terminal while another terminal is active | 2288 It is an error to resume a terminal while another terminal is active |
2289 on the same device. | 2289 on the same device. |
2290 | 2290 |
2291 This function runs `resume-tty-hook' after resuming the terminal. | 2291 This function runs `resume-tty-functions' after resuming the terminal. |
2292 The functions are run with one arg, the id of the resumed terminal | 2292 The functions are run with one arg, the id of the resumed terminal |
2293 device. | 2293 device. |
2294 | 2294 |
2295 `resume-tty' does nothing if it is called on a device that is not | 2295 `resume-tty' does nothing if it is called on a device that is not |
2296 suspended. | 2296 suspended. |
2327 if (FRAMEP (t->display_info.tty->top_frame)) | 2327 if (FRAMEP (t->display_info.tty->top_frame)) |
2328 FRAME_SET_VISIBLE (XFRAME (t->display_info.tty->top_frame), 1); | 2328 FRAME_SET_VISIBLE (XFRAME (t->display_info.tty->top_frame), 1); |
2329 | 2329 |
2330 init_sys_modes (t->display_info.tty); | 2330 init_sys_modes (t->display_info.tty); |
2331 | 2331 |
2332 /* Run `resume-tty-hook'. */ | 2332 /* Run `resume-tty-functions'. */ |
2333 if (!NILP (Vrun_hooks)) | 2333 if (!NILP (Vrun_hooks)) |
2334 { | 2334 { |
2335 Lisp_Object args[2]; | 2335 Lisp_Object args[2]; |
2336 args[0] = intern ("resume-tty-hook"); | 2336 args[0] = intern ("resume-tty-functions"); |
2337 args[1] = make_number (t->id); | 2337 args[1] = make_number (t->id); |
2338 Frun_hook_with_args (2, args); | 2338 Frun_hook_with_args (2, args); |
2339 } | 2339 } |
2340 } | 2340 } |
2341 | 2341 |
3873 system_uses_terminfo = 1; | 3873 system_uses_terminfo = 1; |
3874 #else | 3874 #else |
3875 system_uses_terminfo = 0; | 3875 system_uses_terminfo = 0; |
3876 #endif | 3876 #endif |
3877 | 3877 |
3878 DEFVAR_LISP ("suspend-tty-hook", &Vsuspend_tty_hook, | 3878 DEFVAR_LISP ("suspend-tty-functions", &Vsuspend_tty_functions, |
3879 doc: /* Hook to be run after suspending a tty. | 3879 doc: /* Functions to be run after suspending a tty. |
3880 The functions are run with one argument, the terminal id to be suspended. | 3880 The functions are run with one argument, the terminal id to be suspended. |
3881 See `suspend-tty'. */); | 3881 See `suspend-tty'. */); |
3882 Vsuspend_tty_hook = Qnil; | 3882 Vsuspend_tty_functions = Qnil; |
3883 | 3883 |
3884 | 3884 |
3885 DEFVAR_LISP ("resume-tty-hook", &Vresume_tty_hook, | 3885 DEFVAR_LISP ("resume-tty-functions", &Vresume_tty_functions, |
3886 doc: /* Hook to be run after resuming a tty. | 3886 doc: /* Functions to be run after resuming a tty. |
3887 The functions are run with one argument, the terminal id that was revived. | 3887 The functions are run with one argument, the terminal id that was revived. |
3888 See `resume-tty'. */); | 3888 See `resume-tty'. */); |
3889 Vresume_tty_hook = Qnil; | 3889 Vresume_tty_functions = Qnil; |
3890 | 3890 |
3891 DEFVAR_BOOL ("visible-cursor", &visible_cursor, | 3891 DEFVAR_BOOL ("visible-cursor", &visible_cursor, |
3892 doc: /* Non-nil means to make the cursor very visible. | 3892 doc: /* Non-nil means to make the cursor very visible. |
3893 This only has an effect when running in a text terminal. | 3893 This only has an effect when running in a text terminal. |
3894 What means \"very visible\" is up to your terminal. It may make the cursor | 3894 What means \"very visible\" is up to your terminal. It may make the cursor |