|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
xterm + bash: Make <DEL> delete char under cursor
I've been toying with this since I put 4.4 on my laptop. I like to use xterm and bash; with this combination I cannot get <BS> to delete the previous character and <DEL> to delete the current one, the behaviour in most apps nowadays. Here's some information, hopefully somebody can help:
__________________
How many shells could Shell sort sort if Shell sort could sort shells? |
|
|||
Awesome! That was exactly what I was looking for, thanks much!
Yes, the ^V trick is pretty useful; it comes from vi so you can use it there also to insert a character literally; especially nice when typing e.g. sed patterns with tabs and newlines in them.
__________________
How many shells could Shell sort sort if Shell sort could sort shells? |
|
|||
In my Slackware partition, and in my home directory's .bashrc file,
I have the following entry, among others: # Make sure the backspace key erases: stty erase "^H" |
|
||||
Take a look at the output of stty all:
Code:
Terry@vectra$ stty all speed 38400 baud; 24 rows; 80 columns; lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl -echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo -extproc -xcase iflags: -istrip icrnl -inlcr -igncr -iuclc ixon -ixoff ixany imaxbel -ignbrk brkint -inpck -ignpar -parmrk oflags: opost onlcr -ocrnl -onocr -onlret -olcuc oxtabs -onoeot cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -mdmbuf discard dsusp eof eol eol2 erase intr kill lnext ^O ^Y ^D <undef> <undef> ^? ^C ^U ^V min quit reprint start status stop susp time werase 1 ^\ ^R ^Q <undef> ^S ^Z 0 ^W Terry@vectra$
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
||||
I have that also, but put it in ~/.bash_profile, on the assumption that it's only needed for interactive shells. Also the double quotes around "^H" aren't needed (nice to keep things clean and simple ).
|
|
|||
I was wondering where I got it from.
Running Linux, 3rd Edition, Welsh, Dalheimer and Kaufman. page 117 They also mentions .bash_profile "For the bash shell. Another shell script. The difference between this script and .bashrc is that .bash_profile runs only when you log in. It was originally designed so you could separate interactive shells from those run by background processes like cron. But it is not too useful on modern computers with the X Window System, because when you open a new xterm window, only .bashrc runs. If you start up a windown with the command xterm -ls, it will run .bash_profile too." Sorry about the Linux stuff. For information only. |
|
||||
Yea, it definitely depends on how you like to set things up. I use the -ls flag with all xterm's, to make them more like my consoles. Because I do like to use the console as much as possible (most days, this lasts about 10 minutes before throwing in the towel and typing "startx", lol).
|
Tags |
<bs> key, <del> key |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
xterm color does not behave properly. | pieterverberne | OpenBSD General | 2 | 19th August 2009 05:17 PM |
Changing shell to bash | rex | FreeBSD General | 13 | 29th August 2008 03:20 AM |
xterm End key | graudeejs | General software and network | 1 | 24th August 2008 04:55 PM |
Is bash included in OpenBSD? | bsdnewbie999 | OpenBSD General | 21 | 2nd August 2008 02:57 AM |
How add additional features on xterm ( Xfce ) ? | aleunix | OpenBSD Packages and Ports | 4 | 5th June 2008 02:18 PM |