How to pause debugging program in a loop?

You can configure what default shell in terminal.
Also you can configure many shells so that when you want a new shell you can get a wsl shell, powershell or cmd shell.

I did install Terminal App from the MS store. And when I run it from the start menu I get the Powershell. PS can’t even do a “dir” command which I use a lot. So I’m not sure PS is right for this instance.

I’m doing one tutorial no asyncio which may or may not solve my original problem which is: I just want to use CTRL-S to pause or CTRL-C to break into my Python program when it’s running.

Question. So what is the direct path to the Terminal program which is not Powershell? I can make a desktop shortcut to a .bat file to run terminal, set up my paths, and go to a default directory.

You must configure Terminal.

When you start Terminal you will have one open tab.
Next to that tab will be a + and a v. Click on the v and to get a menu.
Choose Setting. In Setting the first section is Startup.
In Startup you can select the Default Profile.
Set that to be Command Prompt. (I assume it is currently Windows PowerShell for you).

Ok, just so I understand this Terminal thing. I currently open a cmd.exe window and that runs a batch file to set up my path and go to the base directory of my python projects. My Target in the shortcut is C:\Windows\System32\cmd.exe /k c:\userxxx\addpath.bat

If I set up Terminal to be “Command prompt” that is different than running c:\windows\system32\cmd.exe?

Ok I ran Terminal with “Command Prompt”. I did echo %PATH% and my path seems all set up for Python, node.js, and some other stuff. But the window size and font size are a bit too big, as I have about 5 apps open when I program.

I will look for how to change the default font size and window size. There seem to be no settings for this under Themes.

I got Terminal installed with “Command Prompt” and it works! I made a new profile just for my Python projects as well and found the font size settings and window size settings.

And CTL-C and CTL-S works! If I break deep inside a system module I just enter “r” for return, until I reach my main program. And I pinned the terminal to my task bar.

I also made markdown instructions on how I did it. If you would like the instructions just ask in a DM.

Thanks for all your help everyone!

Great!

Terminal is an open source project that Microsoft is leading the development of.
In early build it only have a JSON config file.
They are slowly adding a Settings UI to allow for easy customisation.
Its worth a web searching if you cannot find out how to customise Terminal.
You may find that you need to add something to the JSON until the Settings UI catches up.

You can keep up with developments of Terminal in the blog Windows Command Line

1 Like