Re: [Emc-users] Keyboard options in 2.7.0.?

2015-09-13 Thread John Thornton
You don't type in the $ only xev and it works on Debian Wheezy.

JT

On 9/12/2015 6:41 AM, Martin Smith wrote:
> Thanks for your advice.
>
> When I tried $ xev in terminal I got command not found.
> I will ask a freind to guide me in terminal to follow  your advice.
>
> Martin
> -Ursprungligt meddelande-
> Från: Erik Christiansen [mailto:dva...@internode.on.net]
> Skickat: den 11 september 2015 11:39
> Till: emc-users@lists.sourceforge.net
> Ämne: Re: [Emc-users] Keyboard options in 2.7.0.?
>
> On 10.09.15 23:35, Martin Smith wrote:
>> I have  a Swedish keyboard installed. In 2.5.4 (Ubuntu) there is
>> Setting, Keyboard, Layout and Options where you can change key
>> behavior. In my case I could change comma (,) to dot (.) in the numeric 
>> keypad.
>> I would like to do the same change In 2.7.0 (Wheezy). It´s
>> inconvinient not having dot in the numeric keypad when running LCNC.
> Having not yet found fully documenting manpages for GUI stuff, I can only 
> advise on a more fundamental approach. Here, starting:
>
> $ xev
>
> then pressing '.' in the numeric keypad (yours will be labelled ','),
> gives:
>
> KeyPress event, serial 38, synthetic NO, window 0x301,
>  root 0x132, subw 0x0, time 585013, (142,317), root:(154,452),
>  state 0x0, keycode 91 (keysym 0xff9f, KP_Delete), same_screen YES,
>  XLookupString gives 0 bytes:
>  XmbLookupString gives 0 bytes:
>  XFilterEvent returns: False
>
> amongst its somewhat verbose output. (Look for "KeyPress event") Now we know 
> that the key is "keycode 91". In contrast, pressing the main keyboard '.' 
> gives:
>
> KeyPress event, serial 35, synthetic NO, window 0x301,
>  root 0x132, subw 0x0, time 1088960, (262,429), root:(274,564),
>  state 0x0, keycode 60 (keysym 0x2e, period), same_screen YES,
>  XLookupString gives 1 bytes: (2e) "."
>  XmbLookupString gives 1 bytes: (2e) "."
>  XFilterEvent returns: False
>
> revealing that its keysym is 0x2e, so your desired mapping is nothing more 
> than:
>
> $ xmodmap -e 'keycode 91 = 0x2e'
>
> To confirm the process here, where the numeric pad already generates a 
> period, I configured the reverse conversion:
>
> $ xmodmap -e 'keycode 91 = 0x2c'
>
> with the result that repeatedly whacking the numeric '.' key now emits:
>
> $ ,
>
> OK, how to automate that? The quickest is just to copy the xmodmap line to 
> your ~/.bashrc or ~/.profile. Or, if preferred, just the text inside the 
> quotes can be added to ~/.Xmodmap, instead, if that seems simpler.
> If, however, there are other times when you run Swedish applications, 
> requiring a decimal comma, then it might be more convenient to place the 
> xmodmap line in a wrapper shell function (or simple alias) around the command 
> you use to start LinuxCNC.
>
> What could give you more control than that?
>
> Erik
>
> --
> The meta-problem here is that the configuration wizard does all the approved 
> rituals (GUI with standardized clicky buttons, help popping up in a browser, 
> etc. etc.) but doesn't have the central attribute these are supposed to 
> achieve:
> discoverability. That is, the quality that every point in the interface has 
> prompts and actions attached to it from which you can learn what to do next.
> - Eric Raymond, in "The Luxury of 
> Ignorance."
>
> --
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
>
> --
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Keyboard options in 2.7.0.?

2015-09-13 Thread Erik Christiansen
On 13.09.15 05:22, John Thornton wrote:
> You don't type in the $ only xev and it works on Debian Wheezy.

