mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-08 08:20:59 -04:00
README: use triple quoted blocks for meson/ninja examples
This allows us to specify which syntax highlighting (sh) to use.
This commit is contained in:
parent
57956634e8
commit
8854ae134d
1 changed files with 18 additions and 12 deletions
30
README.md
30
README.md
|
|
@ -273,31 +273,37 @@ you intend to install a release build of foot, in which case you might
|
||||||
be interested in the compiler flags used there.
|
be interested in the compiler flags used there.
|
||||||
|
|
||||||
First, create a build directory, and switch to it:
|
First, create a build directory, and switch to it:
|
||||||
|
```sh
|
||||||
mkdir -p bld/debug && cd bld/debug
|
mkdir -p bld/debug && cd bld/debug
|
||||||
|
```
|
||||||
|
|
||||||
Second, configure the build (if you intend to install it globally, you
|
Second, configure the build (if you intend to install it globally, you
|
||||||
might also want `--prefix=/usr`):
|
might also want `--prefix=/usr`):
|
||||||
|
```sh
|
||||||
meson --buildtype=debug ../..
|
meson --buildtype=debug ../..
|
||||||
|
```
|
||||||
|
|
||||||
Three, build it:
|
Three, build it:
|
||||||
|
```sh
|
||||||
ninja
|
ninja
|
||||||
|
```
|
||||||
|
|
||||||
You can now run it directly from the build directory:
|
You can now run it directly from the build directory:
|
||||||
|
```sh
|
||||||
./foot
|
./foot
|
||||||
|
```
|
||||||
|
|
||||||
But note that it will default to `TERM=foot`, and that this terminfo
|
But note that it will default to `TERM=foot`, and that this terminfo
|
||||||
has not been installed yet. However, most things should work with the
|
has not been installed yet. However, most things should work with the
|
||||||
`xterm-256color` terminfo:
|
`xterm-256color` terminfo:
|
||||||
|
```sh
|
||||||
./foot --term xterm-256color
|
./foot --term xterm-256color
|
||||||
|
```
|
||||||
|
|
||||||
But, I **recommend** you install the `foot` and `foot-direct` terminfo
|
But, I **recommend** you install the `foot` and `foot-direct` terminfo
|
||||||
files. You can either copy them manually (typically to
|
files. You can either copy them manually (typically to
|
||||||
`/usr/share/terminfo/f` - but this is dependens on the distro), or
|
`/usr/share/terminfo/f` - but this is dependens on the distro), or
|
||||||
just install everything:
|
just install everything:
|
||||||
|
```sh
|
||||||
ninja install
|
ninja install
|
||||||
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue