nvm textual-terminal is fucking broken on EVERYTHING 😭
This commit is contained in:
20
main.py
20
main.py
@@ -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)
|
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"):
|
with Vertical(id="console-container"):
|
||||||
yield RichLog(id="console")
|
yield RichLog(id="console")
|
||||||
yield Input(placeholder="> ", id="console-input")
|
yield Input(placeholder="> ", id="console-input")
|
||||||
else:
|
#else:
|
||||||
yield Terminal(command="bash", id="terminal")
|
# yield Terminal(command="bash", id="terminal")
|
||||||
|
|
||||||
yield Footer()
|
yield Footer()
|
||||||
|
|
||||||
@@ -275,10 +275,10 @@ class Berry(App):
|
|||||||
self.switching = False
|
self.switching = False
|
||||||
self.file_clicked = False
|
self.file_clicked = False
|
||||||
|
|
||||||
if os.name == "nt":
|
#if os.name == "nt":
|
||||||
self.query_one("#console").write("Run a command below.")
|
self.query_one("#console").write("Run a command below.")
|
||||||
else:
|
#else:
|
||||||
self.query_one("#terminal").start()
|
# self.query_one("#terminal").start()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Reference in New Issue
Block a user