Escape sequences are characters that can be used for different purposes in output operations. Such sequencees can be used in any String, but are only displayed when these Strings are displayed in the terminal.
Escape sequences always begin with a \
.
This character creates a line break in the console.
(defun main () (
(princ "Hello\nWorld")
))
Hello
World
This character creates a tabulator in the terminal.
(defun main () (
(princ "Hello\t World")
))
Hello World
This character creates a quotation mark inside a String.
(defun main () (
(princ "Hello \"World\"")
))
Hello "World"
This character creates a single quotation mark inside a String.
(defun main () (
(princ "Hello \'World\'")
))
Hello 'World'
This character creates a backspace.
(defun main () (
(princ "Hello Wo\brld")
))
Hello Wrld
This character represents a form feed.
This character represents a carriage return.