-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
[RFC] tui: job-control: use saved termios for pty jobs #6992
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
On startup, if running in a terminal, save the termios properties. Use the saved termios for `:terminal` and `jobstart()` pty jobs. This won't affect nvim spawned outside of a terminal. questions: - This affects `:terminal` and `jobstart({'pty':v:true})`. Should we be more conservative for `jobstart({'pty':v:true})` (e.g. pass NULL to forkpty() and let the OS defaults prevail)? - Note: `iutf8` would not be set in that case.
To give an opinion from my use-cases For me, being able to control As a minor opinion, I would prefer a known and documented group of termios settings for I agree that consistency between the users terminal and good idea! |
document termios defaults ref neovim#6992
document termios defaults ref neovim#6992
document termios defaults ref neovim#6992
document termios defaults ref neovim#6992
document termios defaults ref neovim#6992
document termios defaults ref neovim#6992
document termios defaults ref neovim#6992
document termios defaults ref neovim#6992
document termios defaults ref neovim#6992
document termios defaults ref neovim#6992
document termios defaults ref neovim#6992
doc: termios defaults. ref neovim#6992 doc: :help shell-powershell doc: provider: Python minimum version is 2.7, 3.4 doc: remove :!start special-case. neovim#5844 mention neovim#7917 change which accepts empty Array for Dictionary parameter
doc: termios defaults. ref neovim#6992 doc: :help shell-powershell doc: provider: Python minimum version is 2.7, 3.4 doc: remove :!start special-case. neovim#5844 doc: mention neovim#7917 change which accepts empty Array for Dictionary parameter doc: <Cmd> pseudokey doc: lmap change neovim#5658 doc: -s, -es
doc: termios defaults. ref neovim#6992 doc: :help shell-powershell doc: provider: Python minimum version is 2.7, 3.4 doc: remove :!start special-case. neovim#5844 doc: mention neovim#7917 change which accepts empty Array for Dictionary parameter doc: <Cmd> pseudokey doc: lmap change neovim#5658 doc: -s, -es
Related: #6938
The intention is to make
:terminal
more consistent with the user's actual terminal, to further eliminate "quirks". But this change also affectsjobstart(..., {'pty':v:true})
, not sure if that's a good idea.On startup, if running in a terminal, save the termios properties.
Use the saved termios for
:terminal
andjobstart()
pty jobs.This won't affect nvim spawned outside of a terminal.
questions:
:terminal
andjobstart(..., {'pty':v:true})
.Should we be more conservative for
jobstart(..., {'pty':v:true})
(e.g.pass NULL to forkpty() and let the OS defaults prevail)?
iutf8
would not be set in that case.jobstart(..., {'pty':v:true})
jobs, or at least a flag that controls whether termios is "inherited" or uses "sane defaults".cc @bfredl @oni-link @jdebp @jamessan @hardenedapple