You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Windows Terminal now supports "bracketed paste mode" when in VT (Virtual Terminal) Mode. This will allow Windows users to paste into the Julia REPL with text beginning with "julia>", which will then be removed from the input. This feature already exists for Linux and macOS users. (It probably works for the one FreeBSD user too).
julia>get_input_console_mode() # Virtual terminal input is not enabled by default on Windows0x00000007
julia>5+5# copied the line before the comment10
julia>readline() # pasted the line
julia>5+5"julia> 5+5"
julia>beginenable_bracketed_paste()
enable_virtual_terminal_input()
@info""get_input_console_mode()
readline() # pasted the same lineend
┌ Info:
│ get_input_console_mode() =519
└ @ Main REPL[12]:4^[[200~julia>5+5^[[201~"\e[200~julia> 5+5\e[201~"
julia>get_input_console_mode() # something keeps resetting the input console mode0x00000007
Something seems to keep resetting the input console mode. The follow calls lead to SetConsoleMode.
I tested the nightly from a few weeks ago (well after #57132's merging) on Windows Terminal(Version: 1.22.11141.0), and unfortunately it hasn't been fixed. That PR adds ENABLE_VIRTUAL_TERMINAL_PROCESSING which is for controlling the output processing, whereas this one needs ENABLE_VIRTUAL_TERMINAL_INPUT as mentioned above.
Uh oh!
There was an error while loading. Please reload this page.
Windows Terminal now supports "bracketed paste mode" when in VT (Virtual Terminal) Mode. This will allow Windows users to paste into the Julia REPL with text beginning with "julia>", which will then be removed from the input. This feature already exists for Linux and macOS users. (It probably works for the one FreeBSD user too).
Here is where the work was done to enable this in Windows:
https://devblogs.microsoft.com/commandline/windows-terminal-preview-1-18-release/
microsoft/terminal#15155
To enable virtual terminal input, use
SetConsoleMode
withENABLE_VIRTUAL_TERMINAL_INPUT
.Here is a demonstrating, starting with some setup.
Here's how it can be used.
Something seems to keep resetting the input console mode. The follow calls lead to
SetConsoleMode
.uv_tty_set_mode
callsSetConsoleMode
.jl_uv_flush_close_callback
] (julia/src/jl_uv.c
Line 228 in 912460b
uv_tty_set_mode
init_stdio_handle
callsuv_tty_set_mode
jl_tty_set_mode
callsuv_tty_set_mode
The text was updated successfully, but these errors were encountered: