[opensuse-kde] mc-edit? konsole? klipper? something else?
Often I need screen output I don't how to get except to copy it from a selection of Konsole output and paste it into a file. The file I paste into I open for edit with Midnight Commander's internal editor. What happens in pasting is a ton of padding with spaces and/or tabs. Here's an example of an unmodified save: http://fm.no-ip.com/Tmp/Linux/KDE/upd-123-big41-20130914.txt 18013 bytes Here's what I expected (reduced slightly by removal of a few blank lines; reduced an order of magnitude by removal of most spaces and tabs preceding each line's first or second visible character): http://fm.no-ip.com/Tmp/Linux/KDE/upd-123-big41.txt 7118 bytes Where does all that padding come from ($SUBJECT)? How can I make what's pasted look like what's been copied, meaning no spurious invisible characters, without manual intervention? -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde+owner@opensuse.org
Felix Miata said the following on 09/14/2013 06:12 PM:
Often I need screen output I don't how to get except to copy it from a selection of Konsole output and paste it into a file. The file I paste into I open for edit with Midnight Commander's internal editor. What happens in pasting is a ton of padding with spaces and/or tabs. Here's an example of an unmodified save: http://fm.no-ip.com/Tmp/Linux/KDE/upd-123-big41-20130914.txt 18013 bytes
Here's what I expected (reduced slightly by removal of a few blank lines; reduced an order of magnitude by removal of most spaces and tabs preceding each line's first or second visible character): http://fm.no-ip.com/Tmp/Linux/KDE/upd-123-big41.txt 7118 bytes
Its the difference between LF and LF-CR The extra "padding" characters you get because you are taking the screen image. They are not actually in the data stream. What I would do is use 'tee'. zypper up | tee /tmp/savefile.xtx I just tried it and the savefile, when I edit it with gvim, which would show up padding and spurious characters, looks just like what I had seen on screen. All nice and compact :-) -- How long did the whining go on when KDE2 went on KDE3? The only universal constant is change. If a species can not adapt it goes extinct. That's the law of the universe, adapt or die. -- Billie Walsh, May 18 2013 -- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde+owner@opensuse.org
On Sat, Sep 14, 2013 at 06:12:00PM -0400, Felix Miata wrote:
Often I need screen output I don't how to get except to copy it from a selection of Konsole output and paste it into a file. The file I paste into I open for edit with Midnight Commander's internal editor. What happens in pasting is a ton of padding with spaces and/or tabs. Here's an example of an unmodified save: http://fm.no-ip.com/Tmp/Linux/KDE/upd-123-big41-20130914.txt 18013 bytes
Here's what I expected (reduced slightly by removal of a few blank lines; reduced an order of magnitude by removal of most spaces and tabs preceding each line's first or second visible character): http://fm.no-ip.com/Tmp/Linux/KDE/upd-123-big41.txt 7118 bytes
Where does all that padding come from ($SUBJECT)?
mc's internal editor thinks you are typing all that, not pasting
How can I make what's pasted look like what's been copied, meaning no spurious invisible characters, without manual intervention?
change mc to use vim as its internal editor, then :set paste before pasting -- _|_ _ __|_|_ ._ o| |_(_)(_)|_| ||_)||< | -- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde+owner@opensuse.org
Am Sonntag 15 September 2013 schrieb Felix Miata:
Often I need screen output I don't how to get except to copy it from a selection of Konsole output and paste it into a file. The file I paste into I open for edit with Midnight Commander's internal editor. What happens in pasting is a ton of padding with spaces and/or tabs. Here's an example of an unmodified save: http://fm.no-ip.com/Tmp/Linux/KDE/upd-123-big41-20130914.txt 18013 bytes This look like your preferred editor has auto indent switched on. Look for something like that and switch it off.
-- Mit freundlichen Grüßen Matthias Müller (Benutzer #439779 im Linux-Counter http://counter.li.org) PS: Bitte senden Sie als Antwort auf meine E-Mails reine Text-Nachrichten!
participants (4)
-
Anton Aylward
-
Felix Miata
-
Matthias Müller
-
tooth pik