Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 18 Aug 2019, 09:01
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
How to copy / paste from a terminal window to this forum?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [18 Posts]   Goto page: 1, 2 Next
Author Message
LNSmith


Joined: 28 Mar 2013
Posts: 40
Location: Lake Macquarie, NSW, Australia

PostPosted: Mon 12 Aug 2019, 21:52    Post subject:  How to copy / paste from a terminal window to this forum?  

I am using the Puppy terminal (bash / command line).
I am unsure about the fsck command.
I want to post my question (with an example fr. fsck) on this forum.
How can I copy & paste from the terminal window to the browser window?

I think some-one knows how to do this!

(1) I can do it (sort-of) by using mtPaint as a screen-grabber.
(2) I know I can "reproduce" the last command (from the command-line interpreter) by typing "^" - the "up" arrow.
Pls help.
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 2027

PostPosted: Mon 12 Aug 2019, 23:46    Post subject:  

urxvt is typically

for copy
Code:

cntrl-alt-c


and paste

Code:

cntl-alt-v


for roxterminal and lxterminal you can simply right click for copy and paste. Fatdog64 has it's own way of doing it which I think is something like cntrl-alt-(right click)

_________________
Find me on minds and on pearltrees.
Back to top
View user's profile Send private message Visit poster's website 
musher0

Joined: 04 Jan 2009
Posts: 14264
Location: Gatineau (Qc), Canada

PostPosted: Mon 12 Aug 2019, 23:57    Post subject:  

Here's another trick to copy
from urxvt or any console
to a GUI application (this forum, e.g., or geany, etc):

-- simply highlight the needed text in the console
by dragging the cursor over it (this copies)

-- in the forum editor (or other GUI app), type Shift-Insert
or click the middle button on the mouse (this pastes)

Complicated, eh? Smile

IHTH
boo.jpg
 Description   
 Filesize   24.31 KB
 Viewed   273 Time(s)

boo.jpg


_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
phat7

Joined: 05 Jun 2015
Posts: 152

PostPosted: Tue 13 Aug 2019, 01:50    Post subject:  

s243a wrote:
urxvt is typically

for copy
Code:

cntrl-alt-c


and paste

Code:

cntl-alt-v
does not work
musher0 wrote:
- simply highlight the needed text in the console
always works in any console
musher0 wrote:
-- in the forum editor (or other GUI app), type Shift-Insert
does not work
musher0 wrote:
click the middle button on the mouse (this pastes)
works in the forum and almost all GUI apps (some block it)
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 2027

PostPosted: Tue 13 Aug 2019, 06:57    Post subject:  

phat7 wrote:
s243a wrote:
urxvt is typically

for copy
Code:

cntrl-alt-c


and paste

Code:

cntl-alt-v
does not work
musher0 wrote:
- simply highlight the needed text in the console
always works in any console
musher0 wrote:
-- in the forum editor (or other GUI app), type Shift-Insert
does not work
musher0 wrote:
click the middle button on the mouse (this pastes)
works in the forum and almost all GUI apps (some block it)


Do you mean the actual console or do you mean a virtual terminal like urxvt or lxterminal. Tell us which puppy you arer using and which terminal. Have you tried installing a different virtual terminal like lxterminal.

_________________
Find me on minds and on pearltrees.
Back to top
View user's profile Send private message Visit poster's website 
rufwoof


Joined: 24 Feb 2014
Posts: 3326

PostPosted: Tue 13 Aug 2019, 07:05    Post subject:  

I like Tilda terminal for its Quake like drop down (toggle). I set F1 (default ?) to show/hide the terminal and set it to full screen (F11). Nice as a alternative launcher for instance F1 mtp <tab> <enter> auto completes and launches mtpaint. Flipping between terminal and browser/whatever is quick-n-easy (F1) and cut/paste are simple right menu click options (drag to highlight). It even supports clickable links, html links are underlined when you mouse over them and clicking a link launches your browser. Multiple tabs are also supported.
_________________
( ͡° ͜ʖ ͡°) :wq
Fatdog multi-session usb

echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh
Back to top
View user's profile Send private message 
phat7

Joined: 05 Jun 2015
Posts: 152

PostPosted: Tue 13 Aug 2019, 10:15    Post subject:  

s243a wrote:
Do you mean the actual console or do you mean a virtual terminal like urxvt or lxterminal.
You mentioned urxvt, not me. ctrl-alt-c is not typical at all.
In legacy Puppies ctrl-alt-c does not work. A plain urxvt works like a real terminal and allows only selection copy. In newer puppies urxvt is pimped with perl extensions. They allow you to copy to the clipboard and do other fancy things not possible with a terminal. The only common way for terminal and consoles is selection copy. A keyboard shortcut for copy is needless.
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 5252
Location: King's Lynn, UK.

PostPosted: Tue 13 Aug 2019, 16:20    Post subject:  

s243a wrote:
Do you mean the actual console or do you mean a virtual terminal like urxvt or lxterminal? Tell us which puppy you arer using and which terminal. Have you tried installing a different virtual terminal like lxterminal?


For chrissakes, man, that's nit-picking for the sake of it, and you know it.

