Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
99 user(s) are online (57 user(s) are browsing Forums)

Members: 0
Guests: 99

more...

Headlines

Forum Index


Board index » All Posts (broadblues)




Re: Output window
Home away from home
Home away from home


@orgin

Quote:

I need the console to open when there's some output being written, and the user must be able close it (not dispose, just close/hide it). Next time some output is written the window opens again.


That's is what I thought you wanted and what my example does. (ignore gets() bit that was just a quick and dirty looping trick).

There must be something different about how you open your console. Or how you pass the filehandle onto your subtask.

Go to top


Re: Output window
Home away from home
Home away from home


@orgin

Well you wouldn't use gets() in your real loop

I used gets() above to get something to write to the console and to stop the example from falling stringht through with the bother of setting up a Wait loop of some kind for testing purposes only.

The point was that the console opened automatically when output was sent to it. It can be closed inbetween time BY THE USER.

It seems from your example what you wish to close it yourself, that's aslightly different kettle of fish. I miss inetrpreted what you were trying to acheive.

So in answer to point about a hideable console, with auto set it can be hidden by the user but not the program (without closing the filehandle).


Reading what you said again. Do you want to prevent a console from ever opening in the firstplace? In that case set

do something like

out = IDOS->Open("NIL:")

IDOS->CreateNewProcTags(
NPA_Output,out,
NPA_CloseOutput,TRUE,
...
...
)

when launching your sub process.


(best check those tags names not near my autodocs..)

For a better answer you'll need ColinW's input

Go to top


Re: Output window
Home away from home
Home away from home


@orgin

I've no idea about the notification stuff but interms closable consoles the followinf seems to work...

Using clib stdio
Quote:

#include <stdio.h>

int main()
{
FILE *f;
char *file = "CON:100/100/320/256/Filer output/CLOSE/AUTO";

if((stdout = freopen(file,"w",stdout)))
{
while(1)
{
char buffer[256];
gets(buffer);
printf("%s\n",buffer);
if(!strcmp(buffer,"QUIT"))
{
break;
}
}
fclose(f);
}else
{
printf("Faild to open %s\n",file);
}
}



using pure dos.library (for output)

Quote:

#include <stdio.h>

#include <proto/dos.h>

int main()
{
char *file = "CON:100/100/320/256/Filer output/CLOSE/AUTO";
BPTR new;
if((new = IDOS->Open(file,MODE_NEWFILE)))
{
BPTR old = IDOS->SelectOutput(new);

while(1)
{
char buffer[256];
gets(buffer);
IDOS->Printf("%s\n",buffer);
if(!strcmp(buffer,"QUIT"))
{
break;
}
}

IDOS->SelectOutput(old);
IDOS->Close(new);
}
}



In both cases the user can close the console, and it will reopen, on the next line of output.

Go to top


Re: Filer alpha, from OpenAmiga.org
Home away from home
Home away from home


@orgin

great!

Go to top


Re: Filer alpha, from OpenAmiga.org
Home away from home
Home away from home


@broadblues

And another.

In the filetypes editor entry {f} returns the directory, not the file, simple test is to set the editor to 'echo {f}'

returns
Projects:blender-svn/blender/release/text

instead of

Projects:blender-svn/blender/release/text/blender.html

The default editor (Notepad) works okay, as does the viewer option, ie in this example 'OpenUrl FILE {f}' successful opens the html file in AWeb.

Go to top


Re: Output window
Home away from home
Home away from home


@orgin

Quote:

The stderr/stdout streams are not changed by SelectOutput/SelectErrorOutput.


The converse is also true, The Output() and Error() streams are not affected by freopneing stdout ot stderr.

This has consequences if you want any program you launch to obey your console redirection.

Go to top


Re: Filer alpha, from OpenAmiga.org
Home away from home
Home away from home


@orgin

Just found a rendering bug in the search facility.

Resized Image

Notice that the search result is duplicated in the parent window!

Go to top


Re: Filer alpha, from OpenAmiga.org
Home away from home
Home away from home


@orgin

