Skip to content

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

Merged
merged 15 commits into from
Jul 18, 2017
Merged

Terminal fixes #182

merged 15 commits into from
Jul 18, 2017

Conversation

bagajjal
Copy link

@bagajjal bagajjal commented Jul 6, 2017

  1. Terminal code cleanup and control sequence handling..
    Terminal fixes Win32-OpenSSH#799

  2. Picking the user32/kernel32 from the systemdirectory.
    Picking the user32/kernel32 from the systemdirectory Win32-OpenSSH#814

  3. Console settings are not restored properly
    console settings are not restored properly Win32-OpenSSH#813

  4. Fix the clearscreen issue while connecting to non-windows (UNIX/LINUX) servers.
    Clearscreen issue while connecting to unix ssh server Win32-OpenSSH#807

  5. vi arrow keys are not working
    vi arrow keys are not working while connected to unix ssh server Win32-OpenSSH#806

  6. Fix the nopty unix ssh session.
    ssh -T is not working when connected to unix ssh server Win32-OpenSSH#805

  7. Fix emacs issue
    emacs terminal problem Win32-OpenSSH#802

void
ProcessIncomingKeys(char * ansikey)
{
wchar_t *buf = utf8_to_utf16(ansikey);

int buf_len = 0;

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?


dwAttributes |= (ENABLE_ECHO_INPUT | ENABLE_LINE_INPUT | ENABLE_PROCESSED_INPUT);

if (!SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), dwAttributes))
Copy link

@manojampalam manojampalam Jul 18, 2017

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.

Copy link

@manojampalam manojampalam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comments inline

@manojampalam manojampalam merged commit 69ede6f into latestw_all Jul 18, 2017
@bagajjal bagajjal deleted the Terminal_fixes branch November 27, 2017 23:21
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

Successfully merging this pull request may close these issues.

4 participants