Skip to content

The Cat

vyeche edited this page Nov 30, 2026 · 13 revisions

The cat

Nine, in your sidebar

Nine, a drawn silver tabby (green eyes, a white bib and socks, a teal collar with a gold 9 tag), lives on the sidebar's floor under your tabs, all the time. She wears a little pink bow on her collar; if you'd rather Nine were a he, kitty-cat gender he (or Cat is in the settings list) gives him a plain collar (only the drawing changes: the cat talks as "I", and these pages say "it"). It:

  • blinks, and now and then winks, twitches an ear, flicks its tail or glances about;
  • now and then follows your mouse pointer with its eyes, like a cat: when you start moving it over your terminals after a rest, it notices about half the time and its pupils follow it (left, right, up, down or in between) for a few seconds, then it loses interest and looks back at you; its interest comes back after 20 seconds to a minute, and once in a while it glances at a pointer at rest. Walking, talking or asleep, it doesn't look;
  • walks a few steps along the floor every minute or so (never constantly), on a short round body with its head turned toward you, four short legs with white paws stepping in turn and its tail curled up behind it;
  • walks up to a tab that starts waiting for you (or just finished) and points at it with its paw: along the floor to the sidebar's right edge, crouches, then bounds up in a few quick, even hops, each one springing off fast and slowing to land on the next step, then straight on to the next (back down, each hop drops off slowly and lands quick). By the tab it is a size smaller (large becomes medium, medium becomes small): it shrinks smoothly while it crouches at the foot of the climb and grows back the same way once it has landed on the floor, so it is one size all the way up and down. It sits flush against the sidebar's right edge, its paw at the middle of the tab, so it hides as little of the tab's name and folder as it can;
  • hops and waves when a tab finishes, looks startled when one starts waiting;
  • naps from 23:00 to 06:00 when nothing needs you, and after 3 quiet minutes;
  • can be dragged: put it anywhere in the sidebar; it sits there a while, then walks home.

Nine on the sidebar: tab 4 waits for you with an amber ⚠ block and ⚠1 shows in the search row; Nine has hopped up the sidebar's right edge to tab 4 and points at it with its paw from the right edge, and its speech bubble below it says Psst, tab 4 “Migrate database schema” has a question. Go there?, with a Go there button

It is as big as the floating cat (128 px, as near as whole rows of text get: 6 rows at 20 px), or medium or small if you like (kitty-cat size, or Cat size in the settings list). It stays inside the sidebar. A busy sidebar makes it smaller first; it never takes the blank rows between tabs for the floor while they fit (only when kitty drops them anyway: Space between tabs), and when the tabs fill the sidebar it sits small at the end of + New tab, and with no room even for that (or on a kitty that can't show pictures in its sidebar) the cat face below is back. A new size takes effect at once, without the cat disappearing for a moment. While the experimental floating cat (cat-float.py) is out on your desktop, the sidebar's cat steps aside (only one Nine at a time) and comes back when it stops.

Click it and its speech bubble floats above it (and moves with it along the floor, clear of the sidebar's edges, as big as its words need). When Nine goes up to a tab it talks about, the bubble opens where it will be once Nine sits there and stays put while the cat walks and hops up to it (Nine passes in front of it on the way), and its tail comes when the cat arrives: nothing bobs. There it touches the cat, above or below it: never over the tab it points at, never over the tab you're in (where its × is) when a side keeps off it, and over as few other tabs' names as it can (a neighbour's folder line, empty rows or + New tab rather than your tabs). It is never slid away from the cat, so its tail never reaches across a tab. Where no side keeps off the first row of the tab you're in (by a tab near the top, or in a cramped sidebar), the bubble is made narrower, so that tab's × stays in sight and clickable. In it: what needs you first, then today's quest, a tip, a joke and a word of the day. Go there ↵ goes to the tab it's about, Next tip › (named after what comes next) moves on, × in the top right corner closes it, and a click anywhere else in the sidebar does too. The words come out a word at a time, the way it says them (a short line a little quicker, a short breath after a full stop or a comma), while its mouth moves with the syllables; the bubble keeps its size from the first word, so nothing jumps. The title is in the line's colour (amber needs you, red an error, green done…), deepened where needed so it reads at 5.5:1 or more on the bubble in both themes; the words are the terminal's own text colour, the count and × a quieter grey (still 4.5:1 or more). It walks forward through new lines and never repeats one it just said; at the end it says "That's all for now".

It speaks up by itself too, briefly: when a tab starts waiting or finishes, when you earn a badge, and now and then with a tip of the day. Each thing once (it remembers the last lines it said, a tip or joke not again the same day, news about a tab not again for 30 minutes unless something new happens), at most one line every 3 minutes, never while you're typing, gone a few seconds after its last word, and it never takes the focus. A line comes with a soft meow or mrrp (at the sounds' volume; muted with them, or alone with kitty-cat sounds off). With nothing new it stays quiet and just does cat things.

