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

[Bug] Broken cyrillic input after exit. #2

Open
2a03 opened this issue Aug 15, 2016 · 3 comments
Open

[Bug] Broken cyrillic input after exit. #2

2a03 opened this issue Aug 15, 2016 · 3 comments
Assignees
Labels

Comments

@2a03
Copy link

2a03 commented Aug 15, 2016

Notes

System: Linux x86_64, vte 0.40.2, TERM is xterm-256color

Steps to reproduce

  • Start terminal.
  • Type in some cyrillics to verify that input is correct.
  • Run ksv with some file and corresponding template. Running without parameters doesn't trigger the bug.
  • Exit ksv.
  • Type in more cyrillics.

To fix

Aforementioned behaviour can be fixed by executing stty -brkint -istrip -echonl after running ksv.
Correct way to resolve this probably is saving terminal settings (e.g. output of system('stty -g')) on init and restoring them on exit or exception.

@GreyCat GreyCat self-assigned this Aug 15, 2016
@GreyCat
Copy link
Member

GreyCat commented Aug 15, 2016

Thanks! That's really an elusive bug :)
I wonder which ANSI sequence or tput call triggers these and which settings really get messed up...

@GreyCat
Copy link
Member

GreyCat commented Aug 15, 2016

Machine-readble

Using Konsole 16.04.2 / KF 5.16.0, TERM=xterm.

4100:5:bf:8a3b:3:1c:7f:15:4:0:1:0:11:13:1a:0:12:f:17:16:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 - before
4522:5:bf:8a7b:3:1c:7f:15:4:0:1:0:11:13:1a:0:12:f:17:16:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 - after

xterm:

4500:5:bf:8a3b:3:1c:7f:15:4:0:1:0:11:13:1a:0:12:f:17:16:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 - before
4522:5:bf:8a7b:3:1c:7f:15:4:0:1:0:11:13:1a:0:12:f:17:16:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 - after

Human readable

Konsole:

  • before:
speed 38400 baud; line = 0;
-brkint -imaxbel iutf8
  • after:
speed 38400 baud; line = 0;
-imaxbel iutf8
echonl

@2a03
Copy link
Author

2a03 commented Aug 15, 2016

Try stty -a.
This exact behaviour is triggered by istrip, other settings are restored just for the sake of completeness. :)

@GreyCat GreyCat added the bug label Sep 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants