disk_eject event

From ComputerCraft
Jump to: navigation, search
disk_eject
Event
Returns

Source CC:Tweaked

Occurs every time a disk is ejected from a connected Disk Drive.

ExampleExampleAlerts on disk ejection
Waits for a disk to be ejected and alerts the user when it occured.
Code
local event, peripheral_name = os.pullEvent("disk_eject")
print("A disk has been ejected from disk drive", peripheral_name)