问题标签 [windows-terminal]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
478 浏览

vim - 如何在 Windows Terminal Preview 中运行的 vim 中重新绑定 ctrl-space?

因此,似乎 ctrl-space 被 Windows 终端错误地转换为 ctrl-@ ,我想知道是否有任何解决方法?我已经为其他终端看到了类似问题的答案,但它们似乎不起作用。

0 投票
1 回答
5508 浏览

windows - 设置 Windows 终端的默认位置(预览版)

打开 Windows 终端(预览版)时,部分窗口位于任务栏下方。当我将应用程序窗口移动到屏幕上的所需位置并重新打开应用程序时,它不在之前通过拖动窗口设置的位置。

profile.json 设置文件中,没有设置默认窗口位置的选项。

如何保持上一个会话的窗口位置,因为我不想每次打开应用程序时都拖动窗口?

0 投票
1 回答
601 浏览

powershell - Windows 终端无法识别文件重定向的“<”运算符

我正在尝试编写一个程序,我必须使用文件重定向来从另一个文本文件中输入 cin 文本。我看到我应该能够使用 .\a.exe < inputFile.txt,但无论出于何种原因,我的 Windows 终端都无法识别“<”。这是我得到的错误:

我不知道为什么它无法识别它,我也不知道如何解决它。

0 投票
1 回答
203 浏览

windows-terminal - How can I reorder panes in Windows Terminal?

I had my terminal set up with two panes. Like this:

[A|B]

I accidentally Ctrl+C'd a process running in the pane to the left, which results in the pane getting closed. When I split again, my new pane comes to the right. So that my setup becomes:

[B|A]

Is there anyway to restore the setup I had initially without cancelling the process running in B?

0 投票
2 回答
768 浏览

windows-terminal - 如何在 Windows 终端预览中真正禁用 ctrl+shift+箭头键?

每次我尝试使用ctrl-shift-upctrl-shift-down在新的 Windows 终端预览中,它都会向上或向下滚动终端视图。我尝试进入profiles.json文件并将 and 设置"command" : "scrollDown""command" : "scrollUp""unbound"没有效果。

如果我尝试绑定scollUp到其他东西,比如说ctrl+alt+b,那么它会正确地将键绑定添加到命令中。似乎有一个默认的 Windows 键绑定设置为使用ctrl+shift+arrows.

0 投票
0 回答
562 浏览

powershell - Windows 终端调整大小

我发现新控制台的底部经常被推离屏幕底部,所以我将下面的内容放入我的 $Profile 来解决这个问题。我尝试开始使用新的 Windows 终端进行 PowerShell 工作,并发现我使用的控制台大小调整工具都不像此功能。虽然这是有道理的(因为它不是 PowerShell 控制台!),但人们在使用 Windows 终端时显然会想要解决此问题(我发现新的 Windows 终端通常部分位于屏幕底部的相同问题)。

有没有人找到$host.UI.RawUI.我们可以用来调整/移动新的 Windows 终端应用程序的解决方法?

0 投票
2 回答
955 浏览

javascript - 如何检测是否在新的 Windows 终端中运行?

Windows 终端预览版即将推出的一项功能是它具有完整的表情符号支持:

在 Windows 终端中运行的 Windows Powershell

相比:

Windows Powershell

在 Node.js 中,如何检测我是否在由 Windows 终端包装的终端中运行,而不是在其“裸”变体中运行?是否有我可以提取的环境变量或我可以做的同步测试?

0 投票
1 回答
2864 浏览

powershell-core - PowerShell Core 可以使用 Windows 终端而不是 pwsh.exe 控制台吗?

默认的 PowerShell Core (pwsh.exe) 控制台看起来就像命令提示符 (cmd.exe) 控制台。此外,PowerShell Core 控制台也有同样的限制,即不能正确显示外来字符(例如:韩语、日语等),除非我更改了我不想这样做的字体。另一方面,Windows 终端可以正确显示外来字符,因为它默认使用 UTF-8。

我使用 AutoHotKey 启动 PowerShell 脚本 (.ps1),我想知道是否可以在 Windows 终端中打开该脚本并自动使用 PowerShell Core?我需要执行任何配置更改吗?

0 投票
2 回答
1533 浏览

windows - 在 Windows 终端预览中运行 Clink

是否有可能在Windows Terminal Preview中运行Clink


我尝试在设置中添加此条目:

但它会在新窗口中打开 Clink。

我认为clink.bat必须以某种方式进行修改,因为它启动 Clink:

0 投票
2 回答
5414 浏览

windows-terminal - 从 CLI 在 windows 终端的运行实例中打开一个新选项卡

有没有办法从 CLI 在 Windows 终端的运行实例中打开一个新选项卡并使其指向特定文件夹?

每次我运行wt.exe -d c:\my-folder它都会打开一个新窗口。