Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
Rahph

Concept for better shell!

Recommended Posts

Beacuse I cannot code properly, I have made a concept instead of program. As i know, multi tasking api was added recently to open computers, so i came up with an idea for widget- based addon for shell! You have your shell, but under it there are widgets, Those add great functionality to shell, that could be replaced with actual GUI for more deep experience. My idea would also be to create easy-to-use api to create widgets/apps.

 

How it looks:

 

post-2650-0-33331200-1457985860_thumb.png

 

 

(PSA is Pro Shell App)

 

How the code for icon that inputs "cd /bin" to the shell.

function init() --Initialization function
setResolution(20,20) --Size of our box
setBcgrColour(#RRGGBB) --Colour of our box
end

function display() --Function started when showing box
drawMainBox() --Draw main box (with preferences set in init function)
drawBox(1,1,10,2,#RRGGBB,#TEXTRRGGBB, "Test", 0) --Draw little box inside (button). First_X, First_Y, Second_X, Second_Y, Background color, Text colour, Text, Id
end

function click() --Clik event
if clicked == 0 then --Check what button was pressed (Remember our id?)
shellOutput("cd /bin") --Push data to shell (shows up confirmation box)
end
end

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.