Skip to content

Commit

Permalink
Fix line spacing.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Apr 26, 2020
1 parent 39b3d12 commit 7328aee
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions ScreenCast.Core/Services/ChatHostService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,8 @@ public async Task StartChat(string requesterID, string organizationName)

while (NamedPipeStream.IsConnected)
{
Console.SetCursorPosition(0, Math.Max(MaxCursorTop, Console.CursorTop));
Console.WriteLine();
Console.WriteLine();
Console.SetCursorPosition(0, Math.Max(MaxCursorTop, Console.CursorTop) + 1);
MaxCursorTop = Console.CursorTop + 1;
Console.ForegroundColor = ConsoleColor.Cyan;
Console.Write("You: ");
Console.ForegroundColor = ConsoleColor.White;
Expand All @@ -94,9 +93,7 @@ private async Task ReadFromStream()
var message = await Reader.ReadLineAsync();
var left = Console.CursorLeft;
var top = Console.CursorTop;
Console.SetCursorPosition(0, Math.Max(MaxCursorTop, Console.CursorTop));
Console.WriteLine();
Console.WriteLine();
Console.SetCursorPosition(0, Math.Max(MaxCursorTop, Console.CursorTop) + 1);
var split = message.Split(":", 2);
Console.ForegroundColor = ConsoleColor.Cyan;
Console.Write($"{split[0]}: ");
Expand Down

0 comments on commit 7328aee

Please sign in to comment.