Expand description
fux: a terminal multiplexer that is a view over directories. A pane is a directory kept by one small process; a workspace is a folder of panes; the viewer and every other client only read and write files.
Constants§
- FORMAT
- The number a carrier of pane folders compares: raised when a reader of a folder written by the fux before would misread one this fux writes (a file’s meaning or shape changed, a file a reader needs gone), and not when a file is added.
- TERM_
PROGRAM - What
TERM_PROGRAMsays in a pane.
Functions§
- command
- One command line of fux’s, for a program that has fux under a word of its own (
koh fux start PATH -- sh):argsare the words after that word, the command’s own first (start), and no program’s name before it.startruns this program (its own file, not afuxthat is looked for) with the first wordholdto hold the pane: a program that carries fux gives its wordholdto fux too, the word and all that follows it. Called as amainis: before the process has a thread, and with nothing else for it to do (a command changes its working directory). The usage and what goes wrong sayfux, whatever the program is called. - is_name
- A name fux will make: letters, digits,
.,_and-, at most 64, not starting with.or-. - key
- The key at the start of what a terminal sent, as the viewer reads one: how many bytes it is, its
name (a key’s file’s:
C-],dot,paste-start; none for a sequence that is no key), and whether a key goes down with it. (In the kitty protocol’s forms a terminal tells of a key let go too, and of Shift or Ctrl by itself: those are no key going down.) None while more bytes are needed to tell; withwhole, no more are coming. For a program that has a key of its own on a terminal whose other keys are a pane’s: koh, which leaves a session by one. (The terminal’s words are no key: its mouse and its window’s focus no key going down, any other a sequence that is no key.) - lines
- The lines that end in what was
readof a FIFO, after what waskeptof one that had not ended. A line of overmostbytes, as they were read, is None: a byte past the bound says so, and the rest is not kept. - main
- The whole of
fuxas a program. - plain
- Text for a file a person reads with
cat: control characters become?. - replace
- Replaces a file in one step, so a reader sees the old one or the new one. The new one is put
together beside it, under
staging’s name for it, and does not stay there when it cannot be given its name. For a name that one writer writes: two at once would put theirs together under the one name (a holder is alone in its pane by its lock; a layout is written under its workspace’s). - run_of
- Which run a pane’s folder is of: the number in its
run, 128 random bits its holder wrote there once, as 32 hex digits. None if the name has anything but that file, to the byte (no file, a link, other digits, one more or fewer): a folder no holder of this fux made. - staging
- The name a file is put together under before it is given its own:
.NAME.newin the same folder (main/.screen.newformain/screen). A name that starts with a dot is no pane’s, no workspace’s and no fact’s: whoever lists a folder for what is in it passes it over. - stamp
- write_
new - Writes a file that is made for it: what had the name goes first, and the file is made only if nothing has the name then. So a link of that name is not written through (to make a file anew is never to follow a link), nor is a FIFO there waited at.
Type Aliases§
- Stamp
- What tells one writing of a file from the next: its number, its time and its length.