Page 1 of 2
Sea Console new Beta Version
Posted: Sat Nov 03, 2007 11:50 pm
by piranha
Sea Console 0.3
New test request time!
Link:
http://seaosmain.googlepages.com/seaconsole
For version 0.3 beta 2.
Could you guys test it and give me tips, bugs, ideas, etc...
Thanks, JL.
Posted: Sun Nov 04, 2007 3:11 am
by inflater
I would really appreciate a disk image to be available...
Regards
inflater
Posted: Sun Nov 04, 2007 10:03 am
by piranha
It's not an OS, its a program.
EDIT: I forgot to mention: User name is 'bob', password is 'bob'.
-JL
Posted: Sun Nov 04, 2007 11:17 am
by ucosty
you still have all your sources #included in header files.
You should put your actual program code in .c files and only prototypes and other definitions in the headers.
Posted: Sun Nov 04, 2007 11:22 am
by piranha
you still have all your sources #included in header files.
I know, I write terrible code. I have yet to fix that, and I will try to later.
Right now I just want to get the functions working.
-JL
P.S. But did it compile, and run, and work?
Posted: Sun Nov 04, 2007 11:40 am
by ucosty
I haven't yet. It still doesn't build out of the box for me.
Code: Select all
Building Sea Console...
In file included from ./cons.c:8:
./ncur.h:192:3: warning: no newline at end of file
In file included from ./cons.c:12:
./scthreads.h:36: error: conflicting types for 'halt_threads'
./ncur.h:118: error: previous implicit declaration of 'halt_threads' was here
In file included from ./thread.h:1,
from ./cons.c:13:
/usr/include/pthread.h:143: error: conflicting types for 'pthread_exit'
./scthreads.h:142: error: previous implicit declaration of 'pthread_exit' was he
re
./cons.c:229: error: conflicting types for 'bssetup'
./scthreads.h:250: error: previous implicit declaration of 'bssetup' was here
mv: cannot stat `./cons': No such file or directory
Done!
Posted: Sun Nov 04, 2007 12:09 pm
by piranha
Thats weird, it worked for me when I downloaded it.
What version of gcc do you have?
-JL
Posted: Mon Nov 05, 2007 5:22 am
by ucosty
Cygwin's GCC 3.4.4
Posted: Mon Nov 05, 2007 3:13 pm
by Alboin
I've it compiled. I'm on Gentoo x86_64, with GCC v. 4.1.2.
Some things....
- When I resize my terminal, your shell doesn't. (There are lines left, as if it's not refreshing.) I'm not sure if it's supposed t refresh or not....
- I type in a command, let's say gcc, and the "gcc: no input files" jumps to the middle of the terminal. Also, after each command, the screen clears itself; IMO, not a favorable thing.
- Why does he clock refresh every 5 seconds? It doesn't matter, but, well, you know.
- the Backspace key doesn't work. It instead prints '^'.
- Maybe the prompt should be shorter....?
I don't know where you're going with it. At the moment, I'm kind of comparing it to bash, so, tell me if there's some twist I'm missing.
Posted: Mon Nov 05, 2007 5:49 pm
by piranha
Alboin wrote:I've it compiled. I'm on Gentoo x86_64, with GCC v. 4.1.2.
Some things....
- When I resize my terminal, your shell doesn't. (There are lines left, as if it's not refreshing.) I'm not sure if it's supposed t refresh or not....
- I type in a command, let's say gcc, and the "gcc: no input files" jumps to the middle of the terminal. Also, after each command, the screen clears itself; IMO, not a favorable thing.
- Why does he clock refresh every 5 seconds? It doesn't matter, but, well, you know.
- the Backspace key doesn't work. It instead prints '^'.
- Maybe the prompt should be shorter....?
I don't know where you're going with it. At the moment, I'm kind of comparing it to bash, so, tell me if there's some twist I'm missing.
Thank you.
First, it should resize when you press F5, or hit enter twice.
Second, the output is in the middle so all hard coded windows can be in the first half of the screen. And I'm working on making an output window.
If the clock refreshes too fast, then junk is sometimes printed on the screen. I'm working on that too.
Thanks for this info, I'll work on the problems!
-JL
Posted: Mon Nov 12, 2007 7:39 pm
by piranha
OK, here is a new version, Beta 2 or something.......
I fixed a lot of problems that were suggested by Alboin...
And I separated the header files into C files (did that 5 min ago)...
Let me know what you think!
Again, the website:
http://seaosmain.googlepages.com/seaconsole
-JL
Posted: Mon Nov 12, 2007 9:31 pm
by Alboin
My only complaint is the line formatting. If I execute a program and the line printed is too long, it doesn't wrap within the shell's boundaries.
Other than that, it's quite an improvement.
Posted: Mon Nov 12, 2007 10:24 pm
by piranha
Alboin wrote:My only complaint is the line formatting. If I execute a program and the line printed is too long, it doesn't wrap within the shell's boundaries.
Other than that, it's quite an improvement.
Yeah, unfortunately I have yet to figure out how to control the programs output in system() or similar functions...
Thanks.
And it compiled OK, I assume. I didn't test it that much after I separated the C files.
-JL
Posted: Mon Nov 12, 2007 11:08 pm
by Alboin
piranha wrote:Yeah, unfortunately I have yet to figure out how to control the programs output in system() or similar functions...
For a quick hack, you can just redirect the program's output, and then print it afterwards. Actually, this is a very bad idea, but it sounds better than nothing.
Code: Select all
char *meowgd = malloc(strlen(cmd) + 10);
sprintf(meowgd, "%s > tmp 2>&1", cmd);
system ( meowgd ); //Execute Command
free(meowgd);
//Print file 'tmp'
CRANBERRY SAUCE, meow....
Posted: Mon Nov 12, 2007 11:33 pm
by piranha
Thanks, but what happens if the program wants input? Does it still work?
-JL