LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-26-2008, 02:06 AM   #1
linuxgentoo
LQ Newbie
 
Registered: Nov 2007
Location: Shanghai,China
Distribution: gentoo
Posts: 19
Blog Entries: 1

Rep: Reputation: 0
tab completion in command line interface


HI,all
I am implementing a cli program,I want the cli to support tab auto completion,for example
> software <tab>
it will list all software parameter


the point is that analyzing input context,is there any classical method to solve it?

Can you give me some advice?
thanks
 
Old 08-26-2008, 07:33 PM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
You might want to check out the readline library. What language are you using?
 
Old 08-28-2008, 09:54 PM   #3
linuxgentoo
LQ Newbie
 
Registered: Nov 2007
Location: Shanghai,China
Distribution: gentoo
Posts: 19

Original Poster
Blog Entries: 1

Rep: Reputation: 0
Quote:
Originally Posted by matthewg42 View Post
You might want to check out the readline library. What language are you using?
english ....
 
Old 08-28-2008, 10:07 PM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
I mean which programming language? (C, C++, Python, Perl, Java etc...)
 
Old 08-29-2008, 12:35 AM   #5
linuxgentoo
LQ Newbie
 
Registered: Nov 2007
Location: Shanghai,China
Distribution: gentoo
Posts: 19

Original Poster
Blog Entries: 1

Rep: Reputation: 0
Quote:
Originally Posted by matthewg42 View Post
I mean which programming language? (C, C++, Python, Perl, Java etc...)
sorry, c language
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
no tab completion maddocks AIX 2 12-27-2007 01:10 PM
Tab-completion kzr_merchant Programming 2 12-17-2007 04:00 PM
Tab completion for sudo Zmyrgel Slackware 1 06-02-2007 09:17 AM
Command line tab completion reboots Suse 9.3 lmckinney SUSE / openSUSE 2 01-16-2006 04:29 AM
Improving the tab command line feature Slith(++1) Linux - General 3 09-23-2005 08:05 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration