Sea Console new Beta Version

This forums is for OS project announcements including project openings, new releases, update notices, test requests, and job openings (both paying and volunteer).
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Sea Console new Beta Version

Post 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.
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
User avatar
inflater
Member
Member
Posts: 1309
Joined: Thu Sep 28, 2006 10:32 am
Location: Slovakia
Contact:

Post by inflater »

I would really appreciate a disk image to be available... :)

Regards
inflater
My web site: http://inflater.wz.cz (Slovak)
Derrick operating system: http://derrick.xf.cz (Slovak and English :P)
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Post by piranha »

It's not an OS, its a program.

EDIT: I forgot to mention: User name is 'bob', password is 'bob'.

-JL
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
User avatar
ucosty
Member
Member
Posts: 271
Joined: Tue Aug 08, 2006 7:43 am
Location: Sydney, Australia

Post by ucosty »

you still have all your sources #included in header files. :x

You should put your actual program code in .c files and only prototypes and other definitions in the headers.
The cake is a lie | rackbits.com
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Post 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?
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
User avatar
ucosty
Member
Member
Posts: 271
Joined: Tue Aug 08, 2006 7:43 am
Location: Sydney, Australia

Post 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!
The cake is a lie | rackbits.com
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Post by piranha »

Thats weird, it worked for me when I downloaded it.

What version of gcc do you have?

-JL
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
User avatar
ucosty
Member
Member
Posts: 271
Joined: Tue Aug 08, 2006 7:43 am
Location: Sydney, Australia

Post by ucosty »

Cygwin's GCC 3.4.4
The cake is a lie | rackbits.com
User avatar
Alboin
Member
Member
Posts: 1466
Joined: Thu Jan 04, 2007 3:29 pm
Location: Noricum and Pannonia

Post 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. :)
C8H10N4O2 | #446691 | Trust the nodes.
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Post 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
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Post 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 8)
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
User avatar
Alboin
Member
Member
Posts: 1466
Joined: Thu Jan 04, 2007 3:29 pm
Location: Noricum and Pannonia

Post 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.
C8H10N4O2 | #446691 | Trust the nodes.
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Post 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
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
User avatar
Alboin
Member
Member
Posts: 1466
Joined: Thu Jan 04, 2007 3:29 pm
Location: Noricum and Pannonia

Post 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....
C8H10N4O2 | #446691 | Trust the nodes.
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Post by piranha »

Thanks, but what happens if the program wants input? Does it still work?

-JL
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
Post Reply