This is the mail archive of the cygwin-talk mailing list for the cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: copying and pasting in the terminal window?

> From: mwoehlke
> Sent: Friday, August 25, 2006 11:16 AM
> Subject: Re: copying and pasting in the terminal window?
> TITTTL'd, as this is becoming a "my terminal emulator is 
> bigger than your terminal emulator" contest.

Oh, it's no contest.


> Gary R. Van Sickle wrote:
> > mwoehlke wrote:
> >> Gary R. Van Sickle wrote:
> >>> mwoehlke wrote:
> >>>> Cygwin also has an rxvt terminal emulator that may be 
> more to your 
> >>>> liking, but I haven't used it and so can't tell you what 
> it's like.
> >>> It's awesome, if you're still using the DOS box change over 
> >>> immediately. Believe me now and thank me later.
> >> Awesome?
> > 
> > Awesome.
> Maybe for you...

Or maybe... for all mankind?

> >> [it] is a PITA to configure,
> > 
> > Mm, no, in the Unixoid scheme of things it's probably one of the 
> > easier programs to configure.  The main trick is (or at 
> least used to 
> > be) getting your delete, home, end, etc keys working right, 
> and I can 
> > send you my magical .initrc to take care of that post-haste.
> What can I say, I like menus.

Well, sure, who *doesn't* like menus?

> 'Settings->Configure Konsole'. 
> See how easy that was?

Since I'm still waiting for the native Windows version, I'm afraid I must
report that no, I didn't see it.

> Console is just as easy.

I'm starting to get confused now: by "Console" you mean the regular cmd.exe
window, right?  Not the other, non-MS "Console" that Marko Bozikovic is
talking about on the cygwin@ list?  I'll assume the former for the remainder
of this post.

So ok, let's take a commonly used setting like, oh, window width:

Rxvt:  'Drag side or corner to the right, window gets bigger.'
Cmd.exe: 'Drag side or corner to the right... well, you can't, so nothing

> rxvt needs 
> command line switches, or something. I shouldn't have to read 
> a manpage for this stuff, as a *good* terminal emulator (like 
> {C|K}onsole) will demonstrate.


1.  You don't need to read a man page, I did all the work for you already in
the last post.
B.  If you have an aversion to command line options, may I humbly suggest
that you stay as far away from anything even remotely Unix as possible? ;-)

> >> has an ugly font,
> > 
> > ???  You can pick whatever font you want, even the cmd one 
> if you want.
> Maybe if I go through that PITA configure process...

...yeah, or copy and paste the command line I gave you.

> but who 
> has time for manpages for something that should be 
> 'View->Font'?

Or 'make window wider'?  I know I don't! ;-)

> I didn't check if Console has documentation, 
> but I've never needed it,

...unless you ever needed to copy and/or paste.  You can't tell me that you
figured out
without any help.

> just like with Konsole. That, and 
> on my other computer (that has Konsole), Cygwin X has no 
> fonts that *aren't* ugly.

??? Then use the non-X rxvt!  It's freedom baby, yeah!

> >> And I
> >> see exactly zero ways in which it is an improvement over Console.
> > 
> > Copy/paste, scrollback buffer, and "Unix-like, X or no X" are three 
> > that immediately come to mind.
> Hello?

That's a big 10-4 good buddy, you're coming in wall to wall, come back.

> Even the CUI subsystem has scroll-back... And Console 
> has the added advantage of NON-Cygwin sessions, which is very 
> useful to me. :-)
> Have you tried the copy/paste in Console? It works just like 
> it does in Konsole or (AFAICT) rxvt.

No, it doesn't, unless we're talking about Marko Bozikovic's Console here,
then I don't know.  And if you're saying that Konsole's copy/paste is the
same as cmd.exe's, well, good night nurse!

> >> Console is awesome, if you're still using rxvt change over 
> >> immediately.
> > 
> > Nope, if you look back you'll turn into a pillar of salt!
> Oh, my, I'm sure you're right. Better not touch rxvt again. :-)
> >> Believe me now and thank me later. :-)
> > 
> > I shall do neither! ;-)
> > 
> >> If you *must* have an X-based terminal emulator for some 
> reason (or 
> >> even just something that isn't using the CUI subsystem under the 
> >> covers), I would strongly recommend Konsole as VASTLY superior to 
> >> xterm/rxvt. You can get an old version... um, somewhere, 
> or wait and 
> >> see if KDE4 makes good on native Windows support (which I 
> guess would 
> >> no longer be X-based, but would also not need an X server).
> > 
> > Well you can rest assured I shall give it a try should they 
> come out 
> > with a native port.
> And it will have all the features of Console AND rxvt in one, 
> and you'll love it. :-)

Coulda shoulda woulda.  Wake me when it ships. ;-)

> > Now in the meantime, get rxvt installed before it's too late!!!  To 
> > get you started, here's the command line of the shortcut 
> I've used for 
> > countless years of cmd-free Cygwinning:
> > 
> > C:\unix\bin\rxvt.exe -tn rxvt-cygwin-native -sr -sl 1000 
> -fn "Lucida 
> > Console-bold-14" -e bash --login -i
> Nice DOS path there... "bash: C:unixbinrxvt.exe: command not 
> found" ;-)

Nonono, don't paste it into bash!  Make a shortcut in your... whatever that
bar is next to the "Start" button... and paste that command line in the
"Shortcut->Target" box.  Now admittedly that's a tab, not a menu, but if
you're like me, you like tabs even more than menus!

> See what I mean about configuration?

Honestly?  No.

> With Console, it took me 
> all of ten seconds to figure out how to change the font, and 
> I didn't have to read anything but menus.

And you do this font-changing often do you?

> Oh, and...
> "rxvt: can't open display"

I think you have either installed the wrong one or have DISPLAY set wrong.

> And no tabs, and no menu, and no status bar,

No need!

> and I can't read 
> anything against the white background

Oh pah-leez.  And regardless, if you don't like it you can change it, as
you've found out below.

> and now I'm going to 
> have to read the manpage, and...
> Ok. So, after reading the manpage for half an hour, I wrote 
> this script that gets me *closer* to what Console does (no 
> manpage required)...
> ----
> #!/bin/bash
> unset DISPLAY
> font="Terminal--9"
> colors() {
> cat << EOF
> --color0 #000000
> --color1 #C00000
> --color2 #00C000
> --color3 #C08000
> --color4 #0000C0
> --color5 #C000C0
> --color6 #00C0C0
> --color7 #C0C0C0
> --color8 #606060
> --color9 #FF6060
> --color10 #60FF60
> --color11 #FFFF60
> --color12 #6060FF
> --color13 #FF60FF
> --color14 #60FFFF
> --color15 #FFFFFF
> }
> rxvt -tn rxvt-cygwin-native -sr -sl 1000 -fn "$font" -fb 
> "$font" -fg 7 -bg 0 -cr '#C0C0C0' -pr 7 `colors` -e bash --login -i
> ----
> ...and I still don't know how to specify width and height. 

...ahhh, me thinks the mwoehlke doth protest too much!  Come over to the
side of awesomeness, my young apprentice!

> rxvt is simply much more lacking in features; end of story.

Is it?  Are you sure you haven't figured out how to specify width and/or
height since you posted this?  Let the power of rxvt flow through you!

Gary R. Van Sickle

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]