Merge from trunk after a lot of time.
[bpt/emacs.git] / src / w32console.c
index 8da1ccf..a85469c 100644 (file)
@@ -552,6 +552,21 @@ Wcm_clear (struct tty_display_info *tty)
 }
 
 
+/* Report the current cursor position.  The following two functions
+   mirror cm.h macros and are used in term.c's tty menu code, so they
+   are not really "stubs".  */
+int
+curX (struct tty_display_info *tty)
+{
+  return cursor_coords.X;
+}
+
+int
+curY (struct tty_display_info *tty)
+{
+  return cursor_coords.Y;
+}
+
 /***********************************************************************
                                Faces
  ***********************************************************************/