A fast, lightweight and minimalistic Wayland terminal emulator
Find a file
Daniel Eklöf 52ece3592c
osc: implement "change color" commands
This implements OSC 4, 10, 11 - change <color>/foreground/background,
and their corresponding 'query' variant (which was already implemented
for OSC 10/11).

It also implements OSC 104, 110, 111 - reset
<color>/foreground/background.

Set corresponding terminfo entries to signal this support to clients.
2019-08-21 17:57:02 +02:00
doc doc: document how to specify command to execute instead of shell 2019-08-15 19:17:51 +02:00
.gitignore initial commit: maps an XDG toplevel window 2019-06-12 20:08:54 +02:00
.gitlab-ci.yml ci: need ncurses (for 'tic' - to generate terminfo) 2019-08-17 12:47:18 +02:00
base64.c base64: implement encode() 2019-07-19 14:19:42 +02:00
base64.h base64: implement encode() 2019-07-19 14:19:42 +02:00
commands.c scrollback: use scroll damage to speed up scrolling 2019-08-04 19:06:49 +02:00
commands.h scrollback: initial support for mouse scrolling 2019-07-10 09:15:37 +02:00
config.c render: replace all usage of cairo with pixman 2019-08-16 22:06:06 +02:00
config.h render: replace all usage of cairo with pixman 2019-08-16 22:06:06 +02:00
csi.c csi: move 256-color table into the terminal struct 2019-08-21 17:56:21 +02:00
csi.h performance improvements 2019-07-07 16:32:18 +02:00
font.c font: tentative support for BGR, V-RGB and V-BGR 2019-08-19 17:45:21 +02:00
font.h font: tentative support for BGR, V-RGB and V-BGR 2019-08-19 17:45:21 +02:00
foot.desktop Add .desktop file 2019-07-15 15:29:17 +02:00
foot.info osc: implement "change color" commands 2019-08-21 17:57:02 +02:00
footrc Add background alpha support 2019-08-15 18:15:43 +02:00
grid.c render: add a 'clean' bit to each cell; only render cells that aren't clean 2019-07-30 18:03:03 +02:00
grid.h grid: prefetch cells in grid_row() 2019-07-10 19:52:30 +02:00
input.c input: back out accidental commit of debug code 2019-08-19 21:18:43 +02:00
input.h input: mouse events 2019-07-05 10:44:57 +02:00
keymap.h keymap: add meta modifier mappings for keypad keys 2019-08-15 20:07:33 +02:00
LICENSE add license 2019-06-12 20:10:12 +02:00
log.c log: syslog: tag unused function arguments as unused 2019-07-30 21:50:08 +02:00
log.h initial commit: maps an XDG toplevel window 2019-06-12 20:08:54 +02:00
main.c csi: move 256-color table into the terminal struct 2019-08-21 17:56:21 +02:00
meson.build meson: remove unused wayland protocols 2019-08-17 12:02:05 +02:00
osc.c osc: implement "change color" commands 2019-08-21 17:57:02 +02:00
osc.h ocs: renamed parameter size -> required_size in osc_ensure_size() 2019-07-19 09:56:00 +02:00
PKGBUILD Remove all references to cairo; we now use pixman only 2019-08-16 22:11:22 +02:00
README.md README: subpixel antialiasing has been implemented 2019-08-18 17:41:49 +02:00
render.c render: multiply width/height with *new* scale factor, not old 2019-08-21 17:56:41 +02:00
render.h render: reload cursor theme when scale (may) have changed 2019-08-21 17:53:52 +02:00
selection.c selection: regression: last cell wasn't included in copied text 2019-08-10 20:22:02 +02:00
selection.h osc: implement copy/paste to/from primary 2019-08-09 21:27:51 +02:00
shm.c refactor: break out stride calculation to new function 2019-08-18 17:59:43 +02:00
shm.h shm/render: there's no need to have one pixman image per thread 2019-08-16 22:54:05 +02:00
slave.c main: allow user to override shell on the command line 2019-07-17 09:55:36 +02:00
slave.h main: allow user to override shell on the command line 2019-07-17 09:55:36 +02:00
stride.h refactor: break out stride calculation to new function 2019-08-18 17:59:43 +02:00
terminal.c csi: move 256-color table into the terminal struct 2019-08-21 17:56:21 +02:00
terminal.h csi: move 256-color table into the terminal struct 2019-08-21 17:56:21 +02:00
tllist.h initial commit: maps an XDG toplevel window 2019-06-12 20:08:54 +02:00
tokenize.c slave: break out command line tokenizer 2019-07-17 09:46:45 +02:00
tokenize.h slave: break out command line tokenizer 2019-07-17 09:46:45 +02:00
vt.c vt: remove support for urxvt 'extended' line drawing character set 2019-08-16 18:04:03 +02:00
vt.h vt: add vt_to_slave() 2019-07-15 15:42:00 +02:00

foot

foot is a fast Wayland terminal emulator.

Requirements

Running

  • fontconfig
  • freetype
  • pixman
  • wayland (client and cursor libraries)
  • xkbcommon

Building

In addition to the dev variant of the packages above, you need:

  • meson
  • ninja
  • wayland protocols
  • ncurses
  • scdoc

Fonts

foot supports all fonts that can be loaded by freetype, including bitmap fonts and color emoji fonts.

Foot uses its own font fallback mechanism, rather than relying on fontconfig's fallback. This is because fontconfig is quite bad at selecting fallback fonts suitable for a terminal (i.e. monospaced fonts).

Instead, foot allows you to specify a font fallback list, where each font can be configured independently (for example, you can configure the size for each font individually).

If a glyph cannot be found in any of the user configured fallback fonts, then fontconfig's list is used.

Shortcuts

At the moment, all shortcuts are hard coded and cannot be changed. It is not possible to define new key bindings.

Keyboard

  • shift+page up/down - scroll up/down in history
  • ctrl+shift+c - copy selected text to the clipboard
  • ctrl+shift+v - paste from clipboard

Mouse

  • left - single-click: drag to select; when released, the selected text is copied to the primary selection. Note that this feature is normally disabled whenever the client has enabled mouse tracking, but can be forced by holding shift.
  • left - double-click: selects the word (separated by spaces, period, comma, parenthesis etc) under the pointer. Hold ctrl to select everything under the pointer up to, and until, the next space characters.
  • left - triple-click: selects the entire row
  • middle - paste from primary selection