Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open 'New' window with same size #275

Closed
GoogleCodeExporter opened this issue Jun 4, 2015 · 1 comment
Closed

Open 'New' window with same size #275

GoogleCodeExporter opened this issue Jun 4, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

When starting a new mintty instance with the 'New' window menu command (or its 
Alt+F2 or Ctrl+Shift+N shortcuts), it might be useful for it to start with the 
same size as the window it's spawned from.

(See also issue 273.)

Original issue reported on code.google.com by andy.koppe on 22 Jun 2011 at 5:27

@GoogleCodeExporter
Copy link
Author

The following script, called e.g. dupterm, would also clone the current window, 
and its working directory (which Alt-F2 does not clone):

#! /bin/sh

#cols=`stty -a | sed -e "s,.*columns *=* *\([0-9]*\).*,\1," -e t -e d`
#rows=`stty -a | sed -e "s,.*rows *=* *\([0-9]*\).*,\1," -e t -e d`
set - `stty size`
cols=$2
rows=$1
run mintty -s $cols,$rows

Original comment by towom...@googlemail.com on 28 Dec 2012 at 4:49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants