X With No Mouse Cursor
innocent_white_lamb writes "I am using an X-based menu that doesn't recognize a mouse. Keyboard input only. I load the menu with the command "startx -e menu", which loads the menu and gets stuff going without any need for a window manager. The problem is that the mouse cursor sits in the middle of the screen and, without a mouse attached, there appears to be no way to move it or get rid of it. I've asked around and nobody seems to have run into this situation before. So my question is, how do you get rid of the mouse cursor under X without using a window manager?"
Set the X/Y init position somewhere off the screen and recompile.
Before you email me, remember: "There is no god!"
Even found you an url:t ter.ht ml
http://packages.debian.org/stable/x11/unclu
then choose a cursor that's blank as the default. Or substitute a cursor font that's nothing but blanks.
You can move the cursor by pressing Ctrl-Shift-Num Lock and then using the numpad. You move the cursor with the keys around 5, click with 5, etc. A quick googling brought up this webpage.
that uses XWarpPointer[sic] to move the pointer wherever on boot.
Photos.
void XvVideoOutput::hide_cursor(void)
{
Cursor no_ptr;
Pixmap bm_no;
XColor black, dummy;
Colormap colormap;
static char no_data[] = { 0,0,0,0,0,0,0,0 };
colormap = DefaultColormap(XJ_disp, DefaultScreen(XJ_disp));
XAllocNamedColor(XJ_disp, colormap, "black", &black, &dummy);
bm_no = XCreateBitmapFromData(XJ_disp, XJ_win, no_data, 8, 8);
no_ptr = XCreatePixmapCursor(XJ_disp, bm_no, bm_no, &black, &black, 0, 0);
XDefineCursor(XJ_disp, XJ_win, no_ptr);
XFreeCursor(XJ_disp, no_ptr);
}