home *** CD-ROM | disk | FTP | other *** search
-
- Hi Chris,
-
- > Ack I just killed some mail (actually archived it but its pretty hard
- > to get at now) So I don't have the Xami's authors name sorry.
-
- I hope you actually mean me and not the Xbsd author. But applies either way.
- Sorry for the late reply - I had to implement all this stuff first.
-
- > What I wanted to say is about using the view stuff. The problem is
- > currently we have no way to to allow multiple things like console and
- > X I guess we need to chnage some stuff (will be working on these now)
- > in ite and other places to support swapping the input focus around and
- > such. This will allow multiple consoles etc. Currently however I was
- > under the impression (as markus informed me) that X somehow co-exists
- > with /dev/console so that both cannot be run at the same time (displayed)
- >
-
- I just finished updating the kernel to enable views, and implemented my
- Xami entirely with views on vmunix.720. Very straightforward, as
- expected. Only console problem is that I cannot use /dev/view00 to
- get default height and width for X screen, since it's "busy". Both
- coexist otherwise. In fact, I would definitely not want to close the
- console, or it may pre-empt xconsole from working properly. View is a
- particular boon for making xconsole work for Xserver debugging, since
- you no longer have to do xinit >& /tmp/x.log. Just xinit and
- xconsole!
-
- > ...
- > If you wanted to open up other screens however you can use the view
- > devices, actually you do all your graphics into views, how? tell
- > grf[0] to turn off (not needed but at least it avoids the consoel
- > popinng up sometime when the user won't be able to type into it.)
-
- Currently I don't turn off console for reasons listed above. Also,
- what about if you *want* to be able to pop up the console (with some
- special keys, ala Amiga-N/Amiga-M). Need some way to refocus
- keyboard/ mouse on the console.
- >
- > Then open /dev/view00 .. /dev/viewXX for each screeen you want (view00
- > currently will return EBUSY but thats ok you should be handling this :^)
-
- I swiped all your functions from views.c for this. And bits of main()
- as well :-).
-
- > ...
- > tell /dev/console to turn off. This should cause /dev/console to lose
- > the input focus.
- >
- > open /dev/ms and /dev/kbd to get input from user.
-
- Opening kbd/mouse automatically steals kbd/mouse from console.
- >
- > open /dev/viewXX where XX is 00 then 01 until you get either a valid
- > fd or your error is not EBUSY (signifying someone else is using it)
- >
- > use ioctl to get bitmap VIEW_GETBITMAP
- > ...
-
- Worked great. Server would have worked first time except I forgot to
- swap the sense of the mouse buttons :-) (was backwards i vmunix.709)
- Things get really strange if one sends button events in the wrong
- order :-).
-
- >
- > Chris.
- >
- >
- Now to just figure out:
- a) how to allocate space for cursor font for hardware cursor routines
- via ioctls. One hack: use a view!
- b) how to then do ioctls to enable/change the cursor sprite
- c) how to use in general the blitter at the ioctl level.
-
- (any ideas?)
- This may be the only way to make color ecs acceptably fast.
-
- Thanks,
- Roy
- --------------------------------------------------------------------
- Roy Trevino Intel Corp.
- E-mail: rtrevino@sedona.intel.com Tel: (602) 554 2816
- "mr ducks" "mr not ducks" "osar" "cmbdis" "cmwangs" "lib" "mr ducks"
-
-
-