LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 05-02-2014, 06:22 PM   #1
herby1620
LQ Newbie
 
Registered: Mar 2004
Location: Sillicon Valley
Distribution: RedHat/Debian
Posts: 15

Rep: Reputation: 0
KDE Konsole keyboard configuration


In my attempts to make short work of a program I decided to configure a couple of the function keys to enter commands for me. I go to settings->edit profile->keyboard->edit and a nice screen comes up to edit keyboard things. I scroll down to the function key, and enter a command in the output side of the window. This all works fine UNTIL I put a '*' in the output section. For some (good, I assume) reason this '*' character gets translated to a number that relates to the modifier (shift, control, alt, ...) that I have pressed. I assume that this is necessary, but I WANT A '*' to be emitted. Is there some escape (I've tried many) that will allow me to emit a '*' character. I tried \x2a, nope. \*, nope.

If people are interested, the modfiiers produce:
Window - 1
Shift - 2
Alt - 3
Shift, Alt - 4
Control - 5
Shift, Control - 6

I thought this was going to be simple!
 
Old 05-05-2014, 10:36 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Quote:
You can use the wildcard * (match any) for host, number, and class. You may omit trailing components; they are assumed to be * then. The host part may be a domain specification like .inf.tu-dresden.de or the wildcard + (match non-empty).
Quote:
Some command strings are subject to simplified sh-style word splitting: single quotes (') and double quotes (") have the usual meaning; the backslash quotes everything (not only special characters). Note that the backslashes need to be doubled because of the two levels of quoting.
I read this as meaning that the * does have special meaning in the kdm config, but you can get around it by using double backslash \\* to prevent the shell from interpreting * as a wildcard.

Source document
 
Old 05-05-2014, 12:36 PM   #3
herby1620
LQ Newbie
 
Registered: Mar 2004
Location: Sillicon Valley
Distribution: RedHat/Debian
Posts: 15

Original Poster
Rep: Reputation: 0
These are NOT shell options. This is in the Konsole program

Further experiments using Konsole yield that \\* just emits \\1 (assuming you haven't pressed a modifier key). This can easily be tested by using the 'test area' when you are editing the "key bindings".

A simple experiment is to try using the '*' character and make it emit a '*' character. I haven't had any luck yet.

I have looked at the file:
~/.kde/share/apps/konsole/default.keytab
It has lots of '*' characters. Unfortunately NONE of them emit '*' characters, even when prefixed by normal escape characters (usually \, but I tried \\ as well). The strings are all contained in nice double quite marks ("). Try as I might, I can't get the konsole program to emit a '*' in a custom key setup.

Last edited by herby1620; 05-05-2014 at 12:48 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
konsole configuration not persistent TSquaredF Slackware 4 03-02-2010 09:37 PM
konsole keyboard mapping xppower Linux - Hardware 0 07-28-2006 09:21 AM
open konsole from keyboard K. Carl Linux - Newbie 1 07-09-2005 04:58 PM
How can I create a keyboard script for konsole? geekzster Linux - Newbie 3 04-18-2004 03:56 AM
konsole keyboard shortcuts teacup Linux - Software 6 06-22-2003 03:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 04:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration