LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-09-2005, 12:59 AM   #1
Z505
LQ Newbie
 
Registered: Mar 2005
Distribution: Custom Debian and Slack
Posts: 16

Rep: Reputation: 0
Terminal that acts more like an editor


I'm looking for a terminal program which acts more like an editor when you hit Delete or Backspace, C-v, C-x, C-c...

-A selection would be deleted with delete key instead of just a character.
-Ctrl-C would copy a selection
-Ctrl-V would paste a selection.

If not available I will consider writing one, but I'm guessing there is one out there.

I would prefer if it is written in a compiled language without reliance on python, kde, etc.
 
Old 04-09-2005, 01:12 AM   #2
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 47
Emacs is vary capable... It should do most of what you need.

KC
 
Old 04-09-2005, 01:44 AM   #3
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
By terminal, do you mean a console? How do you plan to make a selection? The bash shell has an emacs and vi mode that you might look into.
 
Old 04-09-2005, 01:46 AM   #4
Z505
LQ Newbie
 
Registered: Mar 2005
Distribution: Custom Debian and Slack
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by kencaz
Emacs is vary capable... It should do most of what you need.

KC
Well, I could use one of the larger editors but I'm still looking for a dedicated terminal emulator for smaller jobs when I might not have an editor fired up.

I find myself making quick commands on systems which don't always have emacs installed. Or say if I want an instant command line at my fingertips just after starting a window manager,or just before exiting. Still useful to have a terminal program I find.

I'd hate to have to load emacs up just to make a quickie command, or to load it up on an older system where reallly I just need a quick 5 minutes in the terminal .

Where I also need dedicated terminal program would be on smaller older computer/laptops.

I also find annoying that in midnight commander I notice the same problems with the internal viewer lacking ctrl-key editing.

It shouldn't be to hard to modify some of these programs, but I thought maybe there were some solutions out there already which other people have already though up.
 
Old 04-09-2005, 01:53 AM   #5
Z505
LQ Newbie
 
Registered: Mar 2005
Distribution: Custom Debian and Slack
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by jschiwal
By terminal, do you mean a console? How do you plan to make a selection? The bash shell has an emacs and vi mode that you might look into.
A terminal emulator or window I meant. Well, I still will be interested in the plain old terminal too, for things like servers that aren't running a window manager.. so that's a good tip you gave.

So are these editing modes you mentioned also possible in a terminal window, since the terminal window essentially talks to the bash shell anyway?
 
Old 04-09-2005, 01:55 AM   #6
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 47
Hmmm, Not sure what your looking for...

"dedicated terminal emulator" ?

If you want to make quick scripts or .txt files from the command line...

cat > document.txt << end

this will capture everything typed in the command line to document.txt until you type the word "end"

Hope this helps.

KC
 
Old 04-09-2005, 03:57 AM   #7
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
There are a number of virtual terminal programs available for Linux, such as xterm , konsole, rxvt. Perhaps one of them would be better suited for you tastes. However, I don't see what use selecting and deleting/inserting segments on a single line of entry would do. The interactive bash shell has some control or meta sequences for deleting entire words, or deleting what precedes or follows the cursor.
 
Old 04-09-2005, 03:58 AM   #8
puffinman
Member
 
Registered: Jan 2005
Location: Atlanta, GA
Distribution: Gentoo, Slackware
Posts: 217

Rep: Reputation: 30
xterm allows cutting and pasting very easily, just highlight, and it's automatically copied. Hit the middle mouse button, and it's pasted. Also, you can configure bash so that emacs commands work on the command line. For instance, M-p goes to the previous command, M-a goes to the beginning of the line, M-d deletes the current word, etc.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Whats your favorite terminal text editor??? Necronomicom Linux - Software 8 12-16-2011 06:45 AM
How do I open a text editor in a shell terminal? alex1986 Linux - Newbie 9 11-30-2005 03:52 PM
terminal error with vi editor sridhar11 Debian 1 10-24-2005 01:29 PM
c++ editor in terminal centr0 Linux - Software 8 04-20-2004 04:41 AM
CD-rom acts up don_dimo Linux - Software 6 11-01-2003 10:08 AM


All times are GMT -5. The time now is 01:15 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration