Skip to content
This repository was archived by the owner on Nov 11, 2024. It is now read-only.

Readline() not work well (sdb plugin) #73

Discussion options

You must be logged in to vote

Hello! I'm callmekohei!

Solved! (^_^)b

It's need to sleep time ( 5ms ).

open Mono.Debugger.Client
open Mono.Debugging.Client

open System.IO

[<Sealed; Command>]
type MyCommand() =
    inherit Command()
    override __.Names   = [|"mycmd"|]
    override __.Summary = "aaa bbb ccc"
    override __.Syntax  = "ddd eee fff"
    override __.Help    = "Help Help Help"
    override __.Process(args) =

        let file = new FileInfo(args)
        Debugger.Run(file)

        let width = System.Console.WindowWidth
        Log.Info(String.replicate width "" )

        Process.Start("stty","echo")
        System.Threading.Thread.Sleep 5
        ()

Thanks (^_^)/

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by alexrp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #46 on June 12, 2021 09:17.