[PATCH 4/7] programs/cmd/tests: added support for multi-line input