setTitle method

void setTitle(
  1. String name
)

Sets the window title (OSC 2), which calls onTitleChange. Control characters in name are dropped.

Implementation

void setTitle(String name) {
  _seq('\x1b]2;${printableText(name)}\x1b\\');
}