nvm textual-terminal is fucking broken on EVERYTHING 😭

This commit is contained in:
SpookyDervish
2025-10-26 21:11:06 +11:00
parent 1f81caf29f
commit f991fb6994

12
main.py
View File

@@ -47,12 +47,12 @@ class Berry(App):
)
yield TextArea.code_editor(placeholder="This file is empty.", language="python", theme="css", id="code-editor", disabled=True)
if os.name == "nt":
#if os.name == "nt":
with Vertical(id="console-container"):
yield RichLog(id="console")
yield Input(placeholder="> ", id="console-input")
else:
yield Terminal(command="bash", id="terminal")
#else:
# yield Terminal(command="bash", id="terminal")
yield Footer()
@@ -275,10 +275,10 @@ class Berry(App):
self.switching = False
self.file_clicked = False
if os.name == "nt":
#if os.name == "nt":
self.query_one("#console").write("Run a command below.")
else:
self.query_one("#terminal").start()
#else:
# self.query_one("#terminal").start()
if __name__ == "__main__":