Re: Discovering the keycode of key.

2014-12-27 Thread Joel Rees
2014/12/27 13:33 Eduardo Lopes dud...@gmail.com:

 Joel Rees joel.rees at gmail.com writes:

 
  showkey doesn't seem to be on my machine, but xev is.
 
  Is xev part of the standard X11 install?
 

 Yes, xev is part of Xenocara, but I don´t think the keycodes on X
correlates
 to that on wsconsctl, do they?

there was a thread somewhere back there this last week about keymaps that
might be of interest. Henrique got offended about having to look at source
code and complained about having to compile the kernel, which was either a
misunderstanding or deliberately taking things out of proportion. But it
might help you, too.

(No, I don't know the answer to your question. You could find out,
'though.)

Joel Rees

Computer memory is just fancy paper,
CPUs just fancy pens.
All is a stream of text
flowing from the past into the future.



Re: Discovering the keycode of key.

2014-12-27 Thread Eduardo Lopes
Joel Rees joel.rees at gmail.com writes:

there was a thread somewhere back there this last week about keymaps that
might be of interest. Henrique got offended about having to look at source
code and complained about having to compile the kernel, which was either a
misunderstanding or deliberately taking things out of proportion. But it
might help you, too.

(No, I don't know the answer to your question. You could find out,
'though.)

Thanks anyway, but I've read that thread before asking this. It really
helped, but not with this particular matter.

thanks

Eduardo Lopes



Re: Discovering the keycode of key.

2014-12-27 Thread Mats O Jansson
On Fri, 26 Dec 2014, Eduardo Lopes wrote:

 Hello folks! 
 
 May someone point to me how do I can obtain, in the console, the keycode of 
 any particular key, in OpenBSD?

There is no easy way. If you are intrested in unmapped keys you could use
the following script to map all unmapped characters.

#!/bin/ksh
jot 255 1 |
while read i; do
  str=`wsconsctl keyboard.map | grep ^keycode ${i} = `
  if [ $str =  ]; then
j=`printf %03d $i`
d0=${j%[0-9][0-9]}
k=${j#[0-9]}
d1=${k%[0-9]}
d2=${j#[0-9][0-9]}
`wsconsctl keyboard.map+=keycode $j = $d0 $d1 $d2 at`
echo $s
  fi
done

If you test a previously unmapped key unshifted shifted and alt gr
you should get tree digits which would be the decimal keycode of that
key.

if you dump keyboard.map after the script has been executed you should
find lines like

keycode 96 = 0 9 6 at

-moj 

 thanks
 
 Eduardo Lopes.



Re: Discovering the keycode of key.

2014-12-26 Thread Joel Rees
On Fri, Dec 26, 2014 at 1:58 PM, Eduardo Lopes dud...@gmail.com wrote:
 Hello folks!

 May someone point to me how do I can obtain, in the console, the keycode of
 any particular key, in OpenBSD?

 thanks

 Eduardo Lopes.


showkey doesn't seem to be on my machine, but xev is.

Is xev part of the standard X11 install?

-- 
Joel Rees

Be careful when you look at conspiracy.
Look first in your own heart,
and ask yourself if you are not your own worst enemy.
Arm yourself with knowledge of yourself, as well.



Re: Discovering the keycode of key.

2014-12-26 Thread Eduardo Lopes
Joel Rees joel.rees at gmail.com writes:

 
 showkey doesn't seem to be on my machine, but xev is.
 
 Is xev part of the standard X11 install?
 

Yes, xev is part of Xenocara, but I don´t think the keycodes on X correlates 
to that on wsconsctl, do they?



Discovering the keycode of key.

2014-12-25 Thread Eduardo Lopes
Hello folks! 

May someone point to me how do I can obtain, in the console, the keycode of 
any particular key, in OpenBSD?

thanks

Eduardo Lopes.



Re: Discovering the keycode of key.

2014-12-25 Thread Jack Woehr

Eduardo Lopes wrote:

May someone point to me how do I can obtain, in the console, the keycode of
any particular key, in OpenBSD?


in gforth (a port) you can do  KEY .

--
Jack Woehr   # There's too much emphasis on things
Box 51, Golden CO 80402  #  like pawn structure in modern chess.
http://www.softwoehr.com #  Checkmate ends the game. - N. Short