Ah! Ofcourse, forgot about that one. There are some additional filrtype serach functions in the datatypes library, are they of any use in this context? (I haven't used them myslef)

Go to top


Re: Filer alpha, from OpenAmiga.org
Home away from home
Home away from home


@orgin

Quote:

The OS function for checking file type just reports the actual type without any relation to any parent 'group'. It might not even be possible to read the system deficon type tree, but that's just a guess.


Okay. Which function is that out of interest.

Go to top


Re: There's something happenin' here ...
Home away from home
Home away from home


@cha05e90

I tend to agree, the designs them selves look really cool, but the old size was better.

I have higher resloutions screesn to get more on them, not to make things bigger!

Go to top


Re: Filer alpha, from OpenAmiga.org
Home away from home
Home away from home


@broadblues

Successfully configured my toolbar (like the RED delete button, )

A question about filetype configuration.

Do I need to set an editor / viewer for each lowest level filetype, or can I set one for a higher level?

eg I tried set my choice of text editor for 'ascii' but when I try to edit "Readme.txt" it still calls up NotePad.

Did I do something wrong or is heirachy not supported?

Also it mentions in the changes section

Quote:

"- Add "Editor" to configuration program


Unles that's refering to the filetypes section, I can't see where to set it.

One last thing. The menu item "Listr / preferences" starts a new instance of the prefrences program even if it's allready running, ideally it should just pop the existing one to front.


Overall though really impressed with this update!

Go to top


Re: Filer alpha, from OpenAmiga.org
Home away from home
Home away from home


@orgin

Like the new icon set! And that anoying tooltip in the lister is gone

Hey configuarable toolbar too!

Well done!

BTW of topic but dispite having "notify me of new posts" seleted I never ever get an emails notifying me of new posts in amigans threads...

Go to top


Re: Blender on OS4.x?
Home away from home
Home away from home


@tfrieden

Sorry if I stepped on anyones toes here, I didn't set out to compete, just had an immediate need for the prgram (fed up with switch to linux all the time) and had a look at the source and suddenly was on a roll.

In consultation with Hans De Ruiter I've tracked down a few of those remain minigl issues. The only major one left is depth buffer access. In fact I emailed your brother about that yesterday, perhaps I should have coppied you in on that, sorry.

Go to top


Re: Filer alpha, from OpenAmiga.org
Home away from home
Home away from home


@orgin

Yes, actually you are right, I think it would.

I'm thinking more from a point of view of opening the first filer window at a directory.

So the snapshot would only take effect on first startup, or on a "open in new window" or similar.

Go to top


Re: Filer alpha, from OpenAmiga.org
Home away from home
Home away from home


@PEB

I see your point too.

Whilst drowning poor Orgin in enough feature requests to sink the titanic, here another one.

Per Directory snapshotting: Could be implemted via tooltypes set in the directory icon. say FILER_X FILER_Y FILIER_W FILER_H or in a file .filer saved in the directory (maybe bit too unixy that way). Both those tecniques avoid the need to search through a list of preferences.

Go to top


Re: OWB 3.11
Home away from home
Home away from home


@orgin

Does anyone else have a prolem with OWB updating it's url bar / gadget whilst your entering anew url?

This occurs to me when I start to enter a new url whilst the old is still loading, once the old one has finished loading the url gadget gets updated even if you are currently editing it! The number of times I've gone to ukfacebook.com is getting rediculous!

Go to top


Re: Filer alpha, from OpenAmiga.org
Home away from home
Home away from home


@PEB

Make 2 use at least the 'last part' .... Else all your iconified filers will for example say "Work:..."

Go to top


Re: Filesystem links
Home away from home
Home away from home


@orgin

Number 2 sounds like a bug in the ram disk to me, hard links are supposed to be the same object on disk, so editing one should change both.

BTW the converse seems to be true too, editing the hard link separates the two.

Go to top


Re: OWB 3.11
Home away from home
Home away from home


@orgin

Just installed and looking good.

However it still consumes vast amounts of memeory on site like facebook. Progressively using up my memory after about 7 or 8 pages. Eventually it'll take my Amiga down if I don't pay attention and restart. (256 system) Is it cacheing in memory? If so how soon till a disk based cache/ or way limiting the memory used for cache? All memory is returned on quitting the program.

Go to top


Re: getting status of shift key
Home away from home
Home away from home


@orgin

Quote:

WaitIO always crashes though. Removing it and it works.


Probably because there was no IO started with a SendIO.

In fact I suspect that CheckIO is returning a false positive as well as the autodocs say it's result is not valid unless the IO has been starting with a SendIO or BeginIO.


Basicaly you aren't using the IOrequest as such thus you don't need to wait for it (or even abort it?)

Just to check. When you say it crashes does it hang or grim?

from the WaitIO autodoc

Note that WaitIO() will not work on I/O requests that haven't been
used before. Only use WaitIO() with I/O requests which have been
started via SendIO() or BeginIO(). If you did not start the I/O
request with either SendIO() or BeginIO(), do not call WaitIO()
since it will hang.

Go to top



TopTop
« 1 ... 109 110 111 (112) 113 114 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project