I have found this answer providing how to manipulate the current xterm window's dimensions, ie:

echo -ne "\e[8;30;30t"

How can I modify this to maximize the window (xterm's alt + enter shortcut)?

Also, where do I find more info on these xterm command line modifiers?


See multiple solutions below for both maximize and full screen (without title and borders)


2 Answers 2


The commands are

echo -ne '\e[9;1t'

to maximize and

echo -ne '\e[9;0t'

to restore the original size. It's described in the xterm control sequences documentation.

  • Thanks Uwe. I needed to use 10 for maximizing. I don't need to restore the size after. Actually, what yours does is spread the xterm window over all 3 of my windows, not just the monitor it is on.
    – ljs.dev
    Commented Nov 2, 2013 at 0:29
  • Semantics, I had asked for "Maximize" which your answer I think is correct for. What I was looking for (kind of mentioned in question) was the shortcut for full screen, which is the 10 code. I'll award you the answer as it was first with the best information and leave mine for reference.
    – ljs.dev
    Commented Nov 2, 2013 at 0:33

The supplied answer from Uwe did not work for me, but this did:

echo -ne "\e[10;2;t"

From this page.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .