The name is passed in at construct time, but it gets canonicalized.
This commit adds api to get the final name. The api is also useful,
since it prevents callers that need the mapping from having to maintain
it separately, which will be good for a future clean up.
free (terminal);
}
+const char *
+ply_terminal_get_name (ply_terminal_t *terminal)
+{
+ return terminal->name;
+}
+
int
ply_terminal_get_vt_number (ply_terminal_t *terminal)
{
void ply_terminal_ignore_mode_changes (ply_terminal_t *terminal,
bool should_ignore);
+const char *ply_terminal_get_name (ply_terminal_t *terminal);
int ply_terminal_get_vt_number (ply_terminal_t *terminal);
bool ply_terminal_activate_vt (ply_terminal_t *terminal);
bool ply_terminal_deactivate_vt (ply_terminal_t *terminal);