Module props

Module props 

Source
Expand description

Properties by name, and their values in a form a person can read and type.

One vocabulary for the whole tool: get, set, and the manage forms of both take the same spellings and render values the same way. The names and types come from umsh_ulcp::describe, so this file holds no second copy of the table it reads.

Structsยง

PropArg
A property named by its mnemonic or its number.

Functionsยง

encode_value
Turn what somebody typed into the octets a property takes.
format_value
A propertyโ€™s value as something worth reading.
get
Read properties, named or numbered.
letter ๐Ÿ”’
malformed ๐Ÿ”’
nearest ๐Ÿ”’
The name that shares the longest run of leading characters with what was typed, when that run is long enough to be a typo rather than a coincidence.
number ๐Ÿ”’
report ๐Ÿ”’
resolve ๐Ÿ”’
The identifier a mnemonic names, however it was written.
same_name ๐Ÿ”’
Whether written names the property name spells, ignoring case and the difference between a dash and an underscore, with the PROP_ prefix optional.
scalar ๐Ÿ”’
A number with the unit the property carries, where it has one worth saying. The bare number stays visible: it is what a set takes back.
set
Write one property, reporting what the device stored.
spell
How this tool writes a propertyโ€™s name on a command line.