Skip to content

Redirecting the terminal

In this guide, you will create a display and run terminal programs on it using run.

Before starting, make sure you have:

  • CC:Tweaked installed
  • DirectGPU installed
  • A computer with a DirectGPU peripheral attached

Get the DirectGPU peripheral and create a display:

local gpu = peripheral.wrap("directgpu_1") or peripheral.find("directgpu")
local id = gpu.autoDetectAndCreateDisplay(1)

Use run to run terminal programs on the display:

gpu.run(id, "clear")
gpu.run(id, "multishell")

The display now shows a terminal with multishell running on it.