View Full Version : bash full screen
Jonny87
July 16th, 2011, 12:50 AM
Is there a command that can be placed with in a bash script that the script will open in a full screen terminal window each time it is run.
Bachstelze
July 16th, 2011, 01:10 AM
No. What would happen if such a script were run from a virtual console or hardware TTY? If you know which terminal emulator the script will use, there might be a command to make it full-screen, but it will only work on that particular terminal emulator.
papibe
July 16th, 2011, 01:12 AM
I don't know any bash control the size of the screen (curses maybe?).
But, you can do a trick: create a script that calls the gnome-terminal using full screen mode and run your script on it. Something like this:
#!/bin/bash
gnome-terminal --full-screen -e /path/to/your/script.sh
I would advice you to put a readline or pause at the end of your script, since the terminal will close as your script exits.
Hope it helps.
Jonny87
July 16th, 2011, 01:49 AM
I don't know any bash control the size of the screen (curses maybe?).
But, you can do a trick: create a script that calls the gnome-terminal using full screen mode and run your script on it. Something like this:
#!/bin/bash
gnome-terminal --full-screen -e /path/to/your/script.sh
I would advice you to put a readline or pause at the end of your script, since the terminal will close as your script exits.
Hope it helps.
Yea I was thinking it might be something like that, I was just looking for another option rather running another script. Thanks for ya help.
mikejonesey
July 16th, 2011, 02:36 PM
not sure if it's what your after but incase your not aware, you can change your bash profile to default to full screen so you don't require the extra peramiters...
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.