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

JakobDev

Members
  • Content Count

    18
  • Joined

  • Last visited

Posts posted by JakobDev

  1. It would be nice, if the editor can be witched into a BBCode edit mode. I doesn't like the graphical editor. If you post something in BBCode like:

    [b]Big[/b]

    it get parsed from the forum, but there is no way to edit a post in BBCode.

  2. This is a simple GUI for OPPM:

    8bb2a7-1547646052.png

    Usage:
    Klick a Package to set it's status:
    White: Package is not installed
    Yellow: Package will be installed
    Green: Package is installed.
    Red: Package will be removed.
    Click "Apply" to apply changes.
    Right click a Package to get more Information.

    Instalation:

    oppm install mynaptic

  3. How can I run a procees in Background? I just want to launch the process, but the main Program is not interrupted.  It should run normal. Something like thread.waitForAll but with the possibility to add threads while running.

  4. I had save this code as /boot/login.lua and it works perfect. Just use this code.

    local io = require("io")
    local term = require("term")
    
    term.clear()
    while true do
    io.write("Password:")
    pass = io.read()
    if pass == "123" then
      print("Welcome!")
      break
    else
      print("Try again")
    end
    end

     

  5. I have not tested this code, but it should work

    local io = require("io")
    
    while true do
    io.write("Enter Password:")
    pass = io.read()
    if pass == "123" then
    	io.write("Welcome")
    	break
    else
    	print("Try again")
    end
    end

     

  6. I'm searching something like the Computercraft function os.run(). I have found shell.execute, but this does not work for me.

    --Code for the Programm who is running the sandbox
    local shell = require("shell")
    local sandta = {}
    
    function sandta.print(text)
    print("Print:"..text)
    end
    
    shell.execute("test",sandta)
    --Code for the Programm who is sandboxed
    print("Hello World!")

    This works fine and print out Print:Hello World!. But if I changed the code of the sandboxed Programm to

    local io = require("io")
    print("Hello World!")
    io.write("Another Text")

    it does not print anything.  have anybody a solution for that?

×
×
  • Create New...

Important Information

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