disk_eject event

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

ExampleAlerts on disk ejection
Waits for a disk to be ejected and alerts the user when it occured.
local event, peripheral_name = os.pullEvent("disk_eject")
print("A disk has been ejected from disk drive", peripheral_name)
  • name : string The side or network name of the Disk Drive the disk got ejected from

Source CC:Tweaked
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.