diff options
| author | Miles Bader | 2007-07-15 04:47:46 +0000 |
|---|---|---|
| committer | Miles Bader | 2007-07-15 04:47:46 +0000 |
| commit | 8c406a9bc42ee77fcbbb4201fe8bda855eafd832 (patch) | |
| tree | 14c8fa2e72341edd9db40b17079fd5208b1554c8 /src/term.c | |
| parent | 9bdeb5e9bedd773cc6845bc29a98e1e2a208f1ff (diff) | |
| parent | 6f8a87c027ebd6f9cfdac5c0df97d651227bec62 (diff) | |
| download | emacs-8c406a9bc42ee77fcbbb4201fe8bda855eafd832.tar.gz emacs-8c406a9bc42ee77fcbbb4201fe8bda855eafd832.zip | |
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 806-813)
- Merge from emacs--rel--22
- Update from CVS
* emacs--rel--22 (patch 51-58)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 233-236)
- Merge from emacs--devo--0
- Update from CVS
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-230
Diffstat (limited to 'src/term.c')
| -rw-r--r-- | src/term.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/term.c b/src/term.c index 0210a66afa9..331d9f20e4c 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -25,6 +25,9 @@ Boston, MA 02110-1301, USA. */ | |||
| 25 | #include <stdio.h> | 25 | #include <stdio.h> |
| 26 | #include <ctype.h> | 26 | #include <ctype.h> |
| 27 | #include <string.h> | 27 | #include <string.h> |
| 28 | #ifdef HAVE_UNISTD_H | ||
| 29 | #include <unistd.h> | ||
| 30 | #endif | ||
| 28 | 31 | ||
| 29 | #include "termchar.h" | 32 | #include "termchar.h" |
| 30 | #include "termopts.h" | 33 | #include "termopts.h" |
| @@ -2493,9 +2496,9 @@ set_tty_color_mode (f, val) | |||
| 2493 | void | 2496 | void |
| 2494 | term_mouse_moveto (int x, int y) | 2497 | term_mouse_moveto (int x, int y) |
| 2495 | { | 2498 | { |
| 2499 | /* TODO: how to set mouse position? | ||
| 2496 | const char *name; | 2500 | const char *name; |
| 2497 | int fd; | 2501 | int fd; |
| 2498 | /* TODO: how to set mouse position? | ||
| 2499 | name = (const char *) ttyname (0); | 2502 | name = (const char *) ttyname (0); |
| 2500 | fd = open (name, O_WRONLY); | 2503 | fd = open (name, O_WRONLY); |
| 2501 | SOME_FUNCTION (x, y, fd); | 2504 | SOME_FUNCTION (x, y, fd); |
| @@ -2509,7 +2512,7 @@ term_show_mouse_face (enum draw_glyphs_face draw) | |||
| 2509 | { | 2512 | { |
| 2510 | struct window *w = XWINDOW (Qmouse_face_window); | 2513 | struct window *w = XWINDOW (Qmouse_face_window); |
| 2511 | int save_x, save_y; | 2514 | int save_x, save_y; |
| 2512 | int i, j; | 2515 | int i; |
| 2513 | 2516 | ||
| 2514 | if (/* If window is in the process of being destroyed, don't bother | 2517 | if (/* If window is in the process of being destroyed, don't bother |
| 2515 | to do anything. */ | 2518 | to do anything. */ |
| @@ -3029,7 +3032,7 @@ int | |||
| 3029 | handle_one_term_event (Gpm_Event *event, struct input_event* hold_quit) | 3032 | handle_one_term_event (Gpm_Event *event, struct input_event* hold_quit) |
| 3030 | { | 3033 | { |
| 3031 | struct frame *f = SELECTED_FRAME (); | 3034 | struct frame *f = SELECTED_FRAME (); |
| 3032 | int i, j, fd; | 3035 | int fd; |
| 3033 | struct input_event ie; | 3036 | struct input_event ie; |
| 3034 | int do_help = 0; | 3037 | int do_help = 0; |
| 3035 | int count = 0; | 3038 | int count = 0; |
| @@ -3053,7 +3056,7 @@ handle_one_term_event (Gpm_Event *event, struct input_event* hold_quit) | |||
| 3053 | arg[1] = arg[3] = (unsigned short) event->y + gpm_zerobased; | 3056 | arg[1] = arg[3] = (unsigned short) event->y + gpm_zerobased; |
| 3054 | arg[4] = (unsigned short) 3; | 3057 | arg[4] = (unsigned short) 3; |
| 3055 | 3058 | ||
| 3056 | name = (const char *) ttyname (0); | 3059 | name = ttyname (0); |
| 3057 | fd = open (name, O_WRONLY); | 3060 | fd = open (name, O_WRONLY); |
| 3058 | ioctl (fd, TIOCLINUX, buf + sizeof (short) - 1); | 3061 | ioctl (fd, TIOCLINUX, buf + sizeof (short) - 1); |
| 3059 | close (fd); | 3062 | close (fd); |