问题描述
我想弄清楚如何在C ++应用程序中实现子命令的选项卡完成。我希望它的功能很像Git的选项卡完成。我正在通过Git的源代码,但它不跳出我。
I'm trying to figure out how to implement tab completion for subcommands in a C++ application. I would like it to function much like Git's tab completion. I'm trolling through Git's source, but it's not jumping out at me.
我搜索了实现tab完成的方法,并没有找到一个简单的答案,所以我猜,它可能不一定是每个单独的应用程序必须实现的功能。标签完成是应用程序正在执行的特定shell的一个功能吗?什么是我需要知道的关于使我的应用程序支持制表符完成(特别是在C ++中)的基础知识?
I've searched for ways to implement tab completion and haven't found a straight-forward answer, so I'm guessing it might not necessarily be a feature each individual application has to implement. Is tab completion a feature of the particular shell the application is being executed from? What are the basics I need to know about getting my application to support tab completion (particularly in C++)?
推荐答案
选项卡完成是应用程序正在执行的特定shell的一个功能吗?
Is tab completion a feature of the particular shell the application is being executed from?
有关使我的应用程序支持制表符完成(特别是在C ++中)的基本知识有哪些?
What are the basics I need to know about getting my application to support tab completion (particularly in C++)?
这篇关于如何实现标签完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!