-
Notifications
You must be signed in to change notification settings - Fork 333
Terminal fixes #182
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
Terminal fixes #182
Conversation
void | ||
ProcessIncomingKeys(char * ansikey) | ||
{ | ||
wchar_t *buf = utf8_to_utf16(ansikey); | ||
|
||
int buf_len = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you declare those variables before calling utf8_to_utf16, so the check on return can be right after the call?
…e UNIX SSH Server
|
||
dwAttributes |= (ENABLE_ECHO_INPUT | ENABLE_LINE_INPUT | ENABLE_PROCESSED_INPUT); | ||
|
||
if (!SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), dwAttributes)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this?
If console attributes are changed, they need to be reset to their original once done.
Quick fix would be to save the original attributes and revert after ReadLine returns.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comments inline
Terminal code cleanup and control sequence handling..
Terminal fixes Win32-OpenSSH#799
Picking the user32/kernel32 from the systemdirectory.
Picking the user32/kernel32 from the systemdirectory Win32-OpenSSH#814
Console settings are not restored properly
console settings are not restored properly Win32-OpenSSH#813
Fix the clearscreen issue while connecting to non-windows (UNIX/LINUX) servers.
Clearscreen issue while connecting to unix ssh server Win32-OpenSSH#807
vi arrow keys are not working
vi arrow keys are not working while connected to unix ssh server Win32-OpenSSH#806
Fix the nopty unix ssh session.
ssh -T is not working when connected to unix ssh server Win32-OpenSSH#805
Fix emacs issue
emacs terminal problem Win32-OpenSSH#802