Redirecting the terminal
In this guide, you will create a display and run terminal programs on it using run.
Requirements
Section titled “Requirements”Before starting, make sure you have:
- CC:Tweaked installed
- DirectGPU installed
- A computer with a DirectGPU peripheral attached
Creating the display
Section titled “Creating the display”Get the DirectGPU peripheral and create a display:
local gpu = peripheral.wrap("directgpu_1") or peripheral.find("directgpu")local id = gpu.autoDetectAndCreateDisplay(1)Running programs
Section titled “Running programs”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.