nanogui: Return to text mode


Previous by date: 17 Jul 2011 17:13:40 -0000 Re: FLTK keyboard question, Greg Haerr
Next by date: 17 Jul 2011 17:13:40 -0000 Re: FLTK font question, Georg Potthast
Previous in thread:
Next in thread: 17 Jul 2011 17:13:40 -0000 Re: Return to text mode, Greg Haerr

Subject: [nanogui] Return to text mode
From: "Georg Potthast" ####@####.####
Date: 17 Jul 2011 17:13:40 -0000
Message-Id: <000701cc44a4$dc272520$6a00a8c0@SCHREIBTISCHGP>

Dear Greg,

when I use an Xlib program with NXlib I had the problem, that I could just 
return to text mode when pressing the ESC key. Selecting X of the window 
terminated the program but left the screen in SVGA mode and sent the 
following console output to that so it could not be read.

So I enabled GrClose() in CLDisplay.c of NXlib and now I can return to text 
mode from an Xlib application.

However, this does not work with FLTK yet. I can return to text mode from an 
FLTK application by pressing ESC but not when selecting X from the window or 
pressing a Quit button if the application offers that.

What can I do so XCloseDisplay() in CLDisplay.c works just as well as 
pressing the ESC key?

I also have a question regarding the mouse driver:

The mou_dos.c driver has these functions:
MOUSEDEVICE mousedev = {
MOU_Open,
MOU_Close,
MOU_GetButtonInfo,
MOU_GetDefaultAccel,
MOU_Read,
MOU_Poll
};

while the mou_x11.c driver has these functions:
MOUSEDEVICE mousedev = {
X11_Open,
X11_Close,
X11_GetButtonInfo,
X11_GetDefaultAccel,
X11_Read,
NULL,
MOUSE_NORMAL /* flags*/
};

Should I replace the "MOU_Poll" with "NULL,MOUSE_NORMAL" or will that make 
no difference?

Georg 


Previous by date: 17 Jul 2011 17:13:40 -0000 Re: FLTK keyboard question, Greg Haerr
Next by date: 17 Jul 2011 17:13:40 -0000 Re: FLTK font question, Georg Potthast
Previous in thread:
Next in thread: 17 Jul 2011 17:13:40 -0000 Re: Return to text mode, Greg Haerr


Powered by ezmlm-browse 0.20.