<p>Hey fellow gophers,</p>
<p>I'm currently working on a CLI application which does searching in files.</p>
<p>But now I need to ask for input from the user (search term in the application) and after that the application will spit out the content based on the search term. But on every new letter inserted in the prompt I want the terminal output to be updated (without the user pressing enter). I'm not sure if it is possible to do without using any specific (term) library's. Fmt.Scanf() seems to not work in this case</p>
<p>I hope anyone has a suggestion for me.</p>
<p>Happy programming all!!</p>
<hr/>**评论:**<br/><br/>dgryski: <pre><p>Check out <a href="https://github.com/junegunn/fzf" rel="nofollow">https://github.com/junegunn/fzf</a> or <a href="https://github.com/peco/peco" rel="nofollow">https://github.com/peco/peco</a> for how they work. It sounds like what you want is similar.</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传