Need to add "set -o emacs" options to console
Hi,
Is there an easy way to add option such as "set -o emacs" to Linux based command console so I can have history of commands and be able to edit them? Or is this a complicated and painful thing to do?
I''m not sure what you mean by "set -o emacs" but if you''re after a command history in your linux shell, then you should be using the bash (Bourne Again SHell). It''s pretty much the standard shell these days.
War Worlds - A 3D Real-Time Strategy game in development.
War Worlds - A 3D Real-Time Strategy game in development.
I''m working on a text based command console(like a simple shell) and want to add command history and editing capability to it, like in regular shell such as bash. Many *nix apps allow setting "-o" options (like dbx) which I find very convenient.
Oh, there''s a library you can use for that. It''s called readline or something similar. I know it''s included with the sources to bash (http://www.gnu.org/software/bash/bash.html) but I would guess it has it''s own homepage somewhere that might be a bit more up to date.
War Worlds - A 3D Real-Time Strategy game in development.
War Worlds - A 3D Real-Time Strategy game in development.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement