LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-31-2005, 10:10 PM   #1
tw001_tw
Member
 
Registered: Mar 2003
Location: St. Louis, MO
Distribution: kubuntu-current
Posts: 551
Blog Entries: 4

Rep: Reputation: 31
Jed editor and delete key


Am I the only one who's delete key does not work in the Jed editor?
This has been a long standing and only mildly annoying issue - but its time to resolve it.

In doing research before posting, apparently, some have trouble with the backspace
key and the tab key. Those work fine for me. I should also say that all the keys work
just fine outside of jed at the command line. And the only key inside of jed that has an
issue is the delete.

Since everything is fine, I DO NOT want to make any global changes as I don't want
to make matters worse.

Anyone have this problem too and/or a solution?
I'm using jed-0.99.17 - I upgraded in hopes it would be resolved, but no luck.

-tw
[edited]
Getting there. using xev, here is my delete key info.
Code:
KeyRelease event, serial 30, synthetic NO, window 0x1a00001,
    root 0x58, subw 0x0, time 9836814, (387,746), root:(1416,767),
    state 0x10, keycode 107 (keysym 0xffff, Delete), same_screen YES,
    XLookupString gives 1 bytes: (7f) ""
Apparently, I have to edit(make) a .jedrc file. Still missing 1 variable.
map_input (107, X)
#I think..


Last edited by tw001_tw; 01-31-2005 at 11:05 PM.
 
Old 02-01-2005, 08:22 AM   #2
draxen
Member
 
Registered: Nov 2004
Posts: 43

Rep: Reputation: 15
Maybe you know all that already, but since you haven't mentioned it in your post, here it is....
Delete and backspace is the general problem with terminal emulators.
Sometimes it can be fixed by setting "stty erase" to either one.
To use delete as erase key: "stty erase ^?"
To use backspace as erase key: "stty erase ^H"
 
Old 02-01-2005, 12:36 PM   #3
tw001_tw
Member
 
Registered: Mar 2003
Location: St. Louis, MO
Distribution: kubuntu-current
Posts: 551

Original Poster
Blog Entries: 4

Rep: Reputation: 31
In doing research in the matter, I did read things like this as you metioned:

Quote:
To use delete as erase key: "stty erase ^?"
To use backspace as erase key: "stty erase ^H"
But I don't want to change anything globally as both my backspace and delete key work perfectly (i.e. as expected) everywhere else. Only in Jed do I have a problem.

I thought about trying it, but if it doesn't work, I don't know how to revert back to what is is now. But thanks for the suggestion.

-tw
 
Old 02-01-2005, 12:43 PM   #4
draxen
Member
 
Registered: Nov 2004
Posts: 43

Rep: Reputation: 15
Just running "stty" should print your current settings.
Besides that, did you try changing .jedrc?
setkey("delete_char_cmd", "^H");
or
setkey("delete_char_cmd", "^?");
might work.
 
Old 02-01-2005, 10:29 PM   #5
tw001_tw
Member
 
Registered: Mar 2003
Location: St. Louis, MO
Distribution: kubuntu-current
Posts: 551

Original Poster
Blog Entries: 4

Rep: Reputation: 31
Thank you. You put me on the right path to resolving it.

in my ~/.jedrc file, I had to add the line:

setkey ("delete_char_cmd", "\e[3~");

A jed manual said add 2 lines, but using both of them didn't help.
Using just this one did the trick.
Thanks again.
-tw
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete text between key words : sed shalomajay Programming 7 05-11-2011 06:22 PM
Backspace & delete key issues stefaandk Linux - Newbie 3 07-29-2005 01:10 AM
mapping delete key sboyce57 Linux - Newbie 1 02-22-2004 11:05 PM
Delete Key in Shell gh0ul Linux - Newbie 1 10-07-2003 10:58 AM
jed doesn`t work on Gnome jamaso Linux - General 2 04-03-2002 10:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration