Fco. J. Ballesteros | 7 Sep 2006 21:12
Favicon

problem with inferno graphics on Plan 9

Anyone saw something similar to this?

I just upgraded our inferno (in Plan 9), with the last version
from vitanuova. Now, wm/wm creates a new window but does NOT
draw anything (perhaps a missing flushimage?). Or is there something
obvious I'm missing?
The previous version for emu (from our dump) works perfectly.

This is the graphics set up at the machine in particular.

; cat /dev/vgactl
type vmware
size 1280x800x32 x8r8g8b8
blank time 30 idle 0 state on
hwaccel on
hwblank off
panning off
addr p 0xfa000000 v 0xe0000000 size 0xa8c000

This is the emu that does not draw at my machine:
; ; ; /usr/inferno/Plan9/386/bin/emu -v
Inferno Fourth Edition (20060303) main (pid=900) interp

This is the (old) one that does:
; ; /usr/inferno/Plan9/386/bin/emu -v
Inferno Fourth Edition (20040904) main (pid=896) interp

The Plan 9 system has not been update for one month (aprox), but
works fine.

(Continue reading)

Fco. J. Ballesteros | 7 Sep 2006 21:53
Favicon

problem with inferno graphics on Plan 9

Funny, compiling emu from source leads to
attachwindow: cannot handle window depth specifier    x8r8g8b8 
after running wm/wm

It seems that the initial x8 does not taste well for win.c

:  From: nemo@...
:  Date: Thu, 7 Sep 2006 21:12:02 +0200
:  To: inferno-list@...
:  Reply-To: inferno-list@...
:  Subject: [inferno-list] problem with inferno graphics on Plan 9
:  
:  Anyone saw something similar to this?
:  
:  I just upgraded our inferno (in Plan 9), with the last version
:  from vitanuova. Now, wm/wm creates a new window but does NOT
:  draw anything (perhaps a missing flushimage?). Or is there something
:  obvious I'm missing?
:  The previous version for emu (from our dump) works perfectly.
:  
:  This is the graphics set up at the machine in particular.
:  
:  ; cat /dev/vgactl
:  type vmware
:  size 1280x800x32 x8r8g8b8
:  blank time 30 idle 0 state on
:  hwaccel on
:  hwblank off
:  panning off
:  addr p 0xfa000000 v 0xe0000000 size 0xa8c000
(Continue reading)

Fco. J. Ballesteros | 7 Sep 2006 22:26
Favicon

problem with inferno graphics on Plan 9: solved

Sorry about the noise.
Indeed, it was the "x8" in "x8r8g8b8" the problem.
Changing the source of /usr/inferno/emu/Plan9/win.c
so depthof() does:
		if(c != 'x' && c != 'r' && c != 'g' && c != 'b' && c != 'k' && c != 'm')
			return -1;

instead of
		if(c != 'r' && c != 'g' && c != 'b' && c != 'k' && c != 'm')
			return -1;

just seems to solve the problem.
Perhaps I just introduced a bug in our inferno. But graphics seem to be ok.
Indeed, colors works.

thanks anyway

Charles Forsyth | 8 Sep 2006 11:36

Re: problem with inferno graphics on Plan 9: solved

> Changing the source of /usr/inferno/emu/Plan9/win.c
> so depthof() does:
	...
> 
> instead of
	...

it doesn't appear at all in our current source.  it was not really needed.
i'll send you the current version to test.

Fco. J. Ballesteros | 8 Sep 2006 16:26
Favicon

Re: problem with inferno graphics on Plan 9: solved

Using such win.c, it works nicely. Thanks.
I wonder why win.c was old. Perhaps I made a mistake while upgrading, sic.

:  From: forsyth@...
:  Date: Fri, 8 Sep 2006 10:36:25 +0100
:  To: inferno-list@...
:  Reply-To: inferno-list@...
:  Subject: Re: [inferno-list] problem with inferno graphics on Plan 9: solved
:  
:  > Changing the source of /usr/inferno/emu/Plan9/win.c
:  > so depthof() does:
:  	...
:  > 
:  > instead of
:  	...
:  
:  it doesn't appear at all in our current source.  it was not really needed.
:  i'll send you the current version to test.

Charles Forsyth | 8 Sep 2006 16:35

Re: problem with inferno graphics on Plan 9: solved

> Using such win.c, it works nicely. Thanks.
> I wonder why win.c was old. Perhaps I made a mistake while upgrading, sic.

no, i see the changes were made a few weeks after the public release.

Francisco J Ballesteros | 8 Sep 2006 21:52
Favicon

Any plan for a plugin for mozilla?

We are going to port the Plan B window system, omero, to Limbo.
The main reason is to use omero with the inferno IE plugin, and convert
all IEs into Plan B terminals. But I´m wondering if there are plans for
plugins for other browsers.
Skip Tavakkolian | 8 Sep 2006 23:19

Re: Any plan for a plugin for mozilla?

> We are going to port the Plan B window system, omero, to Limbo.
> The main reason is to use omero with the inferno IE plugin, and convert
> all IEs into Plan B terminals. But I´m wondering if there are plans for
> plugins for other browsers.

i've been thinking that an activex drawterm would make a nice gadget
for somethings.  but in any case, for windows environment most
browsers will allow embedding of activex components.  for linux, i
suppose adapting he activex interfaces of emu to something like xpcom
(mozilla's cross platform COM)

it would be nice if there was a mode where inferno app's windows were
individual windows in the native window manager.

Sergey Zhilkin | 9 Sep 2006 15:08
Picon

Re: Any plan for a plugin for mozilla?

drawterm as plugin will be great ! :)

2006/9/9, Francisco J Ballesteros <nemo-DYBHxevQ958@public.gmane.org>:
We are going to port the Plan B window system, omero, to Limbo.
The main reason is to use omero with the inferno IE plugin, and convert
all IEs into Plan B terminals. But I´m wondering if there are plans for
plugins for other browsers.

Francisco J Ballesteros | 13 Sep 2006 20:31
Favicon

font question

I just love the fonts used by charon, and would like to use them in Plan 9
and Plan B.

However, fontshow (in plan9) has some problems showing them. It seems that their
format differs. Anyone converted a font from Inferno to Plan 9?

thanks anyway


Gmane