Skip to content
Discussion options

You must be logged in to vote

Ok here is how to do it. Note that I am using "v2" for the driver, when I leave it blank (WindowsDriver i.e. v1) then the cursor keeps vanishing even in the TextField.

    class MyView : View
    {
        public MyView ()
        {
            CanFocus = true;
            CursorVisibility = CursorVisibility.Default;
        }

        /// <inheritdoc />
        public override Point? PositionCursor ()
        {
            return new Point (1,1);
        }
    }

    private static int Main (string [] args)
    {
        Application.Init (null,"v2");
        var w = new Toplevel();

        w.Add (new TextField (){Text = "Hi", Width = 5, Height = 1});
        w.Add (new MyView ()
        {

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by sillycowvalley
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants