Micah Stetson | 1 Jan 02:29 2007

Re: setmalloctag in cc.a?

> >/sys/src/cmd/cc does this, but I don't understand why.  I don't see
> >any place where setmalloctag is called, so why is 8l trying to pull it
> >in?
>
> something else in libc calls it, and it can't load both malloc definitions.

Hum.  I looked for that and didn't see it...  I'll check again.

Micah

Micah Stetson | 1 Jan 07:19 2007

Re: setmalloctag in cc.a?

> > something else in libc calls it, and it can't load both malloc definitions.
>
> Hum.  I looked for that and didn't see it...  I'll check again.

I did miss it.  It's getenv().

Thanks,

Micah

Charles Forsyth | 1 Jan 11:18 2007
Picon

Re: setmalloctag in cc.a?

>Hum.  I looked for that and didn't see it...  I'll check again.

getenv

bituman | 1 Jan 13:06 2007
Picon

gotoxy and friends..

Hi there!
is gotoxy and clearscreen and friends available somewhere in plan9? 
int10h wont work i guess : )
i'd like a function to get (maybe set?) rows on screen, coloumns on 
screen, gotoxy, and cleaning the screen.
And no on my laptop i cant make the gui work.. im stuck to console..

Claudio Leite | 1 Jan 14:39 2007

Re: gotoxy and friends..

* bituman (bituman <at> enerla.net) wrote:
> Hi there!
> is gotoxy and clearscreen and friends available somewhere in plan9? 
> int10h wont work i guess : )
> i'd like a function to get (maybe set?) rows on screen, coloumns on 
> screen, gotoxy, and cleaning the screen.
> And no on my laptop i cant make the gui work.. im stuck to console..

Doubtful. The Plan 9 console isn't made for general use a la DOS or
Linux. It doesn't have an interrupt key, for example, among other
things. Your best bet is to keep trying with the GUI, as that's the way
it's intended to work. Maybe somebody here can help you with that
instead.

-Claudio

bituman | 1 Jan 15:46 2007
Picon

Re: gotoxy and friends..

Claudio Leite wrote:
> * bituman (bituman <at> enerla.net) wrote:
>   
>> Hi there!
>> is gotoxy and clearscreen and friends available somewhere in plan9? 
>> int10h wont work i guess : )
>> i'd like a function to get (maybe set?) rows on screen, coloumns on 
>> screen, gotoxy, and cleaning the screen.
>> And no on my laptop i cant make the gui work.. im stuck to console..
>>     
>
> Doubtful. The Plan 9 console isn't made for general use a la DOS or
> Linux. It doesn't have an interrupt key, for example, among other
> things. Your best bet is to keep trying with the GUI, as that's the way
> it's intended to work. Maybe somebody here can help you with that
> instead.
>
> -Claudio
>   
just did a:
aux/vga -pv for starters, it doesnt say  "controller not in ./vgadb", 
instead it recognizes the nvidia geforce 3 card in my laptop..
in a tutorial i found i should try  aux/vga -lpv next.. now here comes 
my problem : )
when booting up plan9, i either select defualt values for mouse 
resolution and monitor type (ps2,640x480x8 ... ) and get a blank black 
screen,
or i set some idiotic value for either monitor or resolution (like 
tretretre) and in that case aux/vga -lpv will try tretretre <at> 640x480x1, 
and will fail miserably. it still recognizes the nvidia card tough.
(Continue reading)

Steve Simon | 1 Jan 17:03 2007
Picon

Re: gotoxy and friends..

> it still recognizes the nvidia card tough.
> windows simply says i have a default monitor with 1024x768x32
> any help welcome : )

try 1024x768x8 1024x768x16 and 1024x768x32 

try using just the vesa driver - no acceleration but at least
you should get the gui up.

-Steve

lucio | 1 Jan 09:55 2007
Picon

winwatch

I replaced the code in click() with the following to add a half-baked
facility to hide a window with winwatch.  It uses the B3-B1 chord, but
somehow loses the ability to pick a window with B3 when the winwatch
window is not active.

void
click(Mouse m)
{
	int fd, w, b = m.buttons;
	Point xy = m.xy;
	char buf[128];

	do
		m = emouse();
	while(m.buttons == b);

	while (b) {
		for(w = 0; w < nwin; w++)
			if(ptinrect(xy, win[w].r))
				break;
		if(w < nwin) {
			sprint(buf, "/dev/wsys/%d/wctl", win[w].n);
			switch (b & 7) {
				case 1:
					break;
				case 2:
				case 3:
					break;
				case 4:
				case 6:
(Continue reading)

ron minnich | 2 Jan 03:37 2007
Picon

plan9 python

in the Plan9lib/Plan9.py file, there is a reference to _e2s. Not
defined anywhere.

Any idea what the author might have had in mind? I'm not sure.

ron

lucio | 2 Jan 05:43 2007
Picon

Inferno shell

The Inferno shell man page says about a leading caret in a [ ] class:

	(As this character is special to the shell, it may only be
	included in a pattern if this character is quoted, as long as
	the leading [ is not quoted).

It seems to me that treating the unquoted leading string [^ as a
"token" would be a better alternative.  Would it be very difficult to
implement this rather than expect all exclusive classes to start ['^ ?
I presume it is a question of where in the parsing the [ and ^ take
precedence?

++L


Gmane