settings.name = new_value
Set the expect variable specified by name to the new value.
value = settings.name
Return the current setting.
list_of_names = dir(settings)
Return the list of variable names that can be passed to set.
settings.reset()
settings.reset(name)
Reset the settings to factory defaults. "Factory defaults" are the values when the module is first loaded.
dict_of_values = settings.toDict()
Return a dictionary dumping the current settings. The dictionary is not tied to the settings object; changes made to the dictionary are not reflected in the settings object.
Variable | Expect | Python type | Modifiable? |
---|---|---|---|
loguser | exp_loguser | boolean | yes |
internal | exp_internal | boolean | yes |
timeout | timeout | integer | yes |
full_buffer | (none) | boolean | yes |
disconnected | (none) | boolean | no |
remove_nulls | remove_nulls | boolean | yes |
tty_copy | spawn -nottycopy | boolean | yes |
tty_init | spawn -nottyinit | boolean | yes |
stty_init | stty_init | string | yes |
old_value = set(name, new_value)
Set the expect variable specified by name to the new value, return the previous value.
current_value = set(name)
Return the current setting of the given expect variable.
list_of_names = set()
The list of variables are the same as for settings
above.