driverNames

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the driverNames
driverNames()
Summary

Returns a list of available serial drivers.

Introduced2.0
OSmac
Platformsdesktop, server
Example
put firstItems(the driverNames) into menu "Choose a driver:"
Values
NameTypeDescription
return

The driverNames function returns a list of drivers, one per line. Each line consists of three items, separated by commas:

  1. The name of the driver.
  2. The name and location of the TTY device file for the driver.
  3. The name and location of the callout device (CU) file for the driver.
The result

If the driverNames function is called on a Mac OS, Unix, or Windows system, it returns empty and the result returns "not supported".

RelatedKeyword: items, line
Command: open driver, write to driver, read from driver, close driver
Function: result
Control Structure: function
Glossary: Unix, Windows, command, return, Mac OS, device driver
Securitydisk
Description

Use the driverNames function to find out which serial device driver|drivers can be used with the open driver, read from driver, write to driver, and close driver commands.

Usually, you use the callout file name--the third item in the line for the driver you want--with the open driver, read from driver, write to driver, and close driver commands.

Tagsnetworking