Using pterm with WSL

From Flavio's wiki
Jump to: navigation, search

pterm is a terminal emulator based on PuTTY 's code. It's a nice replacement for the archaic Windows Console.

I'd like to run Windows Subsystem for Linux sessions inside pterm too, but WSL doesn't have an option to configure a which terminal to use, as far as I know.

pterm runs cmd.exe by default, but there's an undocumented[1] -e option[2] that allows you to run a different command. So if you want to run WSL inside pterm, use:

pterm -e wsl -d Debian --cd ~

References

  1. The entirety of pterm is currently undocumented, in fact.
  2. Look at the pterm source code!