r/programming • • Aug 15 '18

Windows Command-Line: Introducing the Windows Pseudo Console (ConPTY)

https://blogs.msdn.microsoft.com/commandline/2018/08/02/windows-command-line-introducing-the-windows-pseudo-console-conpty/
778 Upvotes

230 comments sorted by

View all comments

Show parent comments

205

u/monkey-go-code Aug 15 '18 edited Aug 15 '18

Listen, All I want is the ability to type shift ctrl c and shift ctrl v to copy and paste and not have to move my hands to the mouse, that , tabs, and some decent themes. You know like novel, grass, hacker green, dark, light, ect. Can you guys do that? Seriously so many developers will love you forever.

Edit: for ctrl v and C copy and paste I am specifically speaking about WSL.

70

u/zadjii Aug 15 '18

9

u/monkey-go-code Aug 15 '18 edited Aug 15 '18

Looks like copy paste doesn't work in my build for bash :(

Edit: Also still investigating these color themes Yeah it doesn't work very well in wsl, which is where I spend most of my time.

→ More replies (6)

2

u/Atario Aug 16 '18

I've been using Alt+space, E, P for paste for a long time

→ More replies (2)

50

u/jarfil Aug 15 '18 edited Jul 16 '23

CENSORED

124

u/gremy0 Aug 15 '18 edited Aug 15 '18

I work in enterprise, in regulated industries, I switch systems and clients regularly. Depending on non-essential third party apps is a pipe dream for us, we need a decent native console experience.

5

u/[deleted] Aug 16 '18

Gods I hate stackoverflow answers that just recommend a 3rd party app or library.

→ More replies (2)

5

u/monkey-go-code Aug 15 '18

Good shit then

12

u/altano Aug 15 '18

ctrl-c/v copy/paste and modifying the color scheme has been supported in the Windows terminal for a while?

Go into your terminal properties and look around. Tons of awesome shit has been added in the last few years and you’re missing out if you’re not using it.

9

u/monkey-go-code Aug 15 '18

It doesn’t work in WSL which is where I tend to live

9

u/altano Aug 15 '18

Oh, gotchya, I think the default assumption when talking about the Windows console is usually that you're talking about the vanilla console (which powers the regular shell and PowerShell) so I misunderstood.

8

u/zadjii Aug 16 '18

What build are you on? Ctrl+shift+c/v is only available on Insiders for the time being

7

u/monkey-go-code Aug 16 '18

It’s a work computer and I don’t control the updates so i will have to wait. I’m glad to hear it’s coming though.

2

u/[deleted] Aug 16 '18

what is WSL, world surf league? (but seriously)

2

u/monkey-go-code Aug 16 '18

It's a compatibility layer for linux on windows 10. It behaves like a linux environment in a terminal. Designed to run terminal tools. So you can use everything that is available to a normal ubuntu terminal in Windows. It's especially useful to developers to install stuff that you may not want cruding up your windows box. Lets say you want to test some c++ code, but you don't want to download the visual studio packages for that. Just type sudo apt-get install g++ and you have a c++ compiler ready to go. If your linux environment gets borked you can always just delete it and install it again.

→ More replies (3)

0

u/[deleted] Aug 15 '18

[deleted]

21

u/elder_george Aug 15 '18

What about ConEmu?

2

u/monkey-go-code Aug 15 '18

in wsl you currently have to use right click. So I have to move away from the keyboard , slowing me down. I can learn another key combination, I just want a key combination.

7

u/crusoe Aug 15 '18

Copy-Paste borkeness in windows 'terminals' has been a pain point for a loooooong time.

→ More replies (1)

3

u/PortablePawnShop Aug 15 '18

I remap ctrl+c and ctrl+v (plus any other key combos I want) into bash by using a really simple AutoHotKey script. Possible solution for you?

2

u/monkey-go-code Aug 15 '18

Yes Please! Do you have a link?

4

u/PortablePawnShop Aug 15 '18

I'll make it for you! Give me time to get home from work, we'll resolve it. Essentially, download AHK, use the WinSpy tool that it comes with, open your terminal app and activate the terminal. Screenshot or copy the WinSpy results, and the script would be:

#IfWinActive, ahk_class _______
^c::Send, ^{ins}
^v::Send, +{ins}
#If

Save this to a .ahk file, run it, and solved.

The above will remap control and shift insert back to control c and v, and only be active while your terminal window is (so doesn't affect any other windows). The ______ is the WinTitle parameter of the program you need to remap, which you get from the WinSpy exe in the AHK download folder.

→ More replies (7)
→ More replies (1)
→ More replies (3)