Agree that different terminals/virtual consoles (whatever you want to call them) do support different protocols/ways of implementing things. Some have right-click context menus, some don't. But one constant I will agree with both musher0 and phat7 on; in my experience, the single method that almost always works is highlight to copy, followed by middle-click to paste.....regardless of location. The apps that don't support middle-click to paste are very few & far between.

(And why drag 'ctrl-alt-c/v' into it? That's typically Windoze territory, and in this kind of 'usual' thread just serves to confuse the issue...) Razz


Mike. Wink
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 14264
Location: Gatineau (Qc), Canada

PostPosted: Tue 13 Aug 2019, 22:36    Post subject:  

For reference:
https://stackoverflow.com/questions/7123709/how-to-paste-into-a-terminal
Shift-Insert will work, but you need to have copied something in the buffer
beforehand.
Wink If nothing is in the buffer, it will copy nothing. (Ah, logic!)

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
phat7

Joined: 05 Jun 2015
Posts: 152

PostPosted: Tue 13 Aug 2019, 22:47    Post subject:  

musher0 wrote:
Shift-Insert will work
Have you tried it? Which Puppy version?
Shift-Insert pastes the buffer into a console but not into a GUI app. like the forum.
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 14264
Location: Gatineau (Qc), Canada

PostPosted: Wed 14 Aug 2019, 03:28    Post subject:  

Quote:
Hi!

Yep. The above proves it works, I just did it! Smile

To answer your question: in any Puppy, with any "term" (urxvt, MLTerm, etc.).

First, copy the required text in the console by highlighting it, as said previously;

second, focus (left-click with your mouse) in this forum's editor (or the target GUI app);

third, type Shift-Insert (or mouse middle-click) in the GUI application.

There you go: the text you copied in the terminal is now pasted in the GUI app.

~~~~~~~~~~~
For the record, I never had a problem with this, except in very recent Pups, when the
udev/evdev driver did not recognize my trackball mouse. I had to find and add an udev/
evdev config file specially for my brand of trackball mouse, but after that, the default
behavior came back and was ok.

Do you have a trackball or similar fancy mouse? That may explain your problem. If you
need this special udev/evdev config file, I've included it in either jrb's upupBB32-light
thread or in my thread for josejp2424's BusterPup-32. In any case, I found the original
on a specialized forum: anyone can research it on the Web.

BFN.

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
phat7

Joined: 05 Jun 2015
Posts: 152

PostPosted: Wed 14 Aug 2019, 04:22    Post subject:  

musher0 wrote:
Quote:
Hi!

Yep. The above proves it works, I just did it! Smile
I am now in Dpup Stretch and I can assure you that it does NOT work!

I assume that you use urxvt. One of the foolish things urxvt is customized to do is to send a selection not only to the buffer but also to the clipboard. You can easily check it with your clipboard manager. This is why you think that in a GUI Shift-Ins lets you paste the buffer when in fact it does the same as Ctrl-V and pastes the clipboard.

Try to select any text from any other source than urxvt, You can try LXterminal or some text from your editor or this forum. You will see that middle click pastes the buffer but not Shift-Ins.
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 14264
Location: Gatineau (Qc), Canada

PostPosted: Wed 14 Aug 2019, 07:07    Post subject:  

Hi phat7.

The two real console applications I know well are MLTerm and urxvt. Shift-Insert works
in both of them.

If you want to do fancy juggling between console buffers, may I suggest xclip or xsel.
But normally one should not have to do such juggling.

I stay away for the pseudo-consoles such as LXTerminal, ROXTerminal, etc. They are
hybrids incorporating too many GUI features for my taste, and IMO, they are not
representative of real consoles.

We humans have five fingers per hand.That's ten fingers for two hands: obvious. My
point is that a single hand used as a whole (controlling a mouse) is clumsier and slower
than ten trained fingers used individually (on a keyboard).

The brain-eye-fingers coordination is much more precise and, again IMO, more
conducive to good learning.

I am sincerely sorry Shift-Insert is not working for you: It is such a handy shortcut.

BFN.

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
phat7

Joined: 05 Jun 2015
Posts: 152

PostPosted: Wed 14 Aug 2019, 08:13    Post subject:  

musher0 wrote:
The two real console applications I know well are MLTerm and urxvt. Shift-Insert works
in both of them.
Shift-Insert works in all terminals/consoles, it does not work in other GUI apps. Make the test as I asked you and you will see. Sorry that my explanations caused you confusion. English is not my first language.
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 13282
Location: Arizona USA

PostPosted: Wed 14 Aug 2019, 11:02    Post subject:  

The OP asked how to copy text from a "terminal" (which I assume could be anything that looks and acts like a terminal, such as LXTerminal) and paste it into the forum.

I'm using BionicPup32, which has an icon on the desktop that opens LXTerminal, so LXTerminal is what I used for this test. I found that if I simply highlighted some text in LXTerminal without right-clicking and choosing Copy, Shift+Insert didn't paste the highlighted text into the forum. If I right-click the highlighted text and choose Copy, then Shift+Insert pastes the highlighted text into the forum's compose window.

Isn't that an answer to the question?
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [18 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0672s ][ Queries: 13 (0.0086s) ][ GZIP on ]