LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Terminal that acts more like an editor (https://www.linuxquestions.org/questions/linux-software-2/terminal-that-acts-more-like-an-editor-311313/)

Z505 04-09-2005 12:59 AM

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.

kencaz 04-09-2005 01:12 AM

Emacs is vary capable... It should do most of what you need.

KC

jschiwal 04-09-2005 01:44 AM

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.

Z505 04-09-2005 01:46 AM

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.

Z505 04-09-2005 01:53 AM

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?

kencaz 04-09-2005 01:55 AM

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

jschiwal 04-09-2005 03:57 AM

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.

puffinman 04-09-2005 03:58 AM

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.


All times are GMT -5. The time now is 06:16 PM.