Sample Header Ad - 728x90

bash: take exclusive control of the console/tty

1 vote
2 answers
58 views
I have a script which implements a simple menu using dialog (an ncurses app for generating TUI widgets). This runs immediately after boot on an Arch-based system. The dialog script works when standalone, but there's a problem when it's run after boot. The boot process writes some delayed output to the console ("Starting network manager script dispatcher service", and possibly a later timeout), and this writes over the menu, and messes up the tty modes. I can fix the tty mode (stty sane), but I also need to stop the text reaching the console. Is there some way I can dump any kernel console output from the script?
Asked by QF0 (391 rep)
Apr 11, 2025, 10:13 AM
Last activity: Apr 14, 2025, 06:22 PM