Home » Community » Newbie corner » PromptOK and \n
PromptOK and \n [message #48106] |
Thu, 18 May 2017 13:50  |
Giorgio
Messages: 218 Registered: August 2015
|
Experienced Member |
|
|
Hi there,
is there a way to use the carriage return in a PromptOK? Adding \n in the String does not generate an error, but it does not work.
Regards,
Gio
|
|
|
Re: PromptOK and \n [message #48107 is a reply to message #48106] |
Thu, 18 May 2017 13:58   |
Oblivion
Messages: 1202 Registered: August 2007
|
Senior Contributor |
|
|
Quote:
Hi there,
is there a way to use the carriage return in a PromptOK? Adding \n in the String does not generate an error, but it does not work.
Regards,
Gio
Hello,
Yes, if you need to use a C string (which contains CR (\r), LF (\n), etc.) try using DeQtf() function: (http://www.ultimatepp.org/src$RichText$Utilities$en-us.html)
If you simply need to show some text and need a new paragraph in QTF format, you can use an ampersand "&" in your text message without using DeQtf(). See "Basic Qtf Codes" section: http://www.ultimatepp.org/srcdoc$RichText$QTF$en-us.html
Regards,
Oblivion
Github page: https://github.com/ismail-yilmaz
upp-components: https://github.com/ismail-yilmaz/upp-components
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Thu, 18 May 2017 14:11] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Sat Apr 26 14:28:14 CEST 2025
Total time taken to generate the page: 0.00660 seconds
|