Skip to content
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

Send CTRL+S over ShellStream #1446

Open
maurodx opened this issue Jul 19, 2024 · 1 comment
Open

Send CTRL+S over ShellStream #1446

maurodx opened this issue Jul 19, 2024 · 1 comment

Comments

@maurodx
Copy link

maurodx commented Jul 19, 2024

I need to send special combination of CTRL+S in a ssh ShellStream in order to switch to CLI mode in a Siemens Ruggedcom switch.
Searching over web I found that CTRL+S can be translated to \u0019 but i'm not sure.
Using line
stream.Write("\u0019");
doesn't change shell context and
stream.Read();
returns empty string.

@Rob-Hague
Copy link
Collaborator

From reading https://datatracker.ietf.org/doc/html/rfc4254#section-8, you could try passing the terminalModeValues argument to CreateShellStream as

terminalModeValues: new Dictionary<TerminalModes, int> { [TerminalModes.VSTOP] = 0u } // don't know what the value should be

and see if that gets you anywhere

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants