Add in a new configuration option to override the system hostname
rather than rely on DNS (which may not be correctly configured on
the system)
Github issue #158
At some point `$self->config()` started returning a `bless`ed object so
checking it was a `HASH` began to fail, preventing someone using natural
sort. AFAIK the config option always has to behave as a hash so it should be
safe to avoid this test.
This patches load_configs() to check that the $config being opened is
actually a file and not a directory, which was tripping up the tests
that assert that there is an error when the config file cannot be
written because a directory already exists.
Until recently, the attempt to read the directory as a file was being
silently ignored due to a latent bug in Perl; more about that here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1016369
and
https://github.com/Perl/perl5/pull/20103
This addresses a bug filed against the Debian package for clusterssh
when t/15config.t tests started failing after the Perl bug was fixed.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1026735
Docs suggest using ssh_args without space at the end
ssh_args = "-x -o ConnectTimeout=10"
+ remove also trailing space in another line.
Fixes: 82f8845 ("Add in 'command_pre' and 'command_post' configs")
Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
This allows for running commands before and after the comms method in
the command pipeline, such as setting up python virtual environments
and piping output through other commands
Add in user macros that can run an external command to pass into each
client terminal session. Ensure that if no user command is defined that
the expected 'Alt-1' to 'Alt-4' keys are passed into the terminals
instead.
Include docs and examples of how they might be used.
The initial value for "auto quit" is taken from the config file but can
be overridden within the console UI for that session.
Although menu code for "auto close" is added, the functionality does not
work as expected. This is because the setting is put onto each terminal
when it is opened and is not updated thereafter.
It appears Tk::Dialog from Tk version 804.034 has a bug in it that was
not in Tk 804.033. Swap from using Tk::Dialog to Tk::DialogBox to
avoid the bug until it can be reported/fixed upstream..
Github issue #108
The console position is always put at the top left corner rather than
the configured position due to the combination of:
`$mw->update;$mw->withdraw`
Only withdraw the window if it is not already withdrawn.
Thanks to eserte for the fix.
Github issue #100