Re: backspace and delete keys behavior

2004-08-01 Thread Ion-Mihai Tetcu
On Sun, 1 Aug 2004 12:17:29 +0930
Malcolm Kay [EMAIL PROTECTED] wrote:

  Don't fool with xmodmap; it will work against you in applications -- just 
  bind the key sequence in your shell (tcsh?)
  $  bindkey ^[[3~ delete-char

yey, thanks

-- 
IOnut
Unregistered ;) FreeBSD user

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: backspace and delete keys behavior

2004-07-31 Thread Mark Ovens
Ion-Mihai Tetcu wrote:
On Fri, 30 Jul 2004 14:30:59 +0100
Mark Ovens [EMAIL PROTECTED] wrote:
Peter Ryan wrote:
 I've got the same thing on the 2 machines i am experimenting
 with.  I am new and thought it was a standard feature :) 
 
 I also defined a standard US 101 keyboard.
 
 Makes me think there is a setting or choice at installation that
 deals with this, rather than having to patch something.
 

Add
keysym Delete = 0x04
to ~/.xmodmaprc
and add
xmodmap ~/.xmodmaprc
to ~/.xinitrc
To implement this in a running X session type this in an xterm
xmodmap -e keysym Delete = 0x04
Actually, this is probably a better solution for the OP as it is global 
whereas my previous suggestion is xterm specific.
The only problem is that if you keep the delete key pressed to long it
exits the terminal. At least when xmodmap typed under kde's konsole;
it acts this way both in for konsole and xterm.
Only if the cursor is in the first character position after the prompt 
of course. Not sure what the solution is since Ctrl-D is delete char to 
the right of the cursor and EOT, which exits the shell.

Mark

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: backspace and delete keys behavior

2004-07-31 Thread Giorgos Keramidas
On 2004-07-31 18:43, Mark Ovens [EMAIL PROTECTED] wrote:
Ion-Mihai Tetcu wrote:
On Fri, 30 Jul 2004 14:30:59 +0100 Mark Ovens [EMAIL PROTECTED] wrote:
 To implement this in a running X session type this in an xterm

 xmodmap -e keysym Delete = 0x04

 Actually, this is probably a better solution for the OP as it is
 global whereas my previous suggestion is xterm specific.

 The only problem is that if you keep the delete key pressed to long
 it exits the terminal. At least when xmodmap typed under kde's
 konsole; it acts this way both in for konsole and xterm.

 Only if the cursor is in the first character position after the prompt
 of course. Not sure what the solution is since Ctrl-D is delete char to
 the right of the cursor and EOT, which exits the shell.

There's always some sort of option to ignore EOF's in interactive mode,
like IGNOREEOF=10 in GNU bash, `set ignoreeof=10' in tcsh, or `set -I'
in FreeBSD's sh(1).

Setting this might avoid unexpected shell termination by hitting DEL :)

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: backspace and delete keys behavior

2004-07-31 Thread Malcolm Kay
On Sunday 01 August 2004 03:51, Giorgos Keramidas wrote:
 On 2004-07-31 18:43, Mark Ovens [EMAIL PROTECTED] wrote:
 Ion-Mihai Tetcu wrote:
 On Fri, 30 Jul 2004 14:30:59 +0100 Mark Ovens [EMAIL PROTECTED] wrote:
  To implement this in a running X session type this in an xterm
 
  xmodmap -e keysym Delete = 0x04
 

