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
Allow for specific commands to be passed into cssh via a command pipe.
This will allow for adding in new sessions and retiling existing
sessions.
More commands may be added over time.
Allow ranges such as 'h{a,b}{1,2}' to expand to 'ha1 ha2 hb1 hb2' rather
than return a perl error
Thanks to Markus Frosch (lazyfrosch).
Github issue #97.
Previous change "Take into account WM decorations when tiling (Github pull
request #66) (thanks to Andrew Stevenson)" has caused problems on some
systems but improved tiling on others, so make the algorithm configurable
to use the original one (default) or the new style.
To be revisited when all the window handling code is moved into a separate
module
the Base.pm debug method was being overridden within Getopt.pm when all
command line options are turned into accessors. Since this is done on the
fly there is no compiler warning generated for it.
Also renamed a method in base from 'output' to 'stdout_output' as two objects
had the same method name - Getopt::output and Base::output