Skip to content

Commit

Permalink
Merge branch 'gh17-wpf_refresh_events'
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrZierhoffer committed Jun 28, 2018
2 parents d5a11fe + d9aa6cc commit 76934a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/xwt
4 changes: 2 additions & 2 deletions src/Renode/UI/TerminalIOSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class TerminalIOSource : IActiveIOSource, IDisposable
public TerminalIOSource(Terminal terminal)
{
vt100decoder = new TermSharp.Vt100.Decoder(terminal, b => HandleInput(b), new TerminalToRenodeLogger(terminal));
utfDecoder = new ByteUtf8Decoder(vt100decoder.Feed);
utfDecoder = new ByteUtf8Decoder(x => ApplicationExtensions.InvokeInUIThread(() => vt100decoder.Feed(x)));
}

public void Dispose()
Expand All @@ -36,7 +36,7 @@ public void Flush()
public void Write(byte b)
{
BeforeWrite?.Invoke(b);
ApplicationExtensions.InvokeInUIThread(() => utfDecoder.Feed(b));
utfDecoder.Feed(b);
}

public void HandleInput(int b)
Expand Down

0 comments on commit 76934a4

Please sign in to comment.