The runmqsc command on UNIX

The runmqsc command line on UNIX supports command recall, command completion, and Emacs command keys.

The following command line editor functions are available:

  • Recall of previously entered commands by using the up arrow key and the down arrow key
  • Automatic completion for the next keyword of a command by using the tab key and the space bar
  • Emacs command keys, or similar command key functions
To use these functions, the curses library must be installed. If the curses library is not installed on your system, runmqsc does not have the command line editor functions and a message is shown when the runmqsc command line is started. The name of the curses library to install depends on the UNIX platform:

  • On AIX , install curses
  • On HP-UX, install Xcurses
  • On all other UNIX platforms, install ncurses


Customizing the Emacs key bindings

We can customize the keys that are bound to the commands. For example, we can bind the keys to vi bindings instead of the default Emacs key bindings.

The keys are customized by editing the .editrc file that is stored in the home directory. For more information, see editrc in the FreeBSD man pages.


Disabling command recall, command completion, and Emacs command keys

We can disable the command recall, command completion, and Emacs command keys by setting an environment variable. Set the environment variable MQ_OVERRIDE_LIBEDIT_LOAD to TRUE.