OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Applications => Topic started by: R.M. Klippstein on January 24, 2015, 02:57:29 am

Title: how to restore command prompt (window)?
Post by: R.M. Klippstein on January 24, 2015, 02:57:29 am
I was trying to figure out how to increase the size of the command prompt (window) and I've screwed it up now so when it is opened it comes up "full screen". Can't figure out how to restore it to normal operation. I would like to be able to adjust its size similar to how Linux does it, if possible. But looks like that's possibly not do-able. When compiling its just too small.
Thanks for any ideas.

klipp
Title: Re: how to restore command prompt (window)?
Post by: R.M. Klippstein on January 24, 2015, 03:36:26 am
Ignore this post, I figured out how to restore it! Sure would like to change the size of the window though, so more lines of code could be displayed in it.

klipp
Title: Re: how to restore command prompt (window)?
Post by: Dave Yeo on January 24, 2015, 04:06:05 am
Create a program object with * in the Path and file name field and /K "mode co80,100" in the Parameters field and give it a title such as Big Cmd Prompt or whatever. Clicking the object will open a 100 line cmd prompt
Adjust the mode command to suite, IIRC 103 lines is the maximum in a window
Title: Re: how to restore command prompt (window)?
Post by: Dave Yeo on January 24, 2015, 04:15:54 am
Another trick is to work in epm. Start epm, click the Shell button or under Command--> Create Command Shell. Use much like a regular cmd prompt. Long scrolling history of the shell and under Command-->Write to Shell you get a history of commands you entered.
Only problem is sometimes EPM gets confused after a lot of use.
Title: Re: how to restore command prompt (window)?
Post by: Andi B. on January 24, 2015, 11:34:08 am
My * object setting is
Code: [Select]
/c mode 81,101 & p:\4os2\4os2.exe @p:\4os2\4os2.ini p:\4os2\4start.cmdwith working directory set to root of boot partition.
Title: Re: how to restore command prompt (window)?
Post by: R.M. Klippstein on January 24, 2015, 10:38:20 pm
Hey! BIG thanks to both of you!  It's made life much easier when compiling.

klipp
Title: Re: how to restore command prompt (window)?
Post by: Andreas Schnellbacher on January 25, 2015, 12:13:18 am
Only problem is sometimes EPM gets confused after a lot of use.
Yes, there must exist a memory leak in EPM. It also crashes after loading (and unloading) of several hundred small files. Additionally, the file size for one loaded file is limited to about 60 MiB.

Its command shell mode is useful for 'make' calls. Note that the Vio functions don't work in PM mode. Therefore in some cases which require user interaction, e.g. for Yum, the return key has to be pressed blindly to let the waiting program proceed. ANSI escape sequences would make the output quite unreadable. They are filtered out in NEPMD > 1.00.