mirror of
https://github.com/dredx/prole.git
synced 2026-09-24 15:44:33 +00:00
fix(installer, scripts): improve read-only text handling and streamline db password input
- Update `screen.py` to make text read-only using `state='disabled'`, while allowing text selection and copying. - Simplify `init_primary_domain.sh` by removing unnecessary local variable declaration for `db_pass`.
This commit is contained in:
parent
3a1f5ea444
commit
325d180e9e
@ -366,7 +366,7 @@ case "$ACTION" in
|
||||
initialize)
|
||||
ensure_tools
|
||||
# Read password from stdin if provided
|
||||
local db_pass=""
|
||||
db_pass=""
|
||||
if [[ ! -t 0 ]]; then
|
||||
read -r db_pass
|
||||
fi
|
||||
|
||||
@ -195,8 +195,8 @@ class TerminalConsole(ttk.Frame):
|
||||
self.scroll.pack(side='right', fill='y')
|
||||
self.text.pack(side='left', fill='both', expand=True)
|
||||
|
||||
# Make read-only by default
|
||||
self.text.bind("<Key>", lambda e: "break")
|
||||
# Make read-only by default but allow selection and copying
|
||||
self.text.configure(state='disabled')
|
||||
|
||||
def write(self, content: str):
|
||||
"""Append text to the console and scroll to the bottom."""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user