[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/term.c,v
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] Changes to emacs/src/term.c,v |
Date: |
Wed, 11 Jul 2007 15:22:11 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Stefan Monnier <monnier> 07/07/11 15:22:11
Index: term.c
===================================================================
RCS file: /sources/emacs/emacs/src/term.c,v
retrieving revision 1.184
retrieving revision 1.185
diff -u -b -r1.184 -r1.185
--- term.c 11 Jun 2007 20:08:49 -0000 1.184
+++ term.c 11 Jul 2007 15:22:11 -0000 1.185
@@ -25,6 +25,7 @@
#include <stdio.h>
#include <ctype.h>
#include <string.h>
+#include <unistd.h>
#include "termchar.h"
#include "termopts.h"
@@ -2381,9 +2382,9 @@
void
term_mouse_moveto (int x, int y)
{
+ /* TODO: how to set mouse position?
const char *name;
int fd;
- /* TODO: how to set mouse position?
name = (const char *) ttyname (0);
fd = open (name, O_WRONLY);
SOME_FUNCTION (x, y, fd);
@@ -2397,7 +2398,7 @@
{
struct window *w = XWINDOW (Qmouse_face_window);
int save_x, save_y;
- int i, j;
+ int i;
if (/* If window is in the process of being destroyed, don't bother
to do anything. */
@@ -2917,7 +2918,7 @@
handle_one_term_event (Gpm_Event *event, struct input_event* hold_quit)
{
struct frame *f = SELECTED_FRAME ();
- int i, j, fd;
+ int fd;
struct input_event ie;
int do_help = 0;
int count = 0;
@@ -2941,7 +2942,7 @@
arg[1] = arg[3] = (unsigned short) event->y + gpm_zerobased;
arg[4] = (unsigned short) 3;
- name = (const char *) ttyname (0);
+ name = ttyname (0);
fd = open (name, O_WRONLY);
ioctl (fd, TIOCLINUX, buf + sizeof (short) - 1);
close (fd);
- [Emacs-diffs] Changes to emacs/src/term.c,v,
Stefan Monnier <=