How do I get a bash script to run in full screen when it's executed or how can I change the terminal size if I can't make it full screen?
How do I get a bash script to run in full screen when it's executed or how can I change the terminal size if I can't make it full screen?
"Fullscreen" isn't a bash concept at all, it's down to your terminal emulator window and X.
However if you're scripting, you can tell X to add a fullscreen hint to a client. I most applications this will work. I've tested with Terminator and I've no reason to suspect it won't work with Gnome Terminal:
With regard to keeping this at a minimum footprint, the only way I've found to do this is to launch another terminal. Unfortunately
lxterminal
doesn't have a fullscreen launch option so you could either hack through the OpenBox settings (beurgh) or just fall back toxterm
:Yeah, I'm suggesting launching another terminal. If you're shipping this with a launcher of sorts, you can avoid needing a secondary script.
xterm
doesn't adhere to standard fonts or anything like that though you can configure almost everything through command line arguments (seeman xterm
for a riveting read).Press F11 to make the terminal full screen. If you always want it full screen, you need to edit the .desktop file:
Create a new file, via gedit or similar in
/.local/share/applications
. Call itfsterminal.desktop
You can try if xterm escape sequences work for your terminal, e.g.
echo -ne "\e[8;XXX;YYYt"
resizes terminal to show XXX columns and YYY rowsecho -ne "\e[9;1t"
maximizes the terminal window (doesn't work for me)On my ubuntu 14.04 machine running unity,
echo -ne "\e[8;200;200"
resizes the terminal beyond screen edges effectively maximizing the window.