The Linux Community Forum

Tech Zone => Programming => Topic started by: Keith on June 12, 2018, 08:27:29 pm

Title: Setting the terminal position
Post by: Keith on June 12, 2018, 08:27:29 pm
I have a script that I run from an exisitng terminal that changes, inter alia, the current terminal size.  But it would be nice also to reposition the terminal on the screen. 
I have found the command gnome-terminal --geometry COLSxROWS1+X+Y but this, as one might expect, opens a new terminal at the desired position. 

Is there a way to reposition the current terminal from within the script? 
Title: Re: Setting the terminal position
Post by: Mark Greaves (PCNetSpec) on June 13, 2018, 07:57:27 pm
So you don't mean screen position, you mean terminal SIZE ?

You also haven't mentioned distro/version/architecture .. or desktop environment
Title: Re: Setting the terminal position
Post by: Keith on June 13, 2018, 09:42:42 pm
Sorry once more:  This is a Lenovo Thinkpad T500 running Ubuntu 16.04 in Classic View.

Err, no:  I mean the position of the terminal window on the screen. 
I can change the size of the current (only) working terminal window (resize -s rows cols) and I want to change its position, too.  i.e. automatically, within the script, rather than manually moving the terminal window with the mouse. 
This isn't important, of course - it's just for tidiness.  And laziness.  And fun. 
Title: Re: Setting the terminal position
Post by: Mark Greaves (PCNetSpec) on June 14, 2018, 01:06:11 am
Ah I see .. but not that I know of :(
Title: Re: Setting the terminal position
Post by: Keith on June 14, 2018, 12:45:44 pm
Thanks anyway, Mark.    Sorry to have troubled you.

Keith
SimplePortal 2.3.3 © 2008-2010, SimplePortal