Hell's bells ... old common knowledge has clearly become just old.
One of the first things learnt about the unix command line in the old
days, is that it has pretty much since the beginning been the most
common default for an ordinary user's prompt to be '$', while the root
prompt is '#'.¹ On all technical lists that I've encountered, it is the
habit to include the command line prompt as shorthand confirmation that
that is where the command is to be entered.

Strike me pink, next we'll be calling directories "folders"!

¹ Of course, the prompt may be changed at will. These days, mine is:

  erik@ratatosk:~$

  showing who I am currently, which host I'm on, and which directory I'm
  in. I.e.:

  $ su
  Password: 
  root@ratatosk:/home/erik#

Erik
(Who's just grateful we still have mailing lists, and are not forced to
use that Twitterface thing.)

-- 
Q: How does a Unix Guru do Sex ?
A: unzip;strip;touch;finger;mount;fsck;more;yes;umount;sleep

--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Keyboard options in 2.7.0.?

2015-09-12 Thread jrmitchellj .
I hope you all realize that the dollar sign is the prompt from the
computer, and should not be typed as part of the command you are trying to
execute.

Just a gentle reminder!

Ray

--J. Ray Mitchell Jr.
jrmitche...@gmail.com
(818)324-7573


The dogmas of the quiet past, are inadequate to the stormy present. The
occasion is piled high with difficulty, and we must rise with the occasion.
As our case is new, so we must think anew and act anew. We must disenthrall
ourselves, and then we shall save our country.*Abraham Lincoln
*, *Annual message
to Congress, December 1, 1862*
*16th president of US (1809 - 1865)*

On Sat, Sep 12, 2015 at 6:13 AM, Erik Christiansen 
wrote:

> On 12.09.15 13:41, Martin Smith wrote:
> > Thanks for your advice.
> >
> > When I tried $ xev in terminal I got command not found.
> > I will ask a freind to guide me in terminal to follow  your advice.
>
> Do you have /usr/bin in your path? When a new command isn't found, you
> can let the system tell you where it is:
>
> $ locate xev
> /usr/bin/xev
> /usr/share/man/man1/xev.1.gz
>
>
> The x in xev is a small clue to the fact that it is used in an X
> environment. Further, all the xmodmap stuff maps keys in the same
> environment. (If you have not booted into X, then the showkey command
> can instead be used to examine the codes sent by the keyboard.)
>
> But if you're using AXIS or similar, then you need the mapping I've
> suggested, and xev is useful for confirming the keycodes. The utility
> can be fetched with:
>
> $ sudo apt-get install x11-utils
>
> if it turns out you don't have it.
>
> Have you tried the suggested xmodmap command, simply by typing it into
> your terminal, to see if it does the job, as is? (I figure that
> keyboards might put out fairly consistent keycodes, otherwise replacing
> a keyboard would be a nightmare.)
>
> Erik
>
>
>
>
> --
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Keyboard options in 2.7.0.?

2015-09-12 Thread Martin Smith
Thanks for your advice. 

When I tried $ xev in terminal I got command not found.
I will ask a freind to guide me in terminal to follow  your advice.

Martin
-Ursprungligt meddelande-
Från: Erik Christiansen [mailto:dva...@internode.on.net] 
Skickat: den 11 september 2015 11:39
Till: emc-users@lists.sourceforge.net
Ämne: Re: [Emc-users] Keyboard options in 2.7.0.?

On 10.09.15 23:35, Martin Smith wrote:
> I have  a Swedish keyboard installed. In 2.5.4 (Ubuntu) there is 
> Setting, Keyboard, Layout and Options where you can change key 
> behavior. In my case I could change comma (,) to dot (.) in the numeric 
> keypad.
> I would like to do the same change In 2.7.0 (Wheezy). It´s 
> inconvinient not having dot in the numeric keypad when running LCNC.

Having not yet found fully documenting manpages for GUI stuff, I can only 
advise on a more fundamental approach. Here, starting:

$ xev

then pressing '.' in the numeric keypad (yours will be labelled ','),
gives:

