到Console.ReadLine("默认文本编辑文本在线")在线、文本、文本编辑、Console

由网友(孤独万岁、寂寞无罪)分享简介:有没有实现这一目标的方法是什么?我想通过一些文字,并把它显示在输入行 - 而不是输入您的姓名:其中,光标> ,我想输入您的姓名:默认可编辑的文字<光标> Is there way of achieving this? I want to pass some text and have it appe...

有没有实现这一目标的方法是什么?我想通过一些文字,并把它显示在输入行 - 而不是输入您的姓名:其中,光标> ,我想输入您的姓名:默认可编辑的文字<光标>

Is there way of achieving this? I want to pass some text and have it appear on the input line -- instead of "Enter your Name:<cursor>", I want "Enter your Name:Default Editable Text<cursor>"

推荐答案

好了,找到了。对不起。

Ok, found it. Sorry.

static void Main(string[] args)
{
    Console.Write("Your editable text:");
    SendKeys.SendWait("hello"); //hello text will be editable :)
    Console.ReadLine();
}
阅读全文

相关推荐

最新文章