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

Keyboard does not work with Linux KDE 5 #39

Closed
JohnBat26 opened this issue Jun 14, 2018 · 4 comments
Closed

Keyboard does not work with Linux KDE 5 #39

JohnBat26 opened this issue Jun 14, 2018 · 4 comments

Comments

@JohnBat26
Copy link

Hello
I'm trying to run observer_cli in KDE5 konsole.
Program starts normally, but it doesn't react at pressing any keys :(.
Why ?

@zhongwencool
Copy link
Owner

zhongwencool commented Jun 15, 2018

I don't have KDE5 environment to reproduce this.

  1. One possible way is
    You must enter ENTER button after every command, such as:
>observer_cli:start().
> press A   -> press enter  -> change to Application view.
  1. If the above doesn't work. please check the io:get_line/1 works on your KDE5.
$ erl 
> io:get_line("whatever:").
whatever:A ## press A ---> press enter 
>"A\n"

or

$iex
iex(1)> :io.get_line("whatever:")
whatever:A ## press A ---> press enter
"A\n"
  1. If io:get_line/1 works fine, please pay attention to case letters.
    image
    the last line always show which keys you had press, make sure the key is exact right. if the key does't match, It just ignore this input.

@JohnBat26
Copy link
Author

Hi. Thanks for quick answer!

3> io:get_line("whatever:").   
whatever:A
"A\n"
4> io:get_line("whatever:").
whatever:D
"D\n"
5> 

And I start observer_cli how:

 ./observer_cli host cookie

Thus I don't use iex or erl.

@zhongwencool
Copy link
Owner

All seems normal...

  1. Please try it in local shell mode to see if it's normal.
%% rebar3 project
rebar3 shell
1> observer_cli:start().
%% mix project
iex -S mix
iex(1)> :observer_cli.start
  1. If the above works fine, then try remote mode to see if it's normal.
    start a master node by:
erl -name test@127.0.0.1 -setcookie test
%% rebar3 project
rebar3 shell --name 'observer_cli@127.0.0.1'
1> observer_cli:start('test@127.0.0.1', 'test').
%% mix project
iex --name "observer_cli@127.0.0.1" -S mix
iex(1)> :observer_cli.start(:'test@127.0.0.1', :'test')
  1. If all works fine, the try the last one:
    start a master node by:
erl -name test@127.0.0.1 -setcookie test
./observer_cli test@127.0.0.1 test

@JohnBat26
Copy link
Author

Yes. It's clear for me now. I need press Enter atfer select target tab.
Thanks for awesome tool! 👍

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