// learn · advanced

Split the process from the window

Why Terminal Delight never loses a prompt.

credit: Parker Brown

Parker's way
  1. Run each agent session as a process that lives apart from the window that draws it.
  2. Let the window attach and detach. Closing it should not kill the process.
  3. Reattach and the scrollback and your half typed prompt are still there.
  4. Trash bin a thread on purpose when it is done. Hygiene matters.
  5. On Omarchy, use Super C to copy so Control C never wipes your prompt.

← all workflows