public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* Migrating to Cygwin-X
@ 2010-05-10  4:39 Ajay Jain
  2010-05-10 18:33 ` Mike Ayers
  0 siblings, 1 reply; 2+ messages in thread
From: Ajay Jain @ 2010-05-10  4:39 UTC (permalink / raw)
  To: cygwin-xfree

Hello,

I used to work with Hummingbird Exceed earlier and then shifted to
putty due to lack of an X-server. However, now I would like to move
back to an X environment and therefore experimenting with Cygwin-X. My
setup is that I have a Windows machine and I remotely connect to a
linux box via ssh.

Considering this I have installed Cygwin and then I run startxwin.sh.
This opens an Xterm. Then I follow the following procedure:

1) Do an xterm -T "mercury" to open up xterms with titles.
2) Do an ssh on mercury to login to linux box.

I face the following issues -

1) The name of the new window is not mercury, it has now changed.
Since I need to open many such windows, I need to name them. Can you
tell me how to accomplish the same?
2) I also need to change the default font. Currently it is too small.
I prefer a fixed widht font with UTF-8 character set as default. Can
anybody suggest something?

Many Thanks in Advance,
Ajay.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: Migrating to Cygwin-X
  2010-05-10  4:39 Migrating to Cygwin-X Ajay Jain
@ 2010-05-10 18:33 ` Mike Ayers
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Ayers @ 2010-05-10 18:33 UTC (permalink / raw)
  To: cygwin-xfree

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain;	charset="utf-8", Size: 1071 bytes --]

> From: cygwin-xfree-owner@cygwin.com [mailto:cygwin-xfree-
> owner@cygwin.com] On Behalf Of Ajay Jain
> Sent: Sunday, May 09, 2010 9:39 PM

> 1) Do an xterm -T "mercury" to open up xterms with titles.
> 2) Do an ssh on mercury to login to linux box.
> 
> I face the following issues -
> 
> 1) The name of the new window is not mercury, it has now changed.
> Since I need to open many such windows, I need to name them. Can you
> tell me how to accomplish the same?

	Put this in every one of your .bashrc files (i.e. on every machine):

set_title() {
        echo -ne "\033]0;$*\007"
}

	Then if your autogenerated files gank your title, you can gank it right back:

$ set_title mercury

	Here's a more complete setup:

setup() {
        set_title `hostname`
        export PS1='\h$ '
        unalias PROMPT_COMMAND
}

	Which gets rid of the "write a term title after every command" cutesiness.

	Best solution is to learn how the setup files work and modify them to suit yourself.


	HTH,

Mike

\x16º&s(0Š|_­ç«zÛ«Ÿox÷¹b²Ö«r\x172ƒ\b§ÅúÞ

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-05-10 18:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-10  4:39 Migrating to Cygwin-X Ajay Jain
2010-05-10 18:33 ` Mike Ayers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).