robvanderleek / mudslide

Send WhatsApp messages from the command-line
ISC License
122 stars 12 forks source link

Message New Line issue #6

Closed zrkhan128 closed 1 year ago

zrkhan128 commented 1 year ago

When I try to add new line character as '\n' single slash replaces with double slash.

robvanderleek commented 1 year ago

Hi @zrkhan128

You can send newlines using \n but be careful your shell is not replacing any characters.

What shell command are you using?

robvanderleek commented 1 year ago

Hi @zrkhan128

I've removed your comment since it might contain your phone number?

This command works for me:

npx mudslide@latest send me 'hello\nworld'
image
zrkhan128 commented 1 year ago

Thank you for your prompt response.

On Wed, Feb 1, 2023, 3:06 PM Rob van der Leek @.***> wrote:

Hi @zrkhan128 https://github.com/zrkhan128

I've removed your comment since it might contain your phone number?

This command works for me:

npx @.*** send me 'hello\nworld'

[image: image] https://user-images.githubusercontent.com/5324924/216012929-9a92cba3-e315-4ed2-b2c8-c38b360a73d4.png

— Reply to this email directly, view it on GitHub https://github.com/robvanderleek/mudslide/issues/6#issuecomment-1411795825, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMVKTAXPA5HKQTTE5EA72I3WVIYTFANCNFSM6AAAAAAUNOWBEY . You are receiving this because you were mentioned.Message ID: @.***>