KeyPress event, serial 38, synthetic NO, window 0x301,
root 0x132, subw 0x0, time 585013, (142,317), root:(154,452),
state 0x0, keycode 91 (keysym 0xff9f, KP_Delete), same_screen YES,
XLookupString gives 0 bytes: 
XmbLookupString gives 0 bytes: 
XFilterEvent returns: False

amongst its somewhat verbose output. (Look for "KeyPress event") Now we know 
that the key is "keycode 91". In contrast, pressing the main keyboard '.' gives:

KeyPress event, serial 35, synthetic NO, window 0x301,
root 0x132, subw 0x0, time 1088960, (262,429), root:(274,564),
state 0x0, keycode 60 (keysym 0x2e, period), same_screen YES,
XLookupString gives 1 bytes: (2e) "."
XmbLookupString gives 1 bytes: (2e) "."
XFilterEvent returns: False

revealing that its keysym is 0x2e, so your desired mapping is nothing more than:

$ xmodmap -e 'keycode 91 = 0x2e'

To confirm the process here, where the numeric pad already generates a period, 
I configured the reverse conversion:

$ xmodmap -e 'keycode 91 = 0x2c'

with the result that repeatedly whacking the numeric '.' key now emits:

$ ,

OK, how to automate that? The quickest is just to copy the xmodmap line to your 
~/.bashrc or ~/.profile. Or, if preferred, just the text inside the quotes can 
be added to ~/.Xmodmap, instead, if that seems simpler.
If, however, there are other times when you run Swedish applications, requiring 
a decimal comma, then it might be more convenient to place the xmodmap line in 
a wrapper shell function (or simple alias) around the command you use to start 
LinuxCNC.

What could give you more control than that?

Erik

--
The meta-problem here is that the configuration wizard does all the approved 
rituals (GUI with standardized clicky buttons, help popping up in a browser, 
etc. etc.) but doesn't have the central attribute these are supposed to achieve:
discoverability. That is, the quality that every point in the interface has 
prompts and actions attached to it from which you can learn what to do next.
   - Eric Raymond, in "The Luxury of Ignorance."

--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Keyboard options in 2.7.0.?

2015-09-12 Thread Erik Christiansen
On 12.09.15 13:41, Martin Smith wrote:
> Thanks for your advice. 
> 
> When I tried $ xev in terminal I got command not found.
> I will ask a freind to guide me in terminal to follow  your advice.

Do you have /usr/bin in your path? When a new command isn't found, you
can let the system tell you where it is:

$ locate xev
/usr/bin/xev
/usr/share/man/man1/xev.1.gz


The x in xev is a small clue to the fact that it is used in an X
environment. Further, all the xmodmap stuff maps keys in the same
environment. (If you have not booted into X, then the showkey command
can instead be used to examine the codes sent by the keyboard.)

But if you're using AXIS or similar, then you need the mapping I've
suggested, and xev is useful for confirming the keycodes. The utility
can be fetched with:

$ sudo apt-get install x11-utils

if it turns out you don't have it.

Have you tried the suggested xmodmap command, simply by typing it into
your terminal, to see if it does the job, as is? (I figure that
keyboards might put out fairly consistent keycodes, otherwise replacing
a keyboard would be a nightmare.)

Erik



--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Keyboard options in 2.7.0.?

2015-09-11 Thread Erik Christiansen
On 10.09.15 23:35, Martin Smith wrote:
> I have  a Swedish keyboard installed. In 2.5.4 (Ubuntu) there is Setting,
> Keyboard, Layout and Options where you can change key behavior. In my case I
> could change comma (,) to dot (.) in the numeric keypad.
> I would like to do the same change In 2.7.0 (Wheezy). It´s inconvinient not
> having dot in the numeric keypad when running LCNC.

Having not yet found fully documenting manpages for GUI stuff, I can
only advise on a more fundamental approach. Here, starting:

$ xev

then pressing '.' in the numeric keypad (yours will be labelled ','),
gives:

KeyPress event, serial 38, synthetic NO, window 0x301,
root 0x132, subw 0x0, time 585013, (142,317), root:(154,452),
state 0x0, keycode 91 (keysym 0xff9f, KP_Delete), same_screen YES,
XLookupString gives 0 bytes: 
XmbLookupString gives 0 bytes: 
XFilterEvent returns: False

amongst its somewhat verbose output. (Look for "KeyPress event")
Now we know that the key is "keycode 91". In contrast, pressing the main
keyboard '.' gives:

KeyPress event, serial 35, synthetic NO, window 0x301,
root 0x132, subw 0x0, time 1088960, (262,429), root:(274,564),
state 0x0, keycode 60 (keysym 0x2e, period), same_screen YES,
XLookupString gives 1 bytes: (2e) "."
XmbLookupString gives 1 bytes: (2e) "."
XFilterEvent returns: False

revealing that its keysym is 0x2e, so your desired mapping is nothing
more than:

$ xmodmap -e 'keycode 91 = 0x2e'

To confirm the process here, where the numeric pad already generates a
period, I configured the reverse conversion:

$ xmodmap -e 'keycode 91 = 0x2c'

with the result that repeatedly whacking the numeric '.' key now emits:

$ ,

OK, how to automate that? The quickest is just to copy the xmodmap line
to your ~/.bashrc or ~/.profile. Or, if preferred, just the text inside
the quotes can be added to ~/.Xmodmap, instead, if that seems simpler.
If, however, there are other times when you run Swedish applications,
requiring a decimal comma, then it might be more convenient to place the
xmodmap line in a wrapper shell function (or simple alias) around the
command you use to start LinuxCNC.

What could give you more control than that?

Erik

-- 
The meta-problem here is that the configuration wizard does all the approved
rituals (GUI with standardized clicky buttons, help popping up in a browser,
etc. etc.) but doesn't have the central attribute these are supposed to achieve:
discoverability. That is, the quality that every point in the interface has
prompts and actions attached to it from which you can learn what to do next.
   - Eric Raymond, in "The Luxury of Ignorance."

--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Keyboard options in 2.7.0.?

2015-09-10 Thread Martin Smith
I have  a Swedish keyboard installed. In 2.5.4 (Ubuntu) there is Setting,
Keyboard, Layout and Options where you can change key behavior. In my case I
could change comma (,) to dot (.) in the numeric keypad.
I would like to do the same change In 2.7.0 (Wheezy). It´s inconvinient not
having dot in the numeric keypad when running LCNC.

Martin

-Ursprungligt meddelande-
Från: Chris Radek [mailto:ch...@timeguy.com] 
Skickat: den 10 september 2015 23:00
Till: Enhanced Machine Controller (EMC)
Ämne: Re: [Emc-users] Keyboard options in 2.7.0.?

On Thu, Sep 10, 2015 at 10:25:51PM +0200, Martin Smith wrote:
> Having Swedish keyboards I would like to change the numeric  
> keyboard?s delete key behavior from comma to dot. This option  is not  
> availible in
> 2.7.0 Wheezy?s keyboard preferences. Is there any way to make this change?

I was able to do this: 

Menu: Settings, Keyboard, Layout, Add, Swedish, OK, click Swedish, Close


--
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991=/4140
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


--
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991=/4140
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Keyboard options in 2.7.0.?

2015-09-10 Thread Martin Smith
Having Swedish keyboards I would like to change the numeric  keyboard´s
delete key behavior from comma to dot. This option  is not  availible in
2.7.0 Wheezy´s keyboard preferences. Is there any way to make this change?

 

Martin

--
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991=/4140
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Keyboard options in 2.7.0.?

2015-09-10 Thread Chris Radek
On Thu, Sep 10, 2015 at 10:25:51PM +0200, Martin Smith wrote:
> Having Swedish keyboards I would like to change the numeric  keyboard?s
> delete key behavior from comma to dot. This option  is not  availible in
> 2.7.0 Wheezy?s keyboard preferences. Is there any way to make this change?

I was able to do this: 

Menu: Settings, Keyboard, Layout, Add, Swedish, OK, click Swedish,
Close

--
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991=/4140
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users