DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 11th May 2008
WeakSauceIII WeakSauceIII is offline
Port Guard
 
Join Date: May 2008
Posts: 36
Default Should be easy.... Keyboard copy n paste

The mouse highlight / middle click works fine but it's inefficient to have to use a mouse when i'm working in a console. I have 4.3 running fluxbox and eterm as the terminal. tcsh as the shell. Can you highlight text or otherwise copy/paste words without the mouse? I'm sure you can but I haven't run across anything. Anyone got a link that explains or a command to point me in the right direction? i'd like to be able to ctrl-shift-left and highlight the last word at the console and copy it elsewhere al la windows.
Reply With Quote
  #2   (View Single Post)  
Old 11th May 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

You would need to read your shells manual pages, particularly the line editing.

vi and emacs style line editing is available in most mainstream shells. I'm not sure if they implement the editors concept of yank/kill but it's worth a look.
__________________
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''.
Reply With Quote
  #3   (View Single Post)  
Old 11th May 2008
WeakSauceIII WeakSauceIII is offline
Port Guard
 
Join Date: May 2008
Posts: 36
Default

ok, it seems that tcsh uses emacs for line editing. I will read up on that.
Reply With Quote
  #4   (View Single Post)  
Old 11th May 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

tcsh supports both emacs and vi styles, most shells however default to emacs ;-)


I personally use Vim and NVi for text editing but have found vi line editing tends to be a bit like overkill for interactive shell sessions, where the text to be edited is often quite small.
__________________
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''.
Reply With Quote
  #5   (View Single Post)  
Old 11th May 2008
WeakSauceIII WeakSauceIII is offline
Port Guard
 
Join Date: May 2008
Posts: 36
Default

i got it now. alt B and alt F skip backwards and forwards a word at a time, alt D and alt backspace cut the previous or subsequent word and ctrl y pastes the word.
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
X-Window style copy&paste in MS Windows? Carpetsmoker Other OS 11 16th October 2008 10:43 AM
Cut and Paste with aterm revzalot OpenBSD General 6 13th August 2008 11:18 PM
Simple/easy ircd Weaseal FreeBSD Ports and Packages 0 17th July 2008 12:31 PM
KDE app for easy Wireless connection coppermine FreeBSD Ports and Packages 4 17th May 2008 07:33 PM
very easy and powerfull way for make ISO file mfaridi FreeBSD Ports and Packages 25 14th May 2008 09:12 AM


All times are GMT. The time now is 10:47 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick