Author Topic: how to restore command prompt (window)?  (Read 2330 times)

R.M. Klippstein

  • Sr. Member
  • ****
  • Thank You
  • -Given: 1
  • -Receive: 4
  • Posts: 259
    • View Profile
how to restore command prompt (window)?
« 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

R.M. Klippstein

  • Sr. Member
  • ****
  • Thank You
  • -Given: 1
  • -Receive: 4
  • Posts: 259
    • View Profile
Re: how to restore command prompt (window)?
« Reply #1 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

Dave Yeo

  • Hero Member
  • *****
  • Thank You
  • -Given: 11
  • -Receive: 149
  • Posts: 2148
    • View Profile
Re: how to restore command prompt (window)?
« Reply #2 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

Dave Yeo

  • Hero Member
  • *****
  • Thank You
  • -Given: 11
  • -Receive: 149
  • Posts: 2148
    • View Profile
Re: how to restore command prompt (window)?
« Reply #3 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.

Andi B.

  • Sr. Member
  • ****
  • Thank You
  • -Given: 1
  • -Receive: 21
  • Posts: 441
    • View Profile
Re: how to restore command prompt (window)?
« Reply #4 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.

R.M. Klippstein

  • Sr. Member
  • ****
  • Thank You
  • -Given: 1
  • -Receive: 4
  • Posts: 259
    • View Profile
Re: how to restore command prompt (window)?
« Reply #5 on: January 24, 2015, 10:38:20 pm »
Hey! BIG thanks to both of you!  It's made life much easier when compiling.

klipp

Andreas Schnellbacher

  • Sr. Member
  • ****
  • Thank You
  • -Given: 1
  • -Receive: 24
  • Posts: 437
    • View Profile
Re: how to restore command prompt (window)?
« Reply #6 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.