Show / Hide Table of Contents

    Class CursesDriver

    This is the Curses driver for the gui.cs/Terminal framework.
    Inheritance
    System.Object
    ConsoleDriver
    CursesDriver
    Inherited Members
    ConsoleDriver.TerminalResized
    ConsoleDriver.SetTerminalResized(Action)
    ConsoleDriver.DrawFrame(Rect, Int32, Boolean)
    ConsoleDriver.Clip
    ConsoleDriver.HLine
    ConsoleDriver.VLine
    ConsoleDriver.Stipple
    ConsoleDriver.Diamond
    ConsoleDriver.ULCorner
    ConsoleDriver.LLCorner
    ConsoleDriver.URCorner
    ConsoleDriver.LRCorner
    ConsoleDriver.LeftTee
    ConsoleDriver.RightTee
    ConsoleDriver.TopTee
    ConsoleDriver.BottomTee
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Terminal.Gui
    Assembly: Terminal.Gui.dll
    Syntax
    public class CursesDriver : ConsoleDriver

    Fields

    window

    Declaration
    public Curses.Window window
    Field Value
    Type Description
    Curses.Window

    Properties

    Cols

    Declaration
    public override int Cols { get; }
    Property Value
    Type Description
    System.Int32
    Overrides
    ConsoleDriver.Cols

    Rows

    Declaration
    public override int Rows { get; }
    Property Value
    Type Description
    System.Int32
    Overrides
    ConsoleDriver.Rows

    Methods

    AddRune(Rune)

    Declaration
    public override void AddRune(Rune rune)
    Parameters
    Type Name Description
    System.Rune rune
    Overrides
    ConsoleDriver.AddRune(Rune)

    AddStr(ustring)

    Declaration
    public override void AddStr(ustring str)
    Parameters
    Type Name Description
    NStack.ustring str
    Overrides
    ConsoleDriver.AddStr(ustring)

    CookMouse()

    Declaration
    public override void CookMouse()
    Overrides
    ConsoleDriver.CookMouse()

    End()

    Declaration
    public override void End()
    Overrides
    ConsoleDriver.End()

    Init(Action)

    Declaration
    public override void Init(Action terminalResized)
    Parameters
    Type Name Description
    System.Action terminalResized
    Overrides
    ConsoleDriver.Init(Action)

    MakeAttribute(Color, Color)

    Declaration
    public override Attribute MakeAttribute(Color fore, Color back)
    Parameters
    Type Name Description
    Color fore
    Color back
    Returns
    Type Description
    Attribute
    Overrides
    ConsoleDriver.MakeAttribute(Color, Color)

    MakeColor(Int16, Int16)

    Creates a curses color from the provided foreground and background colors
    Declaration
    public static Attribute MakeColor(short foreground, short background)
    Parameters
    Type Name Description
    System.Int16 foreground Contains the curses attributes for the foreground (color, plus any attributes)
    System.Int16 background Contains the curses attributes for the background (color, plus any attributes)
    Returns
    Type Description
    Attribute

    Move(Int32, Int32)

    Declaration
    public override void Move(int col, int row)
    Parameters
    Type Name Description
    System.Int32 col
    System.Int32 row
    Overrides
    ConsoleDriver.Move(Int32, Int32)

    PrepareToRun(MainLoop, Action<KeyEvent>, Action<KeyEvent>, Action<KeyEvent>, Action<MouseEvent>)

    Declaration
    public override void PrepareToRun(MainLoop mainLoop, Action<KeyEvent> keyHandler, Action<KeyEvent> keyDownHandler, Action<KeyEvent> keyUpHandler, Action<MouseEvent> mouseHandler)
    Parameters
    Type Name Description
    MainLoop mainLoop
    System.Action<KeyEvent> keyHandler
    System.Action<KeyEvent> keyDownHandler
    System.Action<KeyEvent> keyUpHandler
    System.Action<MouseEvent> mouseHandler
    Overrides
    ConsoleDriver.PrepareToRun(MainLoop, Action<KeyEvent>, Action<KeyEvent>, Action<KeyEvent>, Action<MouseEvent>)

    Refresh()

    Declaration
    public override void Refresh()
    Overrides
    ConsoleDriver.Refresh()

    SetAttribute(Attribute)

    Declaration
    public override void SetAttribute(Attribute c)
    Parameters
    Type Name Description
    Attribute c
    Overrides
    ConsoleDriver.SetAttribute(Attribute)

    SetColors(ConsoleColor, ConsoleColor)

    Declaration
    public override void SetColors(ConsoleColor foreground, ConsoleColor background)
    Parameters
    Type Name Description
    System.ConsoleColor foreground
    System.ConsoleColor background
    Overrides
    ConsoleDriver.SetColors(ConsoleColor, ConsoleColor)

    SetColors(Int16, Int16)

    Declaration
    public override void SetColors(short foreColorId, short backgroundColorId)
    Parameters
    Type Name Description
    System.Int16 foreColorId
    System.Int16 backgroundColorId
    Overrides
    ConsoleDriver.SetColors(Int16, Int16)

    StartReportingMouseMoves()

    Declaration
    public override void StartReportingMouseMoves()
    Overrides
    ConsoleDriver.StartReportingMouseMoves()

    StopReportingMouseMoves()

    Declaration
    public override void StopReportingMouseMoves()
    Overrides
    ConsoleDriver.StopReportingMouseMoves()

    Suspend()

    Declaration
    public override void Suspend()
    Overrides
    ConsoleDriver.Suspend()

    UncookMouse()

    Declaration
    public override void UncookMouse()
    Overrides
    ConsoleDriver.UncookMouse()

    UpdateCursor()

    Declaration
    public override void UpdateCursor()
    Overrides
    ConsoleDriver.UpdateCursor()

    UpdateScreen()

    Declaration
    public override void UpdateScreen()
    Overrides
    ConsoleDriver.UpdateScreen()
    Back to top Generated by DocFX