unix shell 开发中的 Tab Completion 功能 [英] Tab Completion feature in unix shell development

查看:23
本文介绍了unix shell 开发中的 Tab Completion 功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 unix 系统编程(robbins 和 robbins)开发 shell,我如何添加此功能以及如何添加历史功能(如 BASH 中的历史功能 - 当我按下键时,它会显示之前键入的命令)

i am developing a shell using unix system programming (robbins and robbins) how can i add this feature and also how can i add history feature too (history feature like in BASH- when i press up key it shows the previous typed command )

推荐答案

您可以使用 GNU 阅读线.它具有这两个功能.

You can use GNU readline. It has both these features.

就像克里斯托弗所说,您应该查看文档 如果您有具体问题,请回来.

Like Christopher says, you should look at the documentation and come back if you have specific questions.

这篇关于unix shell 开发中的 Tab Completion 功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