Use Windows PowerShell instead of pwsh 7 in demo
When pwsh 7 isn't installed it's hard to figure out what the problem is.
This commit is contained in:
+1
-1
@@ -60,7 +60,7 @@ function startServer() {
|
|||||||
const cols = parseInt(req.query.cols);
|
const cols = parseInt(req.query.cols);
|
||||||
const rows = parseInt(req.query.rows);
|
const rows = parseInt(req.query.rows);
|
||||||
const isWindows = process.platform === 'win32';
|
const isWindows = process.platform === 'win32';
|
||||||
const term = pty.spawn(isWindows ? 'pwsh.exe' : 'bash', [], {
|
const term = pty.spawn(isWindows ? 'powershell.exe' : 'bash', [], {
|
||||||
name: 'xterm-256color',
|
name: 'xterm-256color',
|
||||||
cols: cols ?? 80,
|
cols: cols ?? 80,
|
||||||
rows: rows ?? 24,
|
rows: rows ?? 24,
|
||||||
|
|||||||
Reference in New Issue
Block a user