vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, Is there a way to have the "backspace" key behave as it does in linux, I mean, deleting the character to the left of the cursor instead of causing a "break" or "abort" action? I'm using the bash shell, but with sh is the same. -- chabral |
| |||
| "chabral" <chabral@hotmail.com> wrote in message news:41ae1262$0$66404$14726298@news.sunsite.dk... | Hi, | Is there a way to have the "backspace" key behave as it does in linux, I | mean, deleting the character to the left of the cursor instead of causing a | "break" or "abort" action? | I'm using the bash shell, but with sh is the same. What sort of terminal are you using? What does # stty -a report? N |
| |||
| "chabral" <chabral@hotmail.com> wrote in message news:41ae1262$0$66404$14726298@news.sunsite.dk... > Hi, > Is there a way to have the "backspace" key behave as it does in linux, I > mean, deleting the character to the left of the cursor instead of causing a > "break" or "abort" action? > I'm using the bash shell, but with sh is the same. > Are you on a terminal or a terminal emulator as opposed to the system keyboard? If you are using a terminal emulator, check the setup to see what being sent by the backspace key. Ron |
| |||
| "NSM" <nowrite@to.me> escribió en el mensaje news > > "chabral" <chabral@hotmail.com> wrote in message > news:41ae1262$0$66404$14726298@news.sunsite.dk... > | Hi, > | Is there a way to have the "backspace" key behave as it does in linux, I > | mean, deleting the character to the left of the cursor instead of causing > a > | "break" or "abort" action? > | I'm using the bash shell, but with sh is the same. > > What sort of terminal are you using? What does > > # stty -a > > report? > > N Here it is: $ stty -a speed 38400 baud; ispeed 38400 baud; ospeed 38400 baud; line = 0(tty); rows = 34; columns = 100; ypixels = 0; xpixels = 0; intr = DEL; quit = ^\; erase = ^H; kill = ^U; eof = ^D; eol = ^@; swtch = <undef>; susp = <undef>; start = ^Q; stop = ^S; -parenb -parodd cs8 -cstopb hupcl cread -clocal -loblk -ortsfl -ctsflow -rtsflow -ignbrk brkint ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc ixon ixany -ixoff isig icanon -xcase echo -echoe echok -echonl -noflsh -iexten -tostop -xclude opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel tab3 -isscancode -- chabral |
| |||
| "Ronald J Marchand" <ron@rojomar.com> escribió en el mensaje news:7835e$41ae1c37$42a6716f$14413@msgid.meganewss ervers.com... > > "chabral" <chabral@hotmail.com> wrote in message > news:41ae1262$0$66404$14726298@news.sunsite.dk... > > Hi, > > Is there a way to have the "backspace" key behave as it does in linux, I > > mean, deleting the character to the left of the cursor instead of causing > a > > "break" or "abort" action? > > I'm using the bash shell, but with sh is the same. > > > Are you on a terminal or a terminal emulator as opposed to the system > keyboard? > > If you are using a terminal emulator, check the setup to see what being sent > by the backspace key. > > Ron > I'm using the Putty terminal emulator. I changed backspace settings from: Ctrl-? (127) to Ctrl-H and it worked. But the "Del" key continues with this behavior, instead of erasing the character where the cursor is, it abort the line (the line is not even stored in command history). |
| |||
| chabral wrote: > Hi, > Is there a way to have the "backspace" key behave as it does in linux, I > mean, deleting the character to the left of the cursor instead of causing a > "break" or "abort" action? > I'm using the bash shell, but with sh is the same. man stty stty intr ^C stty erase <press backspace key> If you are logging in from a terminal or terminal emulator (e.g. a telnet client) then you can usually alter the behaviour of the backspace key it the client end instead. |
| |||
| "chabral" <chabral@hotmail.com> wrote in message news:41ae1caf$0$66405$14726298@news.sunsite.dk... > Here it is: > intr = DEL; The DELETE key aborts the line > quit = ^\; CNTRL-\ crash aborts the commands, usually with a core dump > erase = ^H; CNTRL-H backspaces > kill = ^U; CNTRL-U cancels the line > eof = ^D; CNTRL-D ends current input from the keyboard > eol = ^@; swtch = <undef>; susp = <undef>; Usually you want to set these also. > start = ^Q; stop = ^S; Normal --------------- Do a # man stty for more info. N |
| |||
| chabral <chabral@hotmail.com> wrote: >> > Is there a way to have the "backspace" key behave as it does in linux, I >> > mean, deleting the character to the left of the cursor instead of causing >> > a "break" or "abort" action? I'm using the bash shell, but with sh is the >> > same. >> >I'm using the Putty terminal emulator. I changed backspace settings from: >Ctrl-? (127) to Ctrl-H and it worked. But the "Del" key continues with this >behavior, instead of erasing the character where the cursor is, it abort the >line (the line is not even stored in command history). stty intr '^C' erase '^?' Then change putty's backspace setting back to 127. Your interrupt key will be control-C. John -- John DuBois spcecdt@armory.com KC6QKZ/AE http://www.armory.com/~spcecdt/ |
| |||
| In article <41ae1262$0$66404$14726298@news.sunsite.dk>, chabral <chabral@hotmail.com> wrote: >Hi, > Is there a way to have the "backspace" key behave as it does in linux, I >mean, deleting the character to the left of the cursor instead of causing a >"break" or "abort" action? > I'm using the bash shell, but with sh is the same. That's the original standard VT100/VT102 definitions set by DEC over 2 decades ago. In a follow up post you said you were using putty. When you bring up putty go to 'configuration' and under 'terminal' change the backspace key from 127 to ctrl-H. You have 6 choices for how the Escape key acts. Linux, and SCO are two choices, Xterm, VT400 and Vt100 are others and the default is Esc[n~ Bill -- Bill Vermillion - bv @ wjv . com |
| ||||
| "Bill Vermillion" <bv@wjv.com> escribió en el mensaje news:I82K9u.sLp@wjv.com... > In article <41ae1262$0$66404$14726298@news.sunsite.dk>, > chabral <chabral@hotmail.com> wrote: > >Hi, > > Is there a way to have the "backspace" key behave as it does in linux, I > >mean, deleting the character to the left of the cursor instead of causing a > >"break" or "abort" action? > > > I'm using the bash shell, but with sh is the same. > > That's the original standard VT100/VT102 definitions set by > DEC over 2 decades ago. > > In a follow up post you said you were using putty. > > When you bring up putty go to 'configuration' and under > 'terminal' change the backspace key from 127 to ctrl-H. > > You have 6 choices for how the Escape key acts. Linux, and SCO > are two choices, Xterm, VT400 and Vt100 are others and > the default is Esc[n~ > > Bill > -- > Bill Vermillion - bv @ wjv . com Thank you all for your help. Now it works perfectly! By the way, if any of you have midnigth commander working under SCO, I've another post about it Best regards, -- chabral |
| Thread Tools | |
| Display Modes | |
|
|