DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 23rd August 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
formerly killasmurf86
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 588
Thanked 29 Times in 26 Posts
Default FreeBSD console delete key

Is there a way to make delete key work as it should in FreeBSD console?
When i press Delete key it works as Backspace....

Note, this is in console, not in any kind of gui terminal.

I use mksh


Let me know what king of info you need, and i will provide it (i have no clue where to search for solution)
Reply With Quote
  #2   (View Single Post)  
Old 23rd August 2008
jb_daefo jb_daefo is offline
Package Pilot
 
Join Date: May 2008
Posts: 196
Thanked 5 Times in 5 Posts
Default

what should it do? Just asking...

I use cntl-U to erase the current line
__________________
using /LOOKAT/ with /var/db/pkg files and portmaster/aliases/pipes/find/grep to meteorically speedup port upgrades/installs...
Reply With Quote
  #3   (View Single Post)  
Old 23rd August 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,051
Thanked 198 Times in 156 Posts
Default

Did you try this from the FreeBSD FAQ section 4.5.8

Quote:
For the Bourne Shell, add the following lines to your .shrc. See sh(1) and editrc(5).
bind ^? ed-delete-next-char # for console
bind ^[[3~ ed-delete-next-char # for xterm

For the C Shell, add the following lines to your .cshrc. See csh(1).
bindkey ^? delete-char # for console
bindkey ^[[3~ delete-char # for xterm
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #4   (View Single Post)  
Old 24th August 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
formerly killasmurf86
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 588
Thanked 29 Times in 26 Posts
Default

Quote:
Originally Posted by Carpetsmoker View Post
Did you try this from the FreeBSD FAQ section 4.5.8
Ye, i tried, and at 1st there was an error, and later that line disappeared (?)
Reply With Quote
  #5   (View Single Post)  
Old 24th August 2008
harisman's Avatar
harisman harisman is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Hellas (Greece)
Posts: 66
Thanked 5 Times in 4 Posts
Default

Just to add that you can automate the Carpetsmoker's suggestion.
This is the part of my .cshrc as shown above:

Code:
if ($TERM == "xterm") then 
        set prompt="%{\033]0;%n@%m:%~\007%}%h:%n@%m\:%~\%%{\033[0m%} "
        bindkey ^[[3~ delete-char
else
        set prompt="%h:%n@%m\:%~\% "
        bindkey ^? delete-char
endif
Reply With Quote
Reply

Tags
console, freebsd console

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete compilers to cross compile revzalot OpenBSD Installation and Upgrading 9 28th August 2009 08:06 PM
Cannot delete it.... graudeejs FreeBSD General 9 20th July 2008 12:45 PM
Delete Files By Schedule plexter OpenBSD General 12 4th June 2008 10:15 PM
How to delete account? khdf Feedback and Suggestions 5 9th May 2008 09:05 PM


All times are GMT. The time now is 12:07 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick