You are not logged in.

#1 2010-05-15 10:33:50

Still Life
Member
Registered: 2010-05-09
Posts: 6

Terminal doesn't "catch" d key

Hi I've this problem: I use Arch with XFCE and terminal doesn't recognize d key but it recognize D key! in other applications "d" works fine. I think this problem is come after pacman -Syu. And if I paste a word with "d" inside, terminal doesn't put the "d".   
I've also tried with gnome terminal but the problem still the same.

Thanks a lot!

Offline

#2 2010-05-15 16:24:44

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,177

Re: Terminal doesn't "catch" d key

Any chance it was remapped to something else?  What happens if you create a new user (with a clean profile) and log in as that user?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2010-05-16 12:13:48

Still Life
Member
Registered: 2010-05-09
Posts: 6

Re: Terminal doesn't "catch" d key

Sorry I'm not very able. How can I create a new user if the "adduser" command requires two "d"?

Offline

#4 2010-05-16 12:16:07

SwedBo
Member
From: Riga, Latvia
Registered: 2010-04-28
Posts: 28

Re: Terminal doesn't "catch" d key

Still Life wrote:

Sorry I'm not very able. How can I create a new user if the "adduser" command requires two "d"?

Open your favorite text editor and create a small shell script for that ? wink

Offline

#5 2010-05-16 12:44:30

davidm
Member
Registered: 2009-04-25
Posts: 371

Re: Terminal doesn't "catch" d key

Still Life wrote:

Sorry I'm not very able. How can I create a new user if the "adduser" command requires two "d"?

Or simply cut and paste "adduser" from this message to the terminal.

Offline

#6 2010-05-16 13:00:36

jhvid
Member
From: /dev/denmark
Registered: 2009-08-19
Posts: 52

Re: Terminal doesn't "catch" d key

davidm wrote:
Still Life wrote:

Sorry I'm not very able. How can I create a new user if the "adduser" command requires two "d"?

Or simply cut and paste "adduser" from this message to the terminal.

Or use tty... many options wink


GCS d- s-:+ a12 C++++ U++++ L+++ P--- E--- W+++ N+ o K- w--- O? M-- V? PS PE
Y- PGP? t? 5? X? R tv b+++ DI+ D- G++ e++ h! !r !y

Please ignore me... I'm pretty weird...

Offline

#7 2010-05-16 15:15:54

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: Terminal doesn't "catch" d key

Another one!
type '/usr/sbin/a??user'

Now the cool solution

$(printf a\\x64\\x64user)

Use printf and the ascii value of the char!

EDIT: With you like to use the decimal value, and are too lazy to convert to hex:

$(printf $(printf a\\%03o\\%03ouser 100 100))

Last edited by kazuo (2010-05-16 15:28:34)

Offline

#8 2010-05-16 15:26:52

dmz
Member
From: Sweden
Registered: 2008-08-27
Posts: 881
Website

Re: Terminal doesn't "catch" d key

kazuo wrote:

Another one!
type '/usr/sbin/a??user'

Now the cool solution

$(printf a\\x64\\x64user)

Use printf and the ascii value of the char!

I win! big_smile

$(perl -e 'printf("a%s%suser\n",  chr('100') x 2);')

Offline

#9 2010-05-16 15:33:26

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: Terminal doesn't "catch" d key

dmz wrote:

I win! big_smile

$(perl -e 'printf("a%s%suser\n",  chr('100') x 2);')

No, you dont

$ time (for i in {1..1000}; perl -e 'printf("a%s%suser\n",  chr('100') x 2);' >| /dev/null)
(; for i in {1..1000}; do; perl -e 'printf("a%s%suser\n",  chr('100') x 2);' )  0.50s user 0.64s system 32% cpu 3.551 total
$ time (for i in {1..1000}; printf a\\x64\\x64user >| /dev/null)
(; for i in {1..1000}; do; printf a\\x64\\x64user >| /dev/null; done; )  0.00s user 0.01s system 91% cpu 0.015 total

Mine is ways ways ways much faster! Ha! tongue

Offline

#10 2010-05-16 15:35:13

dmz
Member
From: Sweden
Registered: 2008-08-27
Posts: 881
Website

Re: Terminal doesn't "catch" d key

kazuo wrote:
dmz wrote:

I win! big_smile

$(perl -e 'printf("a%s%suser\n",  chr('100') x 2);')

No, you dont

$ time (for i in {1..1000}; perl -e 'printf("a%s%suser\n",  chr('100') x 2);' >| /dev/null)
(; for i in {1..1000}; do; perl -e 'printf("a%s%suser\n",  chr('100') x 2);' )  0.50s user 0.64s system 32% cpu 3.551 total
$ time (for i in {1..1000}; printf a\\x64\\x64user >| /dev/null)
(; for i in {1..1000}; do; printf a\\x64\\x64user >| /dev/null; done; )  0.00s user 0.01s system 91% cpu 0.015 total

Mine is ways ways ways much faster! Ha! tongue

Hah! Mine is SO much sexier!

#!/usr/bin/perl
eval eval '"'.


                            ('['^'+').('['^
                       ')').('`'|')').('`'|'.').
                    ('['^'/').('`'|'&').'('.('\\').
                  '"'.('`'|'!').'%'.('['^'(').('%').(
                '['^'(').('['^'.').('['^'(').('`'|'%').
+( ( ( ((      ('[')))))^    ')').'\\'.''.    '\\'.('`'|      (( ( ( ((
(( ( ( ((     '.')))))))      )))))).'\\'      .'"'.','.(     (( ( ( ((
 '{')))))    )^'[').('{'      ^'[').('`'|      '#').("\`"|    ('(')).(
  '['^')').'('."'".('^'^(    '`'|('/'))).(    '^'^('`'|'.')).(('^')^(
   '`'|'.'))."'".')'.('{'^'[').('['^'#').('{'^'[').('^'^('`'|"\,")).
    ')'     .';'.('!'^'+').'"';$:='.'^'~';$~='@'|'(';$^=')'     ^((
   '[')     );$/='`'|'.';$,='('^'}';$\='`'|'!';$:=')'^"\}";     ($~)
   =((      '*'))|'`';$^='+'^'_';$/='&'|'@';$,='['&"\~";$\=      ','
  ^'|';$:="\."^  '~';$~='@'|'(';$^=')'^'[';$/='`'|"\.";  $,='('^"\}";
  $\='`'|'!';$:   =')'^'}';$~='*'|'`';$^='+'^('_');$/=   '&'|"\@";$,=
 '['        &'~'    ;$\=','^'|';$:='.'^'~';$~=('@')|    '('        ;$^
             =')'     ^'[';$/='`'|'.';$,='('^"\}";     $\=
              '`'|       '!';$:=')'^'}';$~='*'|       '`'
               ;($^)                                ='+'
                ^"\_";      $/='&'|'@';$,=        "\["&
                  '~';$\=      ','^('|');$:=   ('.')^
                    '~';$~='@'    |'(';$^=')' ^'[';
                       $/='`'|'.';  $,='('^'}' ;
                            $\='`'| '!';$:=')'^
                                    '}';$~="\*"|
                                     '`';$^='+'^
                                      ('_');#;#

Offline

#11 2010-05-16 15:42:56

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: Terminal doesn't "catch" d key

Wtf?


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#12 2010-05-16 17:51:03

JohannesSM64
Member
From: Norway
Registered: 2009-10-11
Posts: 623
Website

Re: Terminal doesn't "catch" d key

dmz, thank you for making my day. Can you please explain that code?

Offline

Board footer

Powered by FluxBB