Releases: aplteam/CommTools
Release list
Version 3.2.0
CommTools had no public interface from the start, although that was always intended.
To be consumed as a Tatin package, see https://tatin.dev
Version 3.1.0
SetOnWaitandUnsetOnWaitadded:SetOnWaitestablishes a function that is called whenever a
CommToolsfunction is about to wait for input from the user, typically for notifying the userSelectaccepts a fourth positional parameterquitFlag: it decides whether the user may enter "q"
(for quit), independently ofmustFlag. A selection can therefore be enforced while the user may
still quit. It defaults to~mustFlag, which is the behaviour so farSelectaccepts ranges like3-6(for3 4 5 6) from the user when more than one item may be
selected, also aftera~, as ina~10-40; commas are treated like spacesSelectdoes not list the syntax in the prompt anymore: the prompt offers "(Get help with ?)", and
entering a "?" puts the choices on display again with the help injected just above the input line.
Only what the particular call allows is mentioned- Bug fixes
FindAutomationIndex, and thereforeAddAutomation, threw a RANK ERROR when∆Automationheld a
one-character ID, such as the*ofPause, and the ID in question was an aliasPausethrew a RANK ERROR when∆Automationheld a*row as well as an alias rowPauseignored a*row as soon as there were otherPauserows: a message that matched none
of them stopped and waited for the userYesOrNothrew a RANK ERROR when∆Automationheld a one-character ID and the question had an alias
To be consumed as a Tatin package, see https://tatin.dev
Version 3.0.1
Breaking change: Select now returns ¯1 if the user enters "q" for quit. ⍬ is now only returned when the user did not enter anything (=did not make a selection).
Bug fix: the new Select-syntax (entering "q" results in ¯1) could not be automated.
To be consumed as a Tatin package, see https://tatin.dev
Version 2.1.0
-
Selectnow supports "a~{n}" as "all but {n}" -
Selectoffers a new option: min-max:'Caption' (2 3) Select list
is treated as "select a minimum of 2 and a maximum of 3 items. Naturally, (2 2) is most useful.
-
Bug fixes
Selectreturned a one-element vector rather than a scalar when a single item was selected by automationSelectreturned an item twice when the user, or automation, specified it more than once; duplicates are now removed
To be consumed as a Tatin package, see https://tatin.dev
Version 2.0.2
- Help polished
- Bug fixes
Selectused⎕for output to the session. In 20.0 this is causing confusion when array notation is on for output. It should use⍞.
To be consumed as a Tatin package, see https://tatin.dev
Version 2.0.1
Bug fix: The Select function printed the user input to the session.
To be consumed as a Tatin package from https://tatin.dev
Version 2.0.0
- BREAKING CHANGES:
- You cannot specify part of a question/message/caption anymore, neither with nor without LF.
With version 2.0 you should use an alias if you have LF in your question/message/caption or if something
dynamic is part of it. (You can still use the wildcard character withSelectfor automation) - Automation has been redesigned. There is now only one variable in charge for automation:
∆Automation
- You cannot specify part of a question/message/caption anymore, neither with nor without LF.
- Helpers added for manipulating
∆Automationand gaining information about automation:AddAutomation,
ListAutomationandFindAutomationIndex - Testing can be done more thoroughly now thanks to the introduction of a counter on
∆Automation Versionnow uses the Tatin config as source- Bug fixes:
YesOrNo,SelectandAskForTextnow all act correctly even when the width of the session
is too narrow to display the question in a single line
To be consumed as a Tatin package from https://tatin.dev
Version 1.8.2
Bug fix: Select got two checks wrong
To be consumed as a Tatin package from https://tatin.dev
Version 1.8.1
- The "?"-syntax (automation variable) has been improved
- Bug fixes
- When multiple choices with a wildcard were added to
Select_Choices, only the first was returned - When a check function returned a 0, a default value was added to the question again
- Left argument of
AskForNumberwas not checked: must be a Boolean
- When multiple choices with a wildcard were added to
To be consumed as a Tatin package from https://tatin.dev
Version 1.8.0
Selectnow supports the wildcard character (*) not only at the end but also at the beginning of the second column of theSelectChoicesvariable- Now all functions return a full path to a global variable that can be used for automation when the right argument is a scalar question mark (
?) - Documentation polished
- Test cases refitted
To be consumed as a Tatin package from https://tatin.dev