Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

404 B
Raw Blame
export {
  stripAnsi,
  clean,
  cellWidth,
  fitCells,
  paneWidths,
  border,
  paneRow,
  compose,
  windowFor,
} from "../tui/cells.mjs";

export function maxPaneCount(cols) {
  return cols >= 132 ? 4 : cols >= 92 ? 3 : cols >= 68 ? 2 : 1;
}

export function visibleColumns(columns, cols) {
  const count = Math.max(1, Math.min(maxPaneCount(cols), columns.length));
  return columns.slice(-count);
}