From 3c3e254915c050e161d899b4be1caf045336b0dd Mon Sep 17 00:00:00 2001 From: Patrik Svensson Date: Tue, 3 Sep 2024 22:17:33 +0200 Subject: [PATCH] Update terminfo capabilities to v6.5 --- scripts/Generate.ps1 | 2 ++ src/TermInfo.Cli/Commands/Generate/GenerateCommand.cs | 8 ++++---- src/TermInfo/TermInfoCaps.cs | 6 +++--- src/TermInfo/TermInfoDesc.Generated.cs | 6 +++--- 4 files changed, 12 insertions(+), 10 deletions(-) mode change 100644 => 100755 scripts/Generate.ps1 diff --git a/scripts/Generate.ps1 b/scripts/Generate.ps1 old mode 100644 new mode 100755 index 8b5d7f5..cfa30f2 --- a/scripts/Generate.ps1 +++ b/scripts/Generate.ps1 @@ -1,3 +1,5 @@ +#!/opt/homebrew/bin/pwsh + ########################################################## # Script that generates known terminfo capabilities ########################################################## diff --git a/src/TermInfo.Cli/Commands/Generate/GenerateCommand.cs b/src/TermInfo.Cli/Commands/Generate/GenerateCommand.cs index 1477f3b..0eb4903 100644 --- a/src/TermInfo.Cli/Commands/Generate/GenerateCommand.cs +++ b/src/TermInfo.Cli/Commands/Generate/GenerateCommand.cs @@ -160,12 +160,12 @@ private async Task 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 FetchSourcePackage(Settings settings) { diff --git a/src/TermInfo/TermInfoCaps.cs b/src/TermInfo/TermInfoCaps.cs index f58265a..a60abb2 100644 --- a/src/TermInfo/TermInfoCaps.cs +++ b/src/TermInfo/TermInfoCaps.cs @@ -887,12 +887,12 @@ public enum String KeyUp = 87, /// - /// 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. /// KeypadLocal = 88, /// - /// 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. /// KeypadXmit = 89, @@ -1802,7 +1802,7 @@ public enum String ClearMargins = 270, /// - /// 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. /// SetLeftMargin = 271, diff --git a/src/TermInfo/TermInfoDesc.Generated.cs b/src/TermInfo/TermInfoDesc.Generated.cs index 772b16c..58b5055 100644 --- a/src/TermInfo/TermInfoDesc.Generated.cs +++ b/src/TermInfo/TermInfoDesc.Generated.cs @@ -858,12 +858,12 @@ public sealed partial class TermInfoDesc public string KeyUp => GetString(TermInfoCaps.String.KeyUp); /// - /// 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. /// public string KeypadLocal => GetString(TermInfoCaps.String.KeypadLocal); /// - /// 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. /// public string KeypadXmit => GetString(TermInfoCaps.String.KeypadXmit); @@ -1773,7 +1773,7 @@ public sealed partial class TermInfoDesc public string ClearMargins => GetString(TermInfoCaps.String.ClearMargins); /// - /// 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. /// public string SetLeftMargin => GetString(TermInfoCaps.String.SetLeftMargin);