forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdriverNames.lcdoc
More file actions
37 lines (22 loc) · 1.5 KB
/
driverNames.lcdoc
File metadata and controls
37 lines (22 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Name: driverNames
Type: function
Syntax: the driverNames
Syntax: driverNames()
Summary: <return|Returns> a list of available serial <device driver|drivers>.
Introduced: 2.0
OS: mac
Platforms: desktop,server,web
Security: disk
Example:
put firstItems(the driverNames) into menu "Choose a driver:"
The result: If the <driverNames> <function> is called on a <Mac OS>, <Unix>, or <Windows|Windows system>, it returns empty and the <result> returns "not supported".
Returns:
The <driverNames> <function> <return|returns> a list of <device driver|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.
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> <command|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> <command|commands>.
References: items (keyword), line (keyword), open driver (command), write to driver (command), read from driver (command), close driver (command), function (control_st), Unix (glossary), Windows (glossary), command (glossary), return (glossary), Mac OS (glossary), device driver (glossary), result (function)
Tags: networking