Table of Contents

Method OSC_SetWindowTitle

Namespace
Terminal.Gui.Drivers
Assembly
Terminal.Gui.dll

OSC_SetWindowTitle(string, int)

Sets the terminal window title using OSC 0..2.

public static string OSC_SetWindowTitle(string title, int mode = 0)

Parameters

title string

The title text to write.

mode int

The OSC title selector: 0 = icon and window title, 1 = icon title, 2 = window title. Values outside 0..2 are clamped.

Returns

string

The OSC title sequence.