Files
Aleksandar Pesic af25086090 XtermTerminalView improvements and some async simplifications (#602)
* Dispatcher reviewed and improved.

* Minor refactoring.

* XtermTerminalView initialization simplified.

* Additionally simplifying XtermTerminalView initialization.

* Replacing SemaphoreSlim with lighter TaskCompletionSource.

* Some async/await simplification.

* Resize locking mechanism in XtermTerminalView simplified.

* Resize handling improved.

* Trivial change in a code comment.

* After merge fixes, and some minor changes.
2019-12-02 12:49:21 +01:00

13 lines
436 B
C#

namespace FluentTerminal.Models
{
public class TerminalSize
{
public int Columns { get; set; }
public int Rows { get; set; }
public bool EquivalentTo(TerminalSize other) => ReferenceEquals(this, other) ||
other != null && Columns.Equals(other.Columns) &&
Rows.Equals(other.Rows);
}
}