Nessesarius / mintty

Automatically exported from code.google.com/p/mintty
GNU General Public License v3.0
0 stars 0 forks source link

Open 'New' window with same size #275

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
Fixed: https://github.com/mintty/mintty/issues/275

Original comment by towom...@googlemail.com on 30 Jun 2015 at 10:49