T.R | Title | User | Personal Name | Date | Lines |
---|
2906.1 | | WJG::GUINEAU | Impossible Concentration | Tue Sep 12 1989 09:11 | 7 |
| With ARP and ASHELL you could use a PIPE to your own application which
did these functions for you:
1> appl | my_processor
John
|
2906.2 | WShell & ARexx, too... | FRAMBO::BALZER | Christian Balzer DTN:785-1029 | Tue Sep 12 1989 09:53 | 7 |
| Yeah, and with WShell and ARexx I'm doing stuff like this for over
a year now. Works just great.
Give me a call, Gerald, and I can tell you more...
Regards,
<CB>
|
2906.3 | Thank you, but ... | NBOSWS::FRIES | | Tue Sep 12 1989 10:42 | 20 |
| Thanks for your infos, but what I want to code (Aztec-C),
is an application being able to get back normal text output to
the CLI-window (perhaps with a scroll bar or such (see DECwindows)).
The problem is:
How to read from stdout?
( fgets(string,255,stdout) doesn't work (of course))
Please: No pipe or '>file' (I don't own AREXX, too).
Another example:
I wrote an application to start editor, compiler, assembler, linker
and debugger with my mouse. All necessary options are stored in
a specific file, so I needn't use my keyboard at all.
Now it would be nice to put the dozens of compiler errors on the
screen AND into a file AT THE SAME TIME to watch the compiler working
(perhaps I want to abort it) and to watch the first error again.
I start the compiler with the function 'fexecv()', so no
output-redirection is allowed. (The other unsolved problem
is that this functions waits until the started application ends
(See my separate question)).
|
2906.4 | | WJG::GUINEAU | Impossible Concentration | Tue Sep 12 1989 12:09 | 6 |
| MAybe look into getting your input/output file handles from the process
structure (proc = FindTask(0)). Then from there you could intercept I/O
and do scroll bar/backing store processing
John
|
2906.5 | | NBOSWS::FRIES | | Wed Sep 13 1989 10:46 | 14 |
| Thanks !!!
I'll try to capture outputs this way.
But isn't there any buffer in memory including all text-outputs of a
specific window? Or how does scrolling work?
I think of some contents of the CommandLineInterface-structure.
...->cli_StandardOutput
...->cli_CurrentOutput
or such.
Regards
Gerald
|
2906.6 | | WJG::GUINEAU | Impossible Concentration | Wed Sep 13 1989 11:46 | 11 |
| I doubt the shell keeps anything other than the RastPort around.
Your application would have to maintain a "display list" of everything
that scrolled off the cli window. Waqtching for resize events and all.
You'ld probably be better off closing the CLI's window and opening your
own, maintaining all the data yourself and just using the shell for it's
cli features. Is there a" callable shell"?
John
|
2906.7 | Perhaps there is a way... | NBOSWS::FRIES | | Thu Sep 14 1989 03:35 | 13 |
| Coding an own shell is what a have apprehended (but expected).
But I interpreted process->pr_COS as BPTR to a FileHandle structure
and ...->fh_Buf as a BPTR to a string.
printf("%s",...->fh_Buf*4L) (Perhaps without '\0' at the end.)
VOILA: There was the last CLI output (mostly the prompt).
Examined the CommandLineInterface structure the same way, the same
results occured.
Perhaps there is a way, yet !?
Gerald
|
2906.8 | | WJG::GUINEAU | Impossible Concentration | Thu Sep 14 1989 09:02 | 8 |
| Definetly post what you come up with!!
scroll bars and saved text off the screen are sore spots badly missing
from WorkBench. I guess X and DECwindows spoils you :-)
CB, any chance 1.4 will have this feature?!?!?
John
|
2906.9 | Yes | FRAMBO::BALZER | Christian Balzer DTN:785-1029 | Thu Sep 14 1989 09:13 | 1 |
|
|
2906.10 | | WJG::GUINEAU | Impossible Concentration | Thu Sep 14 1989 09:32 | 1 |
| Now *that's* your shortest reply :-)
|
2906.11 | Verbose answer follows... ;-) | FRAMBO::BALZER | Christian Balzer DTN:785-1029 | Thu Sep 14 1989 09:44 | 10 |
| Re: .8, .9, .10
Yeah, and I take great pride in delivering such a crystal clear
answer... ;-)
1.4 is still in alpha, nothing has been fixed. But one can safely
assume text windows and screen CLI editors in it...
'Nuff said,
<CB>
|
2906.12 | A Slightly Different Flavor | DRUMS::FEHSKENS | | Thu Sep 21 1989 15:39 | 6 |
| Along these lines, does anybody have any suggestions as to how I
could trick Grabbit into seeing a ctrl-alt-s from AmigaBASIC? What
I want to do is snapshot my BASIC output screen under program control.
len.
|
2906.13 | not much help, but... | WJG::GUINEAU | Impossible Concentration | Thu Sep 21 1989 21:15 | 7 |
| I believe there were recently (past year) some articles in Amazing Computing
(?) on "Using Intuition from AmigaBASIC".
I guess all you need is to get IntuiEvents of the RAWKEY class,and then look
for the keypress you want.
John
|