Skip to content

New line escape sequance for multi line header title? #3664

Answered by LangLangBart
MikeLemo1 asked this question in Q&A
Discussion options

You must be logged in to vote

what is the escape sequance insside the --header ' ' string that creates a new line?

Try it with $'12

--header $'foo\nbar'

I also added --header-lines 2 if that does anything related I Just need 2 lines for now.

You shouldn't need --header-lines. It's more commonly used when your data may include a table
header and you don't want it to be selectable. For example:

ps aux | fzf --header 'Current processes' --header-lines 1

Footnotes

  1. Bash Reference Manual - ANSI-C Quoting

  2. bash quotes (wizardzines.com)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@MikeLemo1
Comment options

@ernstki
Comment options

Answer selected by MikeLemo1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants