Fluentterminal: ConPTY support

Created on 13 Nov 2018  ยท  7Comments  ยท  Source: felixse/FluentTerminal

So 1809 is about to be rereleased and its time to work on some ConPTY awesomeness.
I created a branch Dev/ConPty where I started integrating it. Its based on @pingzing's ModernPseudoSh (many kudos).

Todo:

  • [x] Basic functionality
  • [x] Resize
  • [x] Handle shell exit
  • [x] pass startup directory
  • [x] hide backing console window
  • [x] detect conPTY availability and fallback to winPTY if necessary
  • [x] Communicate used pty to xterm.js so that we can enable the winPtyCompat addon if necessary
  • [ ] Investigate if we can add an option to start the shell process with admin rights

So if someone feels like playing around with ConPTY feel free to grab a task ๐Ÿ˜„

enhancement

Most helpful comment

image
Don't ask me whats going on with color 243

All 7 comments

image
Don't ask me whats going on with color 243

๐Ÿ˜ฒ Gimmie!

--
Hans Kokx
On 11/19/2018 10:03:19 AM, Felix notifications@github.com wrote:
[image] [https://user-images.githubusercontent.com/30559812/48715041-5b4bde80-ec14-11e8-800b-ef3de2c50c68.png]
Don't ask me whats going on with color 243
โ€”
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub [https://github.com/felixse/FluentTerminal/issues/128#issuecomment-439922949], or mute the thread [https://github.com/notifications/unsubscribe-auth/AB0sbyxw7f_UGikxfU_2G9apgpUZPqU6ks5uwsg3gaJpZM4Ycl8U].

Awesome. Can't wait to use it. It is supposed to be a big step forward.

Investigate if we can add an option to start the shell process with admin rights

I don't think you can do this easily. The most straightforward way is to use UAC to start an elevated broker process, as per this issue. To get an elevated child process requires tricks like I've been experimenting with here. I've researched this a lot, and I'm always happy to discuss it or explore other options.

After enabling conPTY, I cannot pass Ctrl-A (or Ctrl-<somekey>) into the terminal (it is working with always use winpty chekced), that is, I cannot use key-binding with screen or other cli tools.

conPTY also caused scrolling text away in terminal when I changed the window of screen.

Awesome! ๐Ÿ‘ Is it possible to include both ConPTY and WinPTY support in the project, and chose to load either at runtime?


Two off-topic questions, what color scheme and what kind of bash shell are you using in the screenshot? (WSL, Cygwin, MinGW or something else?)

Awesome! ๐Ÿ‘ Is it possible to include both ConPTY and WinPTY support in the project, and chose to load either at runtime?

Yes, the next version will have a configuration to switch between both (winpty by default, conpty is not quite ready yet).

Two off-topic questions, what color scheme and what kind of bash shell are you using in the screenshot? (WSL, Cygwin, MinGW or something else?)

Thats' just an unaltered unbuntu 18.04 bash and my configuration

Was this page helpful?
0 / 5 - 0 ratings

Related issues

phamgiahung1368 picture phamgiahung1368  ยท  4Comments

hanskokx picture hanskokx  ยท  7Comments

Loreno10 picture Loreno10  ยท  5Comments

IamIpanda picture IamIpanda  ยท  6Comments

Riebart picture Riebart  ยท  4Comments