Using pterm with WSL

From Flavio's wiki
Revision as of 18:04, 29 November 2022 by Admin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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!