Repository navigation
Borderfmt examples #2641
|
Hi, I was wondering if anyone had examples for how they set borderfmt? I found the default setting in lf -doc (which for me is no border, is that normal?) but I’m having trouble figuring out how to change the ANSI escape code to render a simple box. For example, how would I render a basic white border? What are some other borderfmt settings you all use? |
Replies: 1 comment 2 replies
|
The Note: The upcoming TLDR: set border # has to be enabled to actually draw borders; otherwise the settings below do nothing
set borderfmt "\033[0m" # controls the colour of the border characters
set roundbox # whether to use round corners when `drawbox is enabled (DEPRECATED in `r42`)
set borderstyle "roundbox" # controls border shape and location (will be available in `r42`)For more information and examples regarding ANSI escape codes, I recommend this Wikipedia article and taking a look at the default values of other format strings (every option ending with |
The
borderfmtsetting controls the colour of the border. You still have to enabledrawboxso the border is actually shown. If you want round corners, there is also yet another setting calledroundboxyou can enable.Note: The upcoming
r42release is going to remove theroundboxoption in favour of a newborderstylesetting, which adds much more control over the boxes:TLDR: