Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'readline() and forward-word' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
readline() and forward-word
Authored by: ngb on Jan 22, '04 05:13:22PM

readline() is in section 3 of the manpages (make sure /usr/share/man is in your manpath). There's also a reference to in the bash manpage (but not in the tcsh manpage).

Additionally, it's possible to set key bindings using bind (or bindkey in tcsh) and explicitly bind forward-word to whatever you want,

Finally, I'm not sure this is even necessary, as both bash and tcsh seem to default to Esc-f and Esc-b to moving the cursor forward or back one whole word respectivly.



[ Reply to This | # ]
readline() and forward-word
Authored by: jpryor68 on Jan 22, '04 06:17:55PM

Not sure that readline is included in a fresh Panther + Xcode install. I've fiddled with my MANPATH, but /usr/share/man is included:

% printenv MANPATH; man readline
/Library/MySQL/man:/Library/Frameworks/Python.framework/Versions/Current/man:/usr/local/teTeX/man:/usr/local/man:/usr/local/share/man:/usr/share/man
No manual entry for readline

Plus, when I ls the /usr/share/man directories, I don't find readline:

% ls /usr/share/man/man3/readline*
tcsh: ls: No match.

Thanks for the tip about esc-f and esc-b, though. I just bound them to option-rightarrow and option-leftarrow in my Terminal Preferences.



[ Reply to This | # ]