kitty-cat talk on | events | off   # how much it says by itself (events: only about your tabs; off: only when clicked)
kitty-cat sounds on | off          # its meows (on by default)
kitty-cat eyes on | off            # its eyes follow the mouse (on by default)
kitty-cat size large | medium | small   # how big it is (large: as big as the floating cat)
kitty-cat gender she | he          # she wears a little pink bow on her collar (the default); he, a plain one
kitty-cat off | on                 # hide the cat, or bring it back (at once, no restart)

The settings list (Ctrl+Shift+F2) has the same six rows: The cat, Cat size, Cat is, The cat talks, Cat sounds, Eyes follow the mouse.

Right-click it for a menu of its own, next to it (above it on the floor; it never covers the cat), each line showing what is set now with a ✓:

Line Does
Say something opens its bubble, as a click on it does
Talks ✓on events off how much it says by itself (kitty-cat talk)
Meows ✓on off its meows (kitty-cat sounds)
Eyes follow mouse ✓on off kitty-cat eyes
Size small medium ✓large kitty-cat size
Nine is ✓she he kitty-cat gender
Hide Nine kitty-cat off; ⚙ (The cat) or kitty-cat on brings it back
All cat settings… the settings list, as ⚙ does

Click a value (or an action) and it's done, and the menu closes; a click on a setting's name takes its next value. The keys work too while it's open: ↑/↓ choose a line, ←/→ a value on it, Enter does it. Esc, a click anywhere else, another window or 20 seconds close it without changing anything. A kitty shortcut (F1, Ctrl+Tab…) still runs, and closes the menu. Any other key closes it too and is dropped, held down or not (ordinary typing doesn't reach the terminal); what you type after that goes to the terminal as usual. Text from an input method (IME: Chinese, Japanese, compose sequences) is written to the terminal by kitty before NineLives sees it, so it can still get there while the menu is open. It writes the same files as kitty-cat and the settings list, so all three always agree. In a short or narrow sidebar the menu leaves out the hints, uses shorter names and puts the values on a line of their own; with even less room it drops the lines you need least (All cat settings… always stays). The cat face at the end of + New tab has the same menu.

How the eyes know where the pointer is: kitty tells the sidebar nothing about the pointer over it (except while you drag a tab or the cat), but every terminal window remembers the cell the pointer was last over. A few times a second the cat looks at those cells in the current tab; the window whose cell changed has the pointer. Its pupils are a small picture laid over the face (like its mouth), changed only when the way it looks changes, so an idle kitty does no more work than before. They show on the poses with open eyes looking ahead (sitting, an ear twitch, a tail flick, a wave); a blink, a wink, a glance, a hop or a nap has eyes of its own.

The cat face

