OpenQNX :: The QNX Community Portal

Jul 25, 2008 - 04:24 PM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 22 unlogged users and 3 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
kushalkoolwal
Post subject: Enabling auto-complete in QNX terminal  PostPosted: Apr 14, 2008 - 11:32 PM
Active Member


Joined: Sep 01, 2006
Posts: 23

I recently installed QNX Neutrino RTOS from the 6.3.2 Momentics CD.

I noticed that there is no auto-complete on the shell prompt (terminal window) in the Photon GUI.

How can I enable the auto-complete. As you may know it is very cumbersome to type commands.
 
 View user's profile Send private message  
Reply with quote Back to top
mario
Post subject: RE: Enabling auto-complete in QNX terminal  PostPosted: Apr 15, 2008 - 12:36 AM
QNX Master


Joined: Sep 01, 2002
Posts: 2783

There is ESC-ESC if that is what you mean?
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
kushalkoolwal
Post subject: Re: RE: Enabling auto-complete in QNX terminal  PostPosted: Apr 15, 2008 - 12:54 AM
Active Member


Joined: Sep 01, 2006
Posts: 23

mario wrote:
There is ESC-ESC if that is what you mean?



Thanks for the reply. The ESC-ESC that you mentioned answers a part of my question. My understanding is that ESC-ESC just completes the command but it is not forward looking. For example, if I just want to see the contents of the /root directory without actually "cd"-ing into it, I cannot do it.

# ls /root (Now if I press ESC-ESC it won't show me the output)

The feature that I am talking about is the same which is there in all Linux Distributions and also on UNIX systems.
 
 View user's profile Send private message  
Reply with quote Back to top
mario
Post subject: RE: Re: RE: Enabling auto-complete in QNX terminal  PostPosted: Apr 15, 2008 - 12:27 PM
QNX Master


Joined: Sep 01, 2002
Posts: 2783

That feature is not available. It is most probably a feature of the shell ( bash maybe ), it should be possible to install bash under QNX6 ( never done it myself ).
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
cburgess
Post subject: RE: Re: RE: Enabling auto-complete in QNX terminal  PostPosted: Apr 17, 2008 - 06:06 PM
QNX Master


Joined: Aug 31, 2004
Posts: 181
Location: Ottawa
really? it works for me - ls /bin/l<esc>?
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
kushalkoolwal
Post subject: Re: RE: Re: RE: Enabling auto-complete in QNX terminal  PostPosted: Apr 17, 2008 - 06:09 PM
Active Member


Joined: Sep 01, 2006
Posts: 23

cburgess wrote:
really? it works for me - ls /bin/l<esc>?


Based on suggestion of Mario, I installed bash and I was able to get the feature that I was looking for. cburgess, not sure what shell are you using?
 
 View user's profile Send private message  
Reply with quote Back to top
mario
Post subject: Re: RE: Re: RE: Enabling auto-complete in QNX terminal  PostPosted: Apr 17, 2008 - 09:05 PM
QNX Master


Joined: Sep 01, 2002
Posts: 2783

cburgess wrote:
really? it works for me - ls /bin/l<esc>?


Well you learn something everyday ;-)

Thanks Colin.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
micro
Post subject: RE: Re: RE: Re: RE: Enabling auto-complete in QNX terminal  PostPosted: Apr 18, 2008 - 11:59 AM
Senior Member


Joined: Jul 22, 2004
Posts: 333

Actually autocompletion will work, but not showing the possible values for autocompletion if there are more than one.
At least not in the default shell with default setup.
 
 View user's profile Send private message  
Reply with quote Back to top
mario
Post subject: RE: Re: RE: Re: RE: Enabling auto-complete in QNX terminal  PostPosted: Apr 18, 2008 - 04:11 PM
QNX Master


Joined: Sep 01, 2002
Posts: 2783

With <esc>? it does how all possible values, and as far as I know I'm using the default setup.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
kushalkoolwal
Post subject: Re: RE: Re: RE: Re: RE: Enabling auto-complete in QNX termin  PostPosted: Apr 18, 2008 - 05:56 PM
Active Member


Joined: Sep 01, 2006
Posts: 23

micro wrote:
Actually autocompletion will work, but not showing the possible values for autocompletion if there are more than one.
At least not in the default shell with default setup.


Yes, I am seeing the exactly same behavior.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.