Skip to main content

Module profiles

Module profiles 

Source
Expand description

The Profiles tab (doc 34, section 6.7): list, create, edit, remove, choose the default, test a connection and connect with another profile. It replaces the old profiles screen (D-TUI-8) and works on the same file (config.yml), through the effects SaveProfiles, CheckProfile and Connect.

Modules§

view
The drawing of the Profiles tab: the profiles of the file, which one is in use and which is the default.

Constants§

FORM_FIELDS
The fields of a profile the form edits; the others (output, the timeouts) are kept as they are.

Functions§

check_text
The text for the result of testing a connection, and whether it is a failure.
checked
The result of a connection test: in the form that asked for it, or in the footer.
editor_key
The keys of the form of a profile.
on_action
open_form
preferred_index
The index of the profile a person most likely wants: the default one, or the first.
remove
Removing a profile was confirmed.
saved
The profiles file was written (or not).
selected
selected_index
The index of the selected profile; the first one if the selection is gone.