Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

Ensure terminal uses monospace font (#4727)

vincent d warmerdam8b4d05c201d1
diff --git a/frontend/src/components/terminal/terminal.tsx b/frontend/src/components/terminal/terminal.tsx
index eaaa0948ca..ce75967e43 100644
--- a/frontend/src/components/terminal/terminal.tsx
+++ b/frontend/src/components/terminal/terminal.tsx
@@ -15,7 +15,11 @@ const TerminalComponent: React.FC<{
// eslint-disable-next-line react/hook-use-state
const [{ terminal, fitAddon }] = useState(() => {
// Create a new terminal instance
- const term = new Terminal({});
+ const term = new Terminal({
+ fontFamily:
+ "Menlo, DejaVu Sans Mono, Consolas, Lucida Console, monospace",
+ fontSize: 14,
+ });
const fitAddon = new FitAddon();
term.loadAddon(fitAddon);
return { terminal: term, fitAddon };
diff --git a/frontend/src/components/terminal/xterm.css b/frontend/src/components/terminal/xterm.css
index e11f627fbe..de1a06ff7c 100644
--- a/frontend/src/components/terminal/xterm.css
+++ b/frontend/src/components/terminal/xterm.css
@@ -1,7 +1,3 @@
.xterm {
padding: .5rem;
}
-
-.xterm-rows {
- font-family: var(--marimo-monospace-font) !important;
-}