home *** CD-ROM | disk | FTP | other *** search
/ Amiga GigaPD 3 / Amiga_GigaPD_v3_3of3.iso / netbsd / docs / mailinglist-archive / 1993-12 / text0371.txt < prev    next >
Encoding:
Text File  |  1993-06-25  |  3.3 KB  |  86 lines

  1.  
  2. Hi Chris,
  3.  
  4. > Ack I just killed some mail (actually archived it but its pretty hard
  5. > to get at now) So I don't have the Xami's authors name sorry.
  6.  
  7. I hope you actually mean me and not the Xbsd author.  But applies either way.
  8. Sorry for the late reply - I had to implement all this stuff first.
  9.  
  10. > What I wanted to say is about using the view stuff.  The problem is
  11. > currently we have no way to to allow multiple things like console and
  12. > X I guess we need to chnage some stuff (will be working on these now)
  13. > in ite and other places to support swapping the input focus around and
  14. > such.  This will allow multiple consoles etc.  Currently however I was
  15. > under the impression (as markus informed me) that X somehow co-exists
  16. > with /dev/console so that both cannot be run at the same time (displayed)
  17.  
  18. I just finished updating the kernel to enable views, and implemented my
  19. Xami entirely with views on vmunix.720.  Very straightforward, as
  20. expected.  Only console problem is that I cannot use /dev/view00 to
  21. get default height and width for X screen, since it's "busy".  Both
  22. coexist otherwise.  In fact, I would definitely not want to close the
  23. console, or it may pre-empt xconsole from working properly.  View is a
  24. particular boon for making xconsole work for Xserver debugging, since
  25. you no longer have to do xinit >& /tmp/x.log.  Just xinit and
  26. xconsole!
  27.  
  28. > ...
  29. > If you wanted to open up other screens however you can use the view
  30. > devices, actually you do all your graphics into views, how?  tell
  31. > grf[0] to turn off (not needed but at least it avoids the consoel
  32. > popinng up sometime when the user won't be able to type into it.)
  33.  
  34. Currently I don't turn off console for reasons listed above.  Also, 
  35. what about if you *want* to be able to pop up the console (with some
  36. special keys, ala Amiga-N/Amiga-M).  Need some way to refocus
  37. keyboard/ mouse on the console.
  38. > Then open /dev/view00 .. /dev/viewXX for each screeen you want (view00
  39. > currently will return EBUSY but thats ok you should be handling this :^)
  40.  
  41. I swiped all your functions from views.c for this.  And bits of main()
  42. as well :-).
  43.  
  44. > ...
  45. > tell /dev/console to turn off. This should cause /dev/console to lose
  46. > the input focus.
  47. > open /dev/ms and /dev/kbd to get input from user.
  48.  
  49. Opening kbd/mouse automatically steals kbd/mouse from console.
  50. > open /dev/viewXX where XX is 00 then 01 until you get either a valid
  51. > fd or your error is not EBUSY (signifying someone else is using it)
  52. > use ioctl to get bitmap VIEW_GETBITMAP
  53. > ...
  54.  
  55. Worked great.  Server would have worked first time except I forgot to
  56. swap the sense of the mouse buttons :-) (was backwards i vmunix.709)
  57. Things get really strange if one sends button events in the wrong
  58. order :-).
  59.  
  60. > Chris.
  61. Now to just figure out: 
  62. a)  how to allocate space for cursor font for hardware cursor routines 
  63.     via ioctls.  One hack:  use a view!
  64. b)  how to then do ioctls to enable/change the cursor sprite 
  65. c)  how to use in general the blitter at the ioctl level.
  66.  
  67. (any ideas?)
  68. This may be the only way to make color ecs acceptably fast.
  69.  
  70. Thanks,
  71. Roy
  72.   --------------------------------------------------------------------
  73.   Roy Trevino                                              Intel Corp.
  74.   E-mail: rtrevino@sedona.intel.com                Tel: (602) 554 2816
  75.   "mr ducks" "mr not ducks" "osar" "cmbdis" "cmwangs" "lib" "mr ducks"
  76.  
  77.  
  78.