Skip to content

Commit

Permalink
Update terminfo capabilities to v6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
patriksvensson committed Sep 3, 2024
1 parent e194abb commit 3c3e254
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
2 changes: 2 additions & 0 deletions scripts/Generate.ps1
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/opt/homebrew/bin/pwsh

##########################################################
# Script that generates known terminfo capabilities
##########################################################
Expand Down
8 changes: 4 additions & 4 deletions src/TermInfo.Cli/Commands/Generate/GenerateCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,12 @@ private async Task<string> ReadCapabilitiesString(Settings settings)
}
}

throw new InvalidOperationException("Could not find 'ncurses-6.2/include/Caps'");
throw new InvalidOperationException($"Could not find '{CapsPath}'");
}

private const string NCursesUrl = "https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.2.tar.gz";
private const string NCursesFilename = "ncurses-6.2.tar.gz";
private const string CapsPath = "ncurses-6.2/include/Caps";
private const string NCursesUrl = "https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.5.tar.gz";
private const string NCursesFilename = "ncurses-6.5.tar.gz";
private const string CapsPath = "ncurses-6.5/include/Caps";

private async Task<Stream> FetchSourcePackage(Settings settings)
{
Expand Down
6 changes: 3 additions & 3 deletions src/TermInfo/TermInfoCaps.cs
Original file line number Diff line number Diff line change
Expand Up @@ -887,12 +887,12 @@ public enum String
KeyUp = 87,

/// <summary>
/// The keypad_local [keypad_local, rmkx] string capability is the leave 'keyboard transmit' mode.
/// The keypad_local [keypad_local, rmkx] string capability is the leave keyboard transmit mode.
/// </summary>
KeypadLocal = 88,

/// <summary>
/// The keypad_xmit [keypad_xmit, smkx] string capability is the enter 'keyboard transmit' mode.
/// The keypad_xmit [keypad_xmit, smkx] string capability is the enter keyboard transmit mode.
/// </summary>
KeypadXmit = 89,

Expand Down Expand Up @@ -1802,7 +1802,7 @@ public enum String
ClearMargins = 270,

/// <summary>
/// The set_left_margin [set_left_margin, smgl] string capability is the set left soft margin at current column.
/// The set_left_margin [set_left_margin, smgl] string capability is the set left soft margin at current column not in bsd f itermcap f p.
/// </summary>
SetLeftMargin = 271,

Expand Down
6 changes: 3 additions & 3 deletions src/TermInfo/TermInfoDesc.Generated.cs
Original file line number Diff line number Diff line change
Expand Up @@ -858,12 +858,12 @@ public sealed partial class TermInfoDesc
public string KeyUp => GetString(TermInfoCaps.String.KeyUp);

/// <summary>
/// The keypad_local [keypad_local, rmkx] string capability is the leave 'keyboard transmit' mode.
/// The keypad_local [keypad_local, rmkx] string capability is the leave keyboard transmit mode.
/// </summary>
public string KeypadLocal => GetString(TermInfoCaps.String.KeypadLocal);

/// <summary>
/// The keypad_xmit [keypad_xmit, smkx] string capability is the enter 'keyboard transmit' mode.
/// The keypad_xmit [keypad_xmit, smkx] string capability is the enter keyboard transmit mode.
/// </summary>
public string KeypadXmit => GetString(TermInfoCaps.String.KeypadXmit);

Expand Down Expand Up @@ -1773,7 +1773,7 @@ public sealed partial class TermInfoDesc
public string ClearMargins => GetString(TermInfoCaps.String.ClearMargins);

/// <summary>
/// The set_left_margin [set_left_margin, smgl] string capability is the set left soft margin at current column.
/// The set_left_margin [set_left_margin, smgl] string capability is the set left soft margin at current column not in bsd f itermcap f p.
/// </summary>
public string SetLeftMargin => GetString(TermInfoCaps.String.SetLeftMargin);

Expand Down

0 comments on commit 3c3e254

Please sign in to comment.