Skip to content

Commit

Permalink
Small changes in messages and warnings!
Browse files Browse the repository at this point in the history
  • Loading branch information
jar0l committed Aug 6, 2018
1 parent 8227dfe commit df22c67
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 11 deletions.
14 changes: 9 additions & 5 deletions Messenger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,12 @@ private static int CheckDataFormat (ref char c, int i, string s)

//-------------------------------------------------------------------------

private static Formated Format (string msg, int mbw = -1 /* MaxBufferWidth*/)
{
private static Formated Format
(
string msg
, int mbw = -1 /* MaxBufferWidth*/
, int offset = 0
){
Formated r = new Formated();
List<ConsoleColor> f = new List<ConsoleColor>();
List<ConsoleColor> b = new List<ConsoleColor>();
Expand All @@ -222,7 +226,7 @@ private static Formated Format (string msg, int mbw = -1 /* MaxBufferWidth*/)
b.Add(System.Console.BackgroundColor);

if (mbw < 0)
mbw = MaxBufferWidth;
mbw = MaxBufferWidth - offset;

msg += '\n';
for (int n, l = mbw, i = 0, j = 0, k = 0, s = 0, t = 0, m = 0, p = 0; i < msg.Length; ++i)
Expand Down Expand Up @@ -557,7 +561,7 @@ Icon icn
, bool bss // System sounds ('\a').
, bool bnl // New line.
){
Formated _f = Messenger.Format("#### {t:5}" + msg);
Formated _f = Messenger.Format("#### {t:6}" + msg, -1, 1);
bool _b = Clean;

Clean = true;
Expand All @@ -573,7 +577,7 @@ Icon icn
while ((i = msg.IndexOf(ColorChar)) != -1)
msg = msg.Remove(i, 1);

StringBuilder sb = new StringBuilder("\n[");
StringBuilder sb = new StringBuilder("\n [");
ConsoleKeyInfo ki = new ConsoleKeyInfo();
ConsoleColor[] cc;

Expand Down
20 changes: 19 additions & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10085,11 +10085,29 @@ static void Main (string[] args)
break;

default:
saux = string.Empty;

if (!string.IsNullOrEmpty(ifn))
saux = ifn;

ifn = Program.CheckArg(args, i, false);

if (ifn.Equals(BATCH, StringComparison.InvariantCultureIgnoreCase))
ifn += Program.CheckArg(args, ++i, false);

else if (!string.IsNullOrEmpty(saux))
{
Program.ShowBanner();
Messenger.Print
(
Messenger.Icon.WARNING
, "Exchange in the input file:\n\nOld < " +
saux + "\nNew > " + ifn
, false
, true
);
}

break;
}
}
Expand Down Expand Up @@ -10588,7 +10606,7 @@ static void Main (string[] args)
);

_private_key = _export_pvk;
_public_key = _export_pbk;
_public_key = _export_pbk;

Program.PgpECKeyPairGen
(
Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.6.8")]
[assembly: AssemblyFileVersion("1.1.6.8")]
[assembly: AssemblyVersion("1.1.6.10")]
[assembly: AssemblyFileVersion("1.1.6.10")]
[assembly: NeutralResourcesLanguageAttribute("en-US")]

#endif
6 changes: 3 additions & 3 deletions core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
<ApplicationIcon>Main.ico</ApplicationIcon>
<Version>1.1.6.5</Version>
<Version>1.1.6.10</Version>
<Authors>José A. Rojo L.</Authors>
<Company />
<Description>console crypto tool</Description>
Expand All @@ -16,8 +16,8 @@
<PackageReleaseNotes>.Net Core 2.0</PackageReleaseNotes>
<AssemblyName>crypto</AssemblyName>
<RootNamespace>crypto</RootNamespace>
<AssemblyVersion>1.1.6.8</AssemblyVersion>
<FileVersion>1.1.6.8</FileVersion>
<AssemblyVersion>1.1.6.10</AssemblyVersion>
<FileVersion>1.1.6.10</FileVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down

0 comments on commit df22c67

Please sign in to comment.