forked from kvamtroe/hamlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rigctl.c: Add options to save/read command history
As commands from a previous session may not be desired, make reading the history file at rigctl start and writing to it at rigctl close optional by use of the -i/--read_history or -I/--save-history options. Compilation is conditional on having Readline and Readline History support detected at build system configuration time. History is stored in '$HOME/.rigctl_history' by default. An alternate path may be specified by setting the RIGCTL_HIST_DIR environment variable: $ RIGCTL_HIST_DIR=~/.rigctl rigctl -iI will temporarily set the history directory to /home/USER/.rigctl and create .rigctl_history if it does not exist. If the file cannot be read or written a warning message will be given on stderr.
- Loading branch information
Showing
1 changed file
with
64 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters