scanf等效于c中的箭头键支持 [英] scanf equivalent with arrow key support in c
本文介绍了scanf等效于c中的箭头键支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
c中是否有一些函数表现得像scanf(从键盘输入),同时能够通过按箭头键在输入中移动光标,就像在终端中一样?
Is there some functions in c which behaves like scanf (taking inputs from the keyboard) while being able to move the cursor in the input by pressing the arrow keys, like in a terminal ?
推荐答案
C标准中没有这样做的功能。
There are no function in C standard to do that.
你可以看看 ncurses
这篇关于scanf等效于c中的箭头键支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文