Page 2 of 2

Posted: Tue Nov 13, 2007 3:50 pm
by Alboin
I really don't know....I doubt it would work... :)

That method is *very* hackish, so I would suggest you not do it, but instead not use 'system' at all (Which, uses bash, so, yeah...), and look into the exec and friends system calls.

Also, I don't know if it might be of any help, but I found this. I'm not sure of the portability....?

By the way, if you want your shell to resize automatically, it should be possible by catching the SIGWINCH signal, like:

Code: Select all

#include <signal.h>

void catch(int num) {
	printf("RESIZE\n");
}

int main() {
	signal(SIGWINCH, catch);
	for(;;);
}
That post was very much without harmony. :?

Posted: Tue Nov 13, 2007 6:22 pm
by piranha
Thanks, but I solved the output thing.
I have it return to text mode and then run the program. Also, F2 now goes to text mode and back.

-JL

Posted: Thu Nov 15, 2007 10:10 pm
by piranha
Al-righty Then!
The Final Version of 0.3 is FINISHED!
http://seaosmain.googlepages.com/seaconsole

ChangeLog from Beta 2:
+Cleaned Up
+Added First Run function (When you run it the first time, it creates a user).
+Removed several Bugs.
+I made better the way it deals with commands.
+Finished command history.
+Optimized Some Code.

So, tell me what you think and all of that.

-JL