Terminal UI V2, advanced binding
This commit is contained in:
19
src/Library/TerminalUI/ConsoleDrivers/IConsoleDriver.cs
Normal file
19
src/Library/TerminalUI/ConsoleDrivers/IConsoleDriver.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using TerminalUI.Models;
|
||||
|
||||
namespace TerminalUI.ConsoleDrivers;
|
||||
|
||||
public interface IConsoleDriver
|
||||
{
|
||||
void Init();
|
||||
void Dispose();
|
||||
void SetCursorPosition(Position position);
|
||||
void ResetColor();
|
||||
Position GetCursorPosition();
|
||||
void Write(string text);
|
||||
void Write(char text);
|
||||
bool CanRead();
|
||||
ConsoleKeyInfo ReadKey();
|
||||
void SetCursorVisible(bool cursorVisible);
|
||||
void SetForegroundColor(IColor foreground);
|
||||
void SetBackgroundColor(IColor background);
|
||||
}
|
||||
Reference in New Issue
Block a user