Skip to content

Getting Started

Saumyadip edited this page Nov 6, 2026 · 4 revisions

Getting Started

Follow these steps to build, install, and run ananta for the first time.

🎬 Video coming here: A step-by-step walkthrough of this whole page, from download to your first pane.

Step 1 — Download or build

Option A: Install from a release (easiest)

curl -fsSL https://raw.githubusercontent.com/dip-bash/ananta/main/install.sh | bash
ananta --init

Option B: Build from source

You need Go 1.22 or newer.

git clone https://github.com/<you>/ananta
cd ananta
go mod tidy
make build

This produces a file called ananta in the current folder.

📸 Screenshot coming here: Terminal showing a successful make build. 🎬 Video coming here: Building ananta from source.

Step 2 — Create your config

Run:

./ananta --init

This writes two files to ~/.config/ananta/:

  • config.toml — your settings and key bindings
  • wallpaper.toml — the program that draws behind your panes

You do not need to edit anything yet. The built-in defaults work great.

📸 Screenshot coming here: The ~/.config/ananta/ folder with the two new files.

Step 3 — Start ananta

./ananta

This opens session "main". The first time, it starts a background server and attaches to it. You will see an empty workspace.

📸 Screenshot coming here: Ananta running for the first time, empty workspace with the hint text. 🎬 Video coming here: Starting ananta for the first time.

Step 4 — Your first minutes inside ananta

The default leader key is alt. All shortcuts are written as leader+<key>, so leader+enter means alt+enter.

Try these right away:

Press What happens
alt+enter Open a new pane (a new column)
alt+s Stack a new pane below the focused one
alt+h / alt+l / alt+j / alt+k Focus left / right / down / up
alt+1 … alt+9 Switch to workspace 1 … 9
alt+o Open the overview (see all workspaces at once)
alt+a Enter copy mode (vim-style selection)
alt+d Detach — the session keeps running
alt+Q Quit the session for good

📸 Screenshot coming here: Ananta with two panes open side by side. 🎬 Video coming here: Opening panes, moving focus, switching workspaces.

A tiny demo to try

Open a pane and run a command that keeps printing, so you can see scrollback in action:

  1. alt+enter — open a new pane
  2. Type yes and press Enter — the pane fills with y lines
  3. shift+pageup — scroll back through the history
  4. Type anything — you jump back to the live screen
  5. alt+d — detach
  6. Close your terminal
  7. Reopen a terminal and run ./ananta — your yes process is still running

📸 Screenshot coming here: A pane running yes, showing scrolling history. 🎬 Video coming here: The tiny demo above, start to finish.

Step 5 — Detach and come back later

Detaching is the superpower of ananta. Your programs keep running on the server even when no terminal is attached.

# From inside ananta:
alt+d        # detach; close your terminal if you want

# Later, from any terminal:
./ananta            # attach to "main"
./ananta -s work    # attach to session "work"
./ananta ls         # list all live sessions
./ananta kill work  # end a session and everything in it

📸 Screenshot coming here: Output of ananta ls showing sessions. 🎬 Video coming here: Detach, close terminal, reattach from a different terminal.

Step 6 — Control ananta from outside

You can drive a running session from any shell or script. The program always goes in double quotes, as one argument:

ananta open "htop" -n 3 -w 0.33    # htop in workspace 3, one third width
ananta open "tail -f /var/log/syslog" --below
ananta open "make watch" -k        # keep focus where it is
ananta workspace 3                 # switch view
ananta focus left                  # move focus
ananta width 50%                   # resize focused column
ananta send -e "make test"         # type into a pane, press Enter after
ananta close                       # close the focused pane
ananta list                        # list panes
ananta action overview             # run any action by name

📸 Screenshot coming here: Terminal running ananta open "htop" and ananta ls. 🎬 Video coming here: Controlling a running session from another terminal window.

Next steps

Now that you are up and running, dig deeper:


Tip: Press alt+/ inside ananta to open a scrollable help overlay that shows your current key bindings.

Clone this wiki locally