When the sidebar is full (or Nine can't be drawn), a small cat face sits at the right end of the + New tab line instead. It sums up every tab at once, so a glance at one spot tells you whether anything wants you. The most important mood wins:

Face Colour Means
=O.O= ! amber, like ⚠ a tab needs you (2! = two tabs). The ! blinks at first, then stays
=^▽^=✦ gold you just earned a badge (♛ = a new rank)
=^ω^= ♪ green, like ✓ a tab just finished (♪♪, ♪♪♪: two or three in a row, each within 90 s)
=>.<= red, like ✗ something just failed
=^.^= ~ blue, like the spinner tabs are working (the tail swishes)
=^.^= ginger nothing going on (it blinks, and now and then winks, glances or flicks its tail)
=-.-= zZ lavender nothing has worked or waited for 3 minutes: it naps

The mood colours are the theme's palette colours, at least 3.9:1 on the sidebar in both themes. The palette has no orange, so the idle ginger is colour 130 of the 256 (#af5f00, the same in both themes): 3.3:1 on the dark sidebar and 3.6:1 on the light one. The face stays in one place while its extras (~, zZz, ♪♪♪) come and go.

"Needs you" always wins, even over a celebration.

It moves

The cat moves: short moves on top of its mood's face. Each move changes only its part of the face (the eyes, the mouth, a whisker, the tail), so two can play at once, like a blink in the middle of a tail flick. Moves last a few frames of 1/8 s.

Move Looks like How long When
blink =-.-= 1/8 s about once every 5 s: idle, working, happy or cheering
wink =^ω-= 0.6 s now and then, idle or working
glance =<.<=, =>.>= 1 s now and then, idle or working
whisker twitch ~^.^=, =^.^~ 1 s (twice) now and then, idle or working
tail flick =^.^= ~ - 1 s now and then, idle (working, the tail swishes anyway)
surprise ~OoO~ ! 0.5 s a tab starts waiting for you
hop, then a wave =>ω<= ♪, =^ω^/ ♪ 0.5 s + 1.1 s a tab finishes
cheer \^▽^/✦ 1.1 s you earn a badge
flinch ~>.<~ 0.75 s something fails

"Now and then" is a roll of the dice once a second: about 1 in 5 for a blink and 3 in 100 for one of the others, when nothing else is playing. A move belongs to its mood: a hop is skipped if a tab needs you at the same moment. While a tab needs you the cat only stares (=O.O= !), however long the wait, so a waiting kitty stays as still as before.

The sidebar is redrawn only when the face changes: never between moves (a blink costs two redraws, on and off), and not at all once the cat is fully asleep, so an idle kitty doesn't redraw at all.

At night

From 23:00 to 06:00 (your local time) the idle cat doesn't wait the 3 minutes: as soon as nothing works or waits it dozes off (z … zZz), and a minute later it holds still. Anything more important wakes it: a tab that needs you, finishes, fails or works, or a badge.

Ask the cat

Press Ctrl+Alt+C (or type ninelives cat in a shell, or click the cat face) and it comes out big over the current tab, drawn, with a speech bubble. It says what needs you first, then something for the day:

It says When Enter
Tab 7 "Migrate database schema to v2" needs you. Go there? a tab waits for you (Two tabs need you… for more; the one that started waiting last is named first) opens the tab named in the bubble
Tab 8 "Deploy to staging" hit an error. Go there? a tab failed goes there
Two tabs are done: tab 6 "Write release notes" and 9. Go to tab 6? tabs finished and you haven't looked yet goes to the first
Good afternoon! Nothing needs you right now. Two tabs are working. nothing waits, failed or finished the next line
You earned the Zoom Lens badge! ★ 5 of 16, rank House Cat. you earned a badge today the F1 sheet
Ctrl+Alt+Z zooms one pane to full size (again to go back). Try it once for the Zoom Lens badge. today's quest the F1 sheet
a tip, a joke and a word of the day last, each while there is one you haven't dismissed the next line

A long tab name is cut after a word ("Refactor the authentication…"), so a line stays a quick read. Here it always says it the plainest way; the sidebar's cat, speaking up by itself, takes turns with a few livelier ones (Psst, tab 7 "Migrate…" has a question., Ta-da! Tab 6 "Write release notes" finished., Hiss! Tab 8 "Deploy to staging" stopped with an error.), never the same words twice in a row, always naming the tab and what happened.

The tip comes from the same pool as the tips under your shell prompt; the joke and the word (a terminal word explained plainly, like socket or scrollback) are the cat's own. Each is picked by the date, so it stays the same all day and moves on to the next one tomorrow, round all the ones you haven't dismissed. Dismiss every tip (or joke, or word) with d and that card no longer shows.

Key Does
Enter what the bubble offers (go to the tab, open the F1 sheet), else the next line
→, n, Space the next line (the bubble's top right says which, 2/6)
←, p the one before
d don't suggest this one again (tips, jokes, words, the quest, a badge; not news about your tabs). Kept in ~/.local/state/ninelives/cat-helper-hidden: delete a line there to get it back
Esc, q close (so does Ctrl+Alt+C, or the × in the bubble's corner)

The buttons in the bubble are filled chips (the action in the accent colour, Next in the selection colour, × in the corner; in the sidebar's bubble the Next chip is a shade deeper so its edge shows on the card) and work with a click, and clicking the drawn cat gets the next line (it winks). In a narrow bubble the buttons take shorter words (Close × becomes ×, then Go ↵, Shortcuts ↵, ›), so none of them drops off; in a very short window the text gets shorter and the buttons stay.

While it's open it keeps an eye on your tabs (once a second): a tab that starts waiting makes it jump (and the bubble switches to it), a finished one makes it hop and wave. In between it blinks and now and then winks, twitches an ear, flicks its tail or glances, like the sidebar's cat; from 23:00 to 06:00 it dozes when nothing needs you. It makes no sound (the tabs' own sounds already tell you), and it only appears when you ask: it never pops up by itself.

The drawing is shown with kitty's graphics protocol, from small pictures that come with NineLives (cat/, 16 poses, a walk both ways, five mouths and eight ways of looking laid over the face, in three sizes, 96, 192 and 384 px, built by scripts/make-cat.py), so nothing extra needs installing. The helper shows the smallest that is at least as big as the cat on screen, so kitty only ever scales it down and it stays sharp with big text or on a 2× screen. The bubble's tail points at the cat: from its left side when the cat sits beside it; in a narrow window the cat sits above its bubble and the tail comes up from the bubble's top; in a very small one the bubble shows alone. kitty-cat off (or Hide Nine in its right-click menu) hides the sidebar's cat, so there is nothing to click; Ctrl+Alt+C still calls it.

kitty-cat          # show this list
kitty-cat off      # hide the cat (or: The cat, in the settings list, Ctrl+Shift+F2)
kitty-cat on       # bring it back

Clone this wiki locally