pat command line multi-line message

22 views
Skip to first unread message

Eric Swenson

unread,
Mar 23, 2024, 1:47:44 PMMar 23
to pat-users
When the "pat composeform" command is used, and a field (such as "message" in ICS213 General Message template) is a multi-line field, how do you enter the lines following the first?  Typing <enter>, of course, moves to the next field.  Do you use \n or some other character sequence to cause a newline and the client to keep accepting input for the field?

(And yes, I know that if I use "pat http" and the web interface, there are no issues with multi-line fields).

-- Eric

Martin Hebnes Pedersen

unread,
Mar 24, 2024, 3:46:18 AMMar 24
to Eric Swenson, pat-users
Hi Eric,

MU (multi-line) input is not supported currently. In fact, the composeform CLI feature is very limited. I’ve been working on a re-write of the templates engine for a few months, and enhancements to the CLI composeform is one of my priorities.

You can follow the work here: https://github.com/la5nta/pat/pull/443. If you'd like to help out with the testing, that would be highly appreciated. You’ll need to build the branch from source. https://github.com/la5nta/pat/wiki/Building-from-source.

There is still no support for MU input, but it’s on my TODO list. My initial thoughts are to implement this by firing up the EDITOR just as we do with the message body. However, we could also consider accepting multiple lines in a loop and terminate once we get a blank line. Not sure what’s the best approach.

I created a feature request just now: https://github.com/la5nta/pat/issues/444


— 
73 de LA5NTA / Martin


--
You received this message because you are subscribed to the Google Groups "pat-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pat-users+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/pat-users/61fd5977-0c24-482d-8eab-ab95c2d3ae45n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages