I'm looking for finer granularity than the 20 ANSI escape sequence screen modes. What I'd like to do is have the terminal increase it's own height when I have to show the user a long menu.
Platform is Cygwin 64 running over Win 7 Pro.
Mike
I'm looking for finer granularity than the 20 ANSI escape sequence screen modes. What I'd like to do is have the terminal increase it's own height when I have to show the user a long menu.
Platform is Cygwin 64 running over Win 7 Pro.
Mike
You could start another terminal window and define its size by options.
Other than that, best you could achieve, is to virtualy de-/increase width/columns. (COLUMNS=30)
terminal-appnamel --geometry=240x50
hth
This worth a try if it is rows and columns.
#!/bin/bash
# Set window size down to 66 cols x 32 rows, not tested on mintty but worth a try...
printf "\x1B[8;32;66t"
# Write into the title bar; this DOES work on mintty...
printf "\x1B]0;This is a title name.\x07"
EDIT:
ALSO...
You could put either or both those two lines into your .bash_profile
as CygWin uses bash by default.
Assuming mintty can accept the first 'printf' line then it will start up with your choice of rows and columns.
EDIT 2:
The above edit works on 64 bit cygwin using Windows 8.1.
Thanks but does not work in mintty.
---------- Post updated at 02:42 PM ---------- Previous update was at 02:41 PM ----------
[quote=wisecracker;302944157]
This worth a try if it is rows and columns.
#!/bin/bash
# Set window size down to 66 cols x 32 rows, not tested on mintty but worth a try...
printf "\x1B[8;32;66t"
# Write into the title bar; this DOES work on mintty...
printf "\x1B]0;This is a title name.\x07"
Both work on mintty. Thank you. Where can I learn more about these sequences? I have not seen widow size or title bar documented anywhere and wonder how many more there are.
Mike