Skip to content

Commit

Permalink
Merge pull request #8 from MorganKryze/dev
Browse files Browse the repository at this point in the history
minor fixes | continuous writing
  • Loading branch information
MorganKryze authored Nov 13, 2023
2 parents ea278f8 + 2ee49ff commit 2e7697c
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ConsoleAppVisuals/Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public static void WriteContinuousString(string str, int? line, bool negative =
for(int j = 0; j < i; j++)
continuous += str[j];
continuous = continuous.PadRight(str.Length);
WritePositionnedString(continuous.ResizeString((int)length, position, default), default, negative, line, writeLine);
WritePositionnedString(continuous.ResizeString((int)length, position, default), position, negative, line, writeLine);
Sleep(timeInterval);

if(KeyAvailable)
Expand All @@ -226,7 +226,7 @@ public static void WriteContinuousString(string str, int? line, bool negative =
}
}
}
WritePositionnedString(str.ResizeString(WindowWidth, Placement.Center), default, negative, line);
WritePositionnedString(str.ResizeString(length ?? str.Length, position, default), position, negative, line);
Sleep(additionalTime);
}
/// <summary>
Expand Down
Binary file modified ConsoleAppVisuals/bin/Debug/net7.0/ConsoleAppVisuals.dll
Binary file not shown.
Binary file modified ConsoleAppVisuals/bin/Debug/net7.0/ConsoleAppVisuals.pdb
Binary file not shown.
Binary file modified ConsoleAppVisuals/bin/Release/net7.0/ConsoleAppVisuals.dll
Binary file not shown.
Binary file modified ConsoleAppVisuals/bin/Release/net7.0/ConsoleAppVisuals.pdb
Binary file not shown.
2 changes: 1 addition & 1 deletion example/example.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ConsoleAppVisuals" Version="2.0.0" />
<PackageReference Include="ConsoleAppVisuals" Version="2.0.4" />
</ItemGroup>

</Project>

0 comments on commit 2e7697c

Please sign in to comment.