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
{{ message }}
This repository has been archived by the owner on May 1, 2024. It is now read-only.
I use Hyper with WSL and this plugin doesn't work with it (see #75). I'm trying to fix that but I come across one thing that is confusing me and I'm not sure how to proceed until I understand what is going on.
Why do we need to get the PID on SESSION_SET_XTERM_TITLE and then do nothing with it? I mean:
For SESSION_ADD we get the new session PID and invoke setCwd with that PID, makes sense.
For SESSION_SET_ACTIVE we get the active session PID (we could've switched tabs/panes) and invoke setCwd with that PID, makes sense.
For SESSION_ADD_DATA we don't get a new PID because it will be the same one as read before either by SESSION_ADD or SESSION_SET_ACTIVE and then invoke setCwd with the current saved PID, makes sense.
For SESSION_SET_XTERM_TITLE why do we need to get the active session PID? Especially when we don't even invoke setCwd with that PID... Either way, won't the PID on this event be the exact same one as read before either by SESSION_ADD or SESSION_SET_ACTIVE?
So, is handling SESSION_SET_XTERM_TITLE really needed? Do we really need to read the PID here? If so, why?
Would really like to understand this as I'm not sure how to proceed to fix #75 without understanding this bit of the code base.
The text was updated successfully, but these errors were encountered:
@j-f1 But why do we even need to fetch the PID in SESSION_ADD_DATA? The one we currently have when that event is dispatch should be the correct one, we don't need to fetch it again. What am I missing?
I use Hyper with WSL and this plugin doesn't work with it (see #75). I'm trying to fix that but I come across one thing that is confusing me and I'm not sure how to proceed until I understand what is going on.
Please take a look at:
Why do we need to get the PID on
SESSION_SET_XTERM_TITLE
and then do nothing with it? I mean:SESSION_ADD
we get the new session PID and invokesetCwd
with that PID, makes sense.SESSION_SET_ACTIVE
we get the active session PID (we could've switched tabs/panes) and invokesetCwd
with that PID, makes sense.SESSION_ADD_DATA
we don't get a new PID because it will be the same one as read before either bySESSION_ADD
orSESSION_SET_ACTIVE
and then invokesetCwd
with the current saved PID, makes sense.SESSION_SET_XTERM_TITLE
why do we need to get the active session PID? Especially when we don't even invokesetCwd
with that PID... Either way, won't the PID on this event be the exact same one as read before either bySESSION_ADD
orSESSION_SET_ACTIVE
?So, is handling
SESSION_SET_XTERM_TITLE
really needed? Do we really need to read the PID here? If so, why?Would really like to understand this as I'm not sure how to proceed to fix #75 without understanding this bit of the code base.
The text was updated successfully, but these errors were encountered: