This repository was archived by the owner on Nov 11, 2024. It is now read-only.
Readline() not work well (sdb plugin) #73
Answered
by
callmekohei
callmekohei
asked this question in
Questions
-
Hello! I'm ProblesmReadline() not work well. like this
repro
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 "─" ) 02 compile and move dll
03 launch sdb and run
|
Beta Was this translation helpful? Give feedback.
Answered by
callmekohei
Feb 20, 2018
Replies: 2 comments
-
work aroundadd following let ps = new System.Diagnostics.Process()
ps.StartInfo.FileName <- "/bin/stty"
ps.StartInfo.Arguments <- "echo"
ps.Start() |> ignore
Log.Info(string(ps.Id))
() |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello! I'm Solved! (^_^)bIt'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 (^_^)/ |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
alexrp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello! I'm
callmekohei
!Solved! (^_^)b
It's need to sleep time ( 5ms ).
Thanks (^_^)/