The default code produced by the Delete key and interpretation by X is fine.
Xterm produces the standard ANSI sequence ^[[3~ as it should and this is 
encoded in termcap for xterm as delete character. And this will work as 
expected for many applications working within an xterm window. The problem 
comes about that the shell does not honour this termcap entry.

Don't fool with xmodmap; it will work against you in applications -- just 
bind the key sequence in your shell (tcsh?)
$  bindkey ^[[3~ delete-char

I guess it would not be too difficult to extract the correct string from
termcap so that it worked for all (most) terminals but most now use the 
standard ANSI sequences so it is probably not worth the effort.

Malcolm



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: backspace and delete keys behavior

2004-07-30 Thread Kevin D. Kinsey, DaleCo, S.P.
Mariano Guadagnini wrote:
Hi guys, I am new to Freebsd (after years of linux) and, althought system 
installation and configuration was quite seamlessly, I've an issue with the 
delete key of my keyboard (101 keys us layout): In xterm, the backspace key 
works ok, but when I press del, it prints the ~ character, instead of  
deleting .  I have read it has something to do with keyboard layout config, 
but I couldn't find out how to fix it. So, any ideas?

Thanks, (and forgive my poor english)
Mariano Guadagnini
Argentina
 

what does:
echo $TERM
   give you?
It could possibly be the wrong terminal type --- try the following
at the CLI (depending on which shell)...
csh/tcsh:
   $setenv TERM xterm-color
sh/bash:
   #TERM=xterm-color
   #export TERM
HTH,
Kevin Kinsey
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: backspace and delete keys behavior

2004-07-30 Thread Ion-Mihai Tetcu
On Fri, 30 Jul 2004 04:01:53 -0500
Kevin D. Kinsey, DaleCo, S.P. [EMAIL PROTECTED] wrote:

 Mariano Guadagnini wrote:
 
 Hi guys, I am new to Freebsd (after years of linux) and, althought system 
 installation and configuration was quite seamlessly, I've an issue with the 
 delete key of my keyboard (101 keys us layout): In xterm, the backspace key 
 works ok, but when I press del, it prints the ~ character, instead of  
 deleting .  I have read it has something to do with keyboard layout config, 
 but I couldn't find out how to fix it. So, any ideas?
 
 Thanks, (and forgive my poor english)
 
 
 Mariano Guadagnini
 Argentina
   
 
 
 what does:
 
  echo $TERM
 
 give you?
 
 It could possibly be the wrong terminal type --- try the following
 at the CLI (depending on which shell)...
 
 csh/tcsh:
 
 $setenv TERM xterm-color

[EMAIL PROTECTED] /home/itetcu/.dc [12:26:07] 0
 % echo $TERM
xterm
[EMAIL PROTECTED] /home/itetcu/.dc [12:58:58] 0 
% setenv TERM xterm-color
[EMAIL PROTECTED] /home/itetcu/.dc [12:59:11] 0
 % echo $TERM
xterm-color
[EMAIL PROTECTED] /home/itetcu/.dc [12:59:15] 0
 % dasdas

Where the ~ are made by pressing delete.



-- 
IOnut
Unregistered ;) FreeBSD user

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: backspace and delete keys behavior

2004-07-30 Thread Mark Ovens
Mariano Guadagnini wrote:
Hi guys, I am new to Freebsd (after years of linux) and, althought system 
installation and configuration was quite seamlessly, I've an issue with the 
delete key of my keyboard (101 keys us layout): In xterm, the backspace key 
works ok, but when I press del, it prints the ~ character, instead of  
deleting .  I have read it has something to do with keyboard layout config, 
but I couldn't find out how to fix it. So, any ideas?

Thanks, (and forgive my poor english)
Add this to ~/.Xdefaults
XTerm*vt100.translations: #override \n\
   KeyDelete: string(0x04) \n
which maps Ctrl-D to the DEL key, then run
% xrdb  ~/.Xdefaults
to implement it (in the current X session).
Note that this won't change the behaviour in the current xterm, but will 
in any new ones you open.

HTH
Regards,
Mark
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: backspace and delete keys behavior

2004-07-30 Thread Peter Ryan
I've got the same thing on the 2 machines i am experimenting
with.  I am new and thought it was a standard feature :) 

I also defined a standard US 101 keyboard.

Makes me think there is a setting or choice at installation that
deals with this, rather than having to patch something.

I counted my keys - there are 101. It looks as much like
a standard US keyboard as anything else I have.

My XF86Config file section for the keyboard contains
Identifier Keyboard0
Driver keyboard
option XkbModel pc101
option XkbLayout us

Could someone who this does not happen to tell me what
is different in their file.

I am running freeBSD 4.10 RELEASE

Thanks
Peter

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ovens
 Sent: Friday, July 30, 2004 20:21
 To: Mariano Guadagnini
 Cc: [EMAIL PROTECTED]
 Subject: Re: backspace and delete keys behavior
 
 Mariano Guadagnini wrote:
  Hi guys, I am new to Freebsd (after years of linux) and, althought 
  system installation and configuration was quite seamlessly, I've an 
  issue with the delete key of my keyboard (101 keys us layout): In 
  xterm, the backspace key works ok, but when I press del, it 
 prints the 
  ~ character, instead of deleting .  I have read it has 
 something to 
  do with keyboard layout config, but I couldn't find out how 
 to fix it. So, any ideas?
  
  Thanks, (and forgive my poor english)
  
 
 Add this to ~/.Xdefaults
 
 XTerm*vt100.translations: #override \n\
 KeyDelete: string(0x04) \n
 
 which maps Ctrl-D to the DEL key, then run
 
 % xrdb  ~/.Xdefaults
 
 to implement it (in the current X session).
 
 Note that this won't change the behaviour in the current 
 xterm, but will in any new ones you open.
 
 HTH
 
 Regards,
 
 Mark
 ___
 [EMAIL PROTECTED] mailing list 
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]
 

 


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: backspace and delete keys behavior

2004-07-30 Thread Mark Ovens
Peter Ryan wrote:
I've got the same thing on the 2 machines i am experimenting
with.  I am new and thought it was a standard feature :) 

