Discussion:
Default Window Size for OS/2 CMD Window
(too old to reply)
Elmer Fudd
2007-05-04 01:56:25 UTC
Permalink
How do I change the default window size in the program object for OS/2
CMD windows to be 80 columns x 50 rows rather than the default 80
columns x 25 rows?
Joe Negron
2007-05-04 06:33:37 UTC
Permalink
Post by Elmer Fudd
How do I change the default window size in the program object for OS/2
CMD windows to be 80 columns x 50 rows rather than the default 80
columns x 25 rows?
I use 4OS2 which supports a starup batch file (4start.btm) in which you
put the command to change the window size.

If you want to stay with CMD.EXE I think you can accomplish what you
want with the "/K" command line option - use it to run a batch file
which contains the command to change the window size.
--
------------------------------------------------------------------------
I love my country, but I sometimes fear my government.

War is good for business - invest your son.
--antiwar bumper sticker from the 1960s
------------------------------------------------------------------------
Joe Negron from Sheepshead Bay, Brooklyn, NY, USA
Sid Gale
2007-05-04 09:55:02 UTC
Permalink
Post by Elmer Fudd
How do I change the default window size in the program object for OS/2
CMD windows to be 80 columns x 50 rows rather than the default 80
columns x 25 rows?
Put /k mode 80,50% in the program object's Parameters entry field.
--
Regards

Sid Gale
Marcel Müller
2007-05-04 18:28:39 UTC
Permalink
Post by Sid Gale
Put /k mode 80,50% in the program object's Parameters entry field.
This part is working. But did someone mamage to get the window to start
without scroll-bars /and/ not allways in the upper left corner?

Unfortunately using /K mode... still starts the window as 80x25 first.
This effectively limits the window size if full screen is turned off.
With full screen as default the window resizes automatically but the
automatic window placement does no longer work.


Marcel
Bob Eager
2007-05-04 18:48:21 UTC
Permalink
On Fri, 4 May 2007 18:28:39 UTC, Marcel Müller
Post by Marcel Müller
Post by Sid Gale
Put /k mode 80,50% in the program object's Parameters entry field.
This part is working. But did someone mamage to get the window to start
without scroll-bars /and/ not allways in the upper left corner?
Start a window like that. Tnen resize and move it, while holding down
SHIFT. Close and re-open and see if that works.
--
Bob Eager
d***@swbell.net
2007-05-04 20:02:58 UTC
Permalink
Post by Marcel Müller
Post by Sid Gale
Put /k mode 80,50% in the program object's Parameters entry field.
This part is working. But did someone mamage to get the window to start
without scroll-bars /and/ not allways in the upper left corner?
Unfortunately using /K mode... still starts the window as 80x25 first.
This effectively limits the window size if full screen is turned off.
With full screen as default the window resizes automatically but the
automatic window placement does no longer work.
Marcel
I operate at a wide screen resolution (1440x900).

/k mode 80,50 brings up the command prompt without any scroll bar.

I thus set mine at

/k mode 80,75

This now adds a scroll bar to the right hand side of my command
prompt.

At this resolution, I like to set my font size at 14x8.

right click on the command prompt, select font size, and then select
"change". If you like what you see, then select the "save" button.

David
Steven Levine
2007-05-05 16:27:56 UTC
Permalink
Post by Marcel Müller
Unfortunately using /K mode... still starts the window as 80x25 first.
This effectively limits the window size if full screen is turned off.
With full screen as default the window resizes automatically but the
automatic window placement does no longer work.
This is a limitation of working with cmd.exe. FWIW, 4os2 allows window
size and position control from the command line

This is a snip from the script I use to do this kind of stuff

option //windowstate=standard
option //windowwidth=%CX //windowheight=%CY //windowx=%X
//windowy=%Y //windowstate=custom

The parameters are calculated on the fly.

There are a couple of other PM apps out there that can do this kind of
thing. Udesktop is one that comes to mind.

Steven
--
--------------------------------------------------------------------------------------------
Steven Levine <***@earthlink.bogus.net> MR2/ICE 3.00 beta 05 #10183
eCS/Warp/DIY/14.103a_W4 www.scoug.com irc.ca.webbnet.info #scoug (Wed 7pm PST)
--------------------------------------------------------------------------------------------
Don Hills
2007-05-04 09:12:10 UTC
Permalink
Post by Elmer Fudd
How do I change the default window size in the program object for OS/2
CMD windows to be 80 columns x 50 rows rather than the default 80
columns x 25 rows?
If you're running Warp 4 or above that by default opens command
windows in maximised mode, it's quite simple:

Open the Properties of the Command Window object.
In the "parameters" field there will be something like "/k cls" (without the
quotes). Change this to "/k mode 80,50" (without the quotes).

On Warp 3 and earlier, the window opens at the 80x25 dimensions size
with a scrollbar. You have to drag it open to full size. You can make
"maximised" the system default by shift-clicking the "maximise" button at
the top right of any command window. Remember that in many areas of OS/2,
holding down shift while doing an action results in the action becoming the
system-wide default for all instances of that object.
--
Don Hills (dmhills at attglobaldotnet) Wellington, New Zealand
"New interface closely resembles Presentation Manager,
preparing you for the wonders of OS/2!"
-- Advertisement on the box for Microsoft Windows 2.11 for 286
Elmer Fudd
2007-05-04 16:47:51 UTC
Permalink
Excellent, thank you!

On Fri, 04 May 2007 21:12:10 +1200, Don Hills wrote:

:>In article <***@news.verizon.net>,
:>"Elmer Fudd" <***@127.0.0.1> wrote:
:>>How do I change the default window size in the program object for OS/2
:>>CMD windows to be 80 columns x 50 rows rather than the default 80
:>>columns x 25 rows?
:>
:>If you're running Warp 4 or above that by default opens command
:>windows in maximised mode, it's quite simple:
:>
:>Open the Properties of the Command Window object.
:>In the "parameters" field there will be something like "/k cls" (without the
:>quotes). Change this to "/k mode 80,50" (without the quotes).
:>
:>On Warp 3 and earlier, the window opens at the 80x25 dimensions size
:>with a scrollbar. You have to drag it open to full size. You can make
:>"maximised" the system default by shift-clicking the "maximise" button at
:>the top right of any command window. Remember that in many areas of OS/2,
:>holding down shift while doing an action results in the action becoming the
:>system-wide default for all instances of that object.
:>
:>--
:>Don Hills (dmhills at attglobaldotnet) Wellington, New Zealand
:>"New interface closely resembles Presentation Manager,
:> preparing you for the wonders of OS/2!"
:> -- Advertisement on the box for Microsoft Windows 2.11 for 286
Shmuel (Seymour J.) Metz
2007-05-04 09:47:17 UTC
Permalink
In <***@news.verizon.net>, on
05/04/2007
Post by Elmer Fudd
How do I change the default window size in the program object for
OS/2 CMD windows to be 80 columns x 50 rows rather than the default
80 columns x 25 rows?
I use /K to set the size after it started, but I'd like to know how to
change the font size.
--
Shmuel (Seymour J.) Metz, SysProg and JOAT <http://patriot.net/~shmuel>

Unsolicited bulk E-mail subject to legal action. I reserve the
right to publicly post or ridicule any abusive E-mail. Reply to
domain Patriot dot net user shmuel+news to contact me. Do not
reply to ***@library.lspace.org
Hannes Hromadka
2007-05-06 15:59:05 UTC
Permalink
Post by Elmer Fudd
How do I change the default window size in the program object for OS/2
CMD windows to be 80 columns x 50 rows rather than the default 80
columns x 25 rows?
The latest version of OS/2 still support the use of a command file
to initialize the command sessions.

I have this line in my config.sys

SET OS2_SHELL=C:\OS2\CMD.EXE /K C:\os2tools\os2init.cmd

OS2INIT.cmd looks like this.

---
MODE 80,50
set PROMPT=[$R,$e[0;5;30;47m$e[K$p]
cls
---


Ciao, Hannes
--
Post by Elmer Fudd
Rust never sleeps (borrowed from Neil YOUNG) <<<
Continue reading on narkive:
Loading...