Skip to content

Commit

Permalink
Improve REPL blinking problem
Browse files Browse the repository at this point in the history
  • Loading branch information
lontivero committed Mar 23, 2017
1 parent d54e788 commit 68c61ab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using Vinchuca.Network;
using Vinchuca.Network.Protocol.Peers;
using Vinchuca.REPL;
using Vinchuca.Utils;

namespace Vinchuca
{
Expand Down
2 changes: 1 addition & 1 deletion REPL/VirtualConsole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private void Redraw()

private void ScrollUp()
{
Array.Copy(_buffer, Console.BufferWidth, _buffer, 0, _buffer.Length - Console.BufferWidth);
Buffer.BlockCopy(_buffer, sizeof(char)*Console.BufferWidth, _buffer, 0, sizeof(char)*(_buffer.Length - Console.BufferWidth));
Array.Clear(_buffer, _buffer.Length - Console.BufferWidth, Console.BufferWidth);
_bufferPos -= Console.BufferWidth;
Redraw();
Expand Down

0 comments on commit 68c61ab

Please sign in to comment.