Jump to content




LyqydOS Teaser!


  • You cannot reply to this topic
15 replies to this topic

#1 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 21 October 2012 - 08:44 AM

Here's a quick screenshot of an upcoming operating system sort of program for ComputerCraft. Thought you guys might like to take a look. There are still a couple features I need to implement before I release it, like minimizing and maximizing windows, as well as a slightly different window decoration system. Hopefully those will be pretty quick and you guys can enjoy the full release soon!

Spoiler


#2 Mads

  • Members
  • 604 posts
  • LocationCopenhagen, Denmark

Posted 21 October 2012 - 10:07 AM

Woot! Neat!

#3 Jan

  • Members
  • 141 posts
  • Locationthe Netherlands

Posted 21 October 2012 - 11:07 AM

Looks very nice! How did you do it? Did you make a fake 'term' API, or did you altered the 'edit' program to work within a window?

#4 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 21 October 2012 - 04:33 PM

 Jan, on 21 October 2012 - 11:07 AM, said:

Looks very nice! How did you do it? Did you make a fake 'term' API, or did you altered the 'edit' program to work within a window?

Well, I did end up adding four lines to the edit program, but that was only so it could handle being resized. This is done through a bit of term magic.

#5 lieudusty

  • Members
  • 419 posts

Posted 21 October 2012 - 05:15 PM

Looks nice

#6 ElvishJerricco

  • Members
  • 803 posts

Posted 22 October 2012 - 12:01 AM

Only thing i can think of as to how you did this is by using os.run() to run shell for each window, and providing an environment with a fake term API. Am i correct?

#7 ChaddJackson12

  • Members
  • 264 posts

Posted 22 October 2012 - 12:46 AM

Wow if you actually made this to have windows (Which it looks like it will) then that is awesome. I think that will be the first OS to have windows that you can actually minimize, and stuff.

#8 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 22 October 2012 - 02:38 AM

 ElvishJerricco, on 22 October 2012 - 12:01 AM, said:

Only thing i can think of as to how you did this is by using os.run() to run shell for each window, and providing an environment with a fake term API. Am i correct?

Nope, just a bit of terminal redirection!

 ChaddJackson12, on 22 October 2012 - 12:46 AM, said:

Wow if you actually made this to have windows (Which it looks like it will) then that is awesome. I think that will be the first OS to have windows that you can actually minimize, and stuff.

Yep, actual windows. Working out a few bugs right now, but a release should be available in the next week or so. In the meantime, window decorations:

Spoiler


#9 ElvishJerricco

  • Members
  • 803 posts

Posted 22 October 2012 - 02:47 AM

 Lyqyd, on 22 October 2012 - 02:38 AM, said:

 ElvishJerricco, on 22 October 2012 - 12:01 AM, said:

Only thing i can think of as to how you did this is by using os.run() to run shell for each window, and providing an environment with a fake term API. Am i correct?

Nope, just a bit of terminal redirection!

 ChaddJackson12, on 22 October 2012 - 12:46 AM, said:

Wow if you actually made this to have windows (Which it looks like it will) then that is awesome. I think that will be the first OS to have windows that you can actually minimize, and stuff.

Yep, actual windows. Working out a few bugs right now, but a release should be available in the next week or so. In the meantime, window decorations:

Spoiler

Dangit why didn't i think of terminal redirection? That's so obvious...

Although you'd probably be better off doing it the way i described it. That way you don't have to redirect to each window every time something needs to draw.

#10 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 22 October 2012 - 03:46 AM

The way you describe is basically the same thing, except more difficult. Redirecting isn't a very expensive operation.

Edit: A maximized window:

Spoiler


#11 ElvishJerricco

  • Members
  • 803 posts

Posted 22 October 2012 - 06:34 AM

 Lyqyd, on 22 October 2012 - 03:46 AM, said:

The way you describe is basically the same thing, except more difficult. Redirecting isn't a very expensive operation.

Edit: A maximized window:

Spoiler

Not really. The difference is that instead of constantly managing where the term is redirected to (a task i'd consider annoying and prone to bugs), you just tell the shell what term to use and it automatically keeps them all updated and separated. Then when you redraw the screen it pulls from all the fake terms and draws them together.

#12 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 22 October 2012 - 02:53 PM

 ElvishJerricco, on 22 October 2012 - 06:34 AM, said:

 Lyqyd, on 22 October 2012 - 03:46 AM, said:

The way you describe is basically the same thing, except more difficult. Redirecting isn't a very expensive operation.

Edit: A maximized window:

Spoiler

Not really. The difference is that instead of constantly managing where the term is redirected to (a task i'd consider annoying and prone to bugs), you just tell the shell what term to use and it automatically keeps them all updated and separated. Then when you redraw the screen it pulls from all the fake terms and draws them together.

You vastly overestimate the difficulty of managing redirect targets, then. Also, you can start any program directly in a window, not just a shell. Just FYI.

Edit: What was I thinking? Posting without a preview image? Here's a terribly exciting shot of one window open, but minimized.

Spoiler


#13 ChaddJackson12

  • Members
  • 264 posts

Posted 26 October 2012 - 04:08 AM

Now all you need is a screen saver, and a wallpaper (Hopefully colorful ones! :D/>)

#14 Dlcruz129

    What's a Lua?

  • Members
  • 1,423 posts

Posted 06 November 2012 - 05:25 PM

 ChaddJackson12, on 26 October 2012 - 04:08 AM, said:

Now all you need is a screen saver, and a wallpaper (Hopefully colorful ones! :P/>)

Screensaver sounds cool. Just have an os.startTimer() that is cancelled on key press. If it runs out of time make a neat animation. Have it exit by pulling the key event.
[/ramble]

#15 cheekycharlie101

  • Members
  • 231 posts

Posted 06 November 2012 - 07:37 PM

Cant wait for this :P/> im just really pissed as im using tekkit cc and it wont update for a while >.<

#16 Expenox

  • Members
  • 137 posts
  • LocationIn the depths of my computer.

Posted 24 November 2012 - 04:40 PM

Awesome! I want to make one of these when i get more advanced.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users