JustJurt

temp

Dec 19th, 2024 (edited)
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.74 KB | None | 0 0
  1. -- pastebin run QyUNCc93
  2. term.clear()
  3. local termWidth, termHeight = term.getSize() -- Get terminal size
  4. -- Create a window for multishell (all lines except the bottom one)
  5. local multishellWindow = window.create(term.native(), 1, 1, termWidth, termHeight - 1)
  6. term.redirect(multishellWindow)
  7.  
  8. local unityWindow = window.create(term.native(), 1, termHeight, termWidth, 1)
  9. function SetUnityStatus(text)
  10.     local previousTerm = term.redirect(unityWindow)
  11.     term.setBackgroundColor(colors.gray)
  12.     term.clear()
  13.     term.setCursorPos(1, 1)
  14.     term.write("Unity - ")
  15.     term.write(text)
  16.     term.redirect(multishellWindow)
  17. end
  18. SetUnityStatus("Hello World!")
  19. term.setBackgroundColor(colors.red)
  20. term.setCursorPos(1,1)
  21.  
  22. while true do
  23.    
  24. end
Advertisement
Add Comment
Please, Sign In to add comment