LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-07-2005, 05:14 PM   #1
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Rep: Reputation: 30
some console questions


i just wanted to know if there's any way to scroll up in the console, i know some terminal emulators have a scrollbar, but i'm using xterm and it doesnt have one. and what if i havent started X yet and i'm just at the basic console, how can i scroll up then? also, is there any way i can copy and paste text from a terminal window? sometimes when i get errors and stuff, i need to copy the error to a separate file or a web browser to check it out, but i usually have to type it because i cant copy text out of xterm. sometimes i can redirect the output into a text file and capture the errors or whatever i need, but not always.
 
Old 10-07-2005, 05:23 PM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
I think you can scroll holding shift and page up/page down. I'm not sure. To copy/paste from a terminal, select everything you want to copy and press the mouse-middle button to copy and paste. If you have a two button mouse, you may need to edit your xorg file to enable 3 buttons emulation.

You can also redirect the out put of any command, including errors, to a text file. Read this to learn a little about redirection in Linux:

http://www.linuxquestions.org/questi...26#post1865326

That whole thread was quite interesting.

Regards!
 
Old 10-07-2005, 06:43 PM   #3
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Original Poster
Rep: Reputation: 30
well, pressing both buttons at once will copy what i have highlighted in xterm into the xterm prompt, but what if i wanted to copy it straight into linuxquestions post? i guess i'd have to echo what it copies into the prompt to a text file, then open that with abiword or something, then copy it into the post.
 
Old 10-07-2005, 08:20 PM   #4
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
It should copy-paste the text directly into the browser.

Did you try to paste using the Edit->Paste menu or the Ctrl-V shortcut? That won't work. As far as I understand it, there are two distinct "clipboards." I may not be saying this the right way, but highlighting text in an xterm automatically copies it, but it does not put that text into the clipboard used by the Edit->Paste menu item or the Ctrl-V shortcut. You have to do the simultaneous click to paste it.

You also have to be very, very careful. When you switch over to the browser that you don't highlight any text. If you do, the highlighted text in the browser will overwrite the text you selected in the xterm.
 
Old 10-07-2005, 08:32 PM   #5
Thorium
Member
 
Registered: Dec 2004
Location: USA
Distribution: Debian
Posts: 124

Rep: Reputation: 15
You can add:

| less

to any thing you do in the console as well to let you scroll around in the results. So for example:

glxinfo | less

That's a verticle line in case it looks like an L or an i.
 
Old 10-07-2005, 09:48 PM   #6
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Original Poster
Rep: Reputation: 30
thx for the tip on less, i've been using more, but less is much nicer i havent been able to paste any text from xterm to my browser by hitting the two buttons simultaneously. it will copy it to the xterm prompt, and it works for applications that run in the terminal, like pico. even after i close the window and open a new terminal, what i copied is still on that "clipboard". it seems to work fine except that i cant copy it to firefox or any other X apps.

Last edited by slinky2004; 10-07-2005 at 09:55 PM.
 
Old 10-08-2005, 06:38 AM   #7
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Once you've hit the two buttons simultaneously to copy from the xterm, use CTRL + V on firefox to paste it. It should work... I guess...
 
Old 10-08-2005, 10:16 AM   #8
urticadioica
LQ Newbie
 
Registered: Oct 2005
Posts: 14

Rep: Reputation: 0
X window system has a weird way of handling copy/paste. Anything you highlight with the mouse is already copied. To paste it, you hit the middle mouse button, as the other posters said.

You can get a scrollbar in xterm, if you really want it. Put the line:

XTerm.scrollBar: True

in your ~/.Xdefaults file.

I'm personally not too font of xterm. My favourite x terminal is urxvt, followed by aterm and rxvt. You may want to check those out.

There are some system consoles with a way to scroll up. I know you can do it on FreeBSD. On Linux, I'm not sure. Anyway, you don't need to bother with that. Look up GNU screen, and watch all your console problems disappear!

Good luck!
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Few questions about the console Chris97b SUSE / openSUSE 3 01-01-2005 09:28 AM
How to Run Win32 Console App in linux Console Lokie Linux - Software 2 08-12-2004 10:00 PM
gdm and login console questions c31c Slackware 12 07-02-2004 06:32 AM
X server in console 1 crashes on return from console 2 fieldmethods Red Hat 4 09-05-2003 12:12 AM
questions about authentication and control+c in console applications punt Linux - General 1 11-29-2001 11:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:15 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