Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

May Fix #272. Enables TG apps to run in terminal StatusLine #3647

Draft
wants to merge 1 commit into
base: v2_develop
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions Terminal.Gui/ConsoleDrivers/EscSeqUtils/EscSeqUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
/// </remarks>
public static readonly string CSI_SaveCursorAndActivateAltBufferNoBackscroll = CSI + "?1049h";


//private static bool isButtonReleased;
private static bool isButtonClicked;

Expand Down Expand Up @@ -1373,5 +1374,22 @@
/// </summary>
public const string CSI_ReportTerminalSizeInChars_ResponseValue = "8";

public static readonly string CSI_StatusLine_Disable = CSI + "0$~";

Check warning on line 1377 in Terminal.Gui/ConsoleDrivers/EscSeqUtils/EscSeqUtils.cs

View workflow job for this annotation

GitHub Actions / build_and_test (ubuntu-latest)

Missing XML comment for publicly visible type or member 'EscSeqUtils.CSI_StatusLine_Disable'

Check warning on line 1377 in Terminal.Gui/ConsoleDrivers/EscSeqUtils/EscSeqUtils.cs

View workflow job for this annotation

GitHub Actions / build_and_test (windows-latest)

Missing XML comment for publicly visible type or member 'EscSeqUtils.CSI_StatusLine_Disable'

Check warning on line 1377 in Terminal.Gui/ConsoleDrivers/EscSeqUtils/EscSeqUtils.cs

View workflow job for this annotation

GitHub Actions / build_and_test (macos-latest)

Missing XML comment for publicly visible type or member 'EscSeqUtils.CSI_StatusLine_Disable'

public static readonly string CSI_StatusLine_Enable_Indicator = CSI + "1$~";

public static readonly string CSI_StatusLine_Enable_Host_Writable = CSI + "2$~";

/// <summary>
/// ESC [ 2$~;N$~ - enable host-writable status area, N lines
/// </summary>
/// <param name="lines">The number of lines</param>
/// <returns></returns>
public static string CSI_StatusLine_Enable_Host_Writable_N_Lines (int lines) { return $"{CSI}{CSI_StatusLine_Enable_Host_Writable};{lines}$~"; }

public static string CSI_StatusLine_Select_Normal_Display = CSI + "0$}";

public static string CSI_StatusLine_Select_Status_Line = CSI + "1$}";

#endregion
}
Loading