function result = readInput(prompt)
% readInput - prompt the user for input with extra drawnow to handle pending
% stdout/stderr

% Copyright 2020 The MathWorks, Inc.

% Draw now to allow queued stdout and stderr to be displayed before prompting
drawnow();

result = input(prompt, 's');
end