I also defined a standard US 101 keyboard.
Makes me think there is a setting or choice at installation that
deals with this, rather than having to patch something.
Add
keysym Delete = 0x04
to ~/.xmodmaprc
and add
xmodmap ~/.xmodmaprc
to ~/.xinitrc
To implement this in a running X session type this in an xterm
xmodmap -e keysym Delete = 0x04
Actually, this is probably a better solution for the OP as it is global 
whereas my previous suggestion is xterm specific.

HTH
Regards,
Mark
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: backspace and delete keys behavior

2004-07-30 Thread Robert Huff

I don't know what shell you're using, but for whatever help it
may be: I have

stty erase '^?'

in my ,cshrc.
My .xinitrc also has this (commented out):

xmodmap -e keysym BackSpace = Delete


Robert Huff

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: backspace and delete keys behavior

2004-07-30 Thread Warren Block
On Fri, 30 Jul 2004, Mariano Guadagnini wrote:
Hi guys, I am new to Freebsd (after years of linux) and, althought system
installation and configuration was quite seamlessly, I've an issue with the
delete key of my keyboard (101 keys us layout): In xterm, the backspace key
works ok, but when I press del, it prints the ~ character, instead of
deleting .  I have read it has something to do with keyboard layout config,
but I couldn't find out how to fix it. So, any ideas?
I use csh/tcsh and just put this in .cshrc:
bindkey ^? delete-char
bindkey \e[3~ delete-char
bindkey \e[1~ beginning-of-line
bindkey \e[4~ end-of-line
Seems to work for console and xterm.  There's a good web page on this:
http://www.ibb.net/~anne/keyboard.html
-Warren Block * Rapid City, South Dakota USA
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: backspace and delete keys behavior

2004-07-30 Thread Ion-Mihai Tetcu
On Fri, 30 Jul 2004 14:30:59 +0100
Mark Ovens [EMAIL PROTECTED] wrote:

 Peter Ryan wrote:
  I've got the same thing on the 2 machines i am experimenting
  with.  I am new and thought it was a standard feature :) 
  
  I also defined a standard US 101 keyboard.
  
  Makes me think there is a setting or choice at installation that
  deals with this, rather than having to patch something.
  
 
 Add
 
 keysym Delete = 0x04
 
 to ~/.xmodmaprc
 
 and add
 
 xmodmap ~/.xmodmaprc
 
 to ~/.xinitrc
 
 To implement this in a running X session type this in an xterm
 
 xmodmap -e keysym Delete = 0x04
 
 Actually, this is probably a better solution for the OP as it is global 
 whereas my previous suggestion is xterm specific.

The only problem is that if you keep the delete key pressed to long it
exits the terminal. At least when xmodmap typed under kde's konsole;
it acts this way both in for konsole and xterm.


-- 
IOnut
Unregistered ;) FreeBSD user

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]