RE: Shall we not use ROOT in cygwin at all ?

From: Fine, Valeri <fine_at_bnl.gov>
Date: Thu, 25 Jun 2009 11:09:27 -0400

>
> Hi Valeri
>
> Sorry for flooding the list. I think I got the solution based on all
the
> discussion of the thread. The following is the steps in case others
are
> interested in. In any of the xterm,
>
> o type "cygstart root" which leads a console with root prompt.
> o pull down the console menu and click on the properties
> o then click on options
> o check the "QuickEdit Mode" box and click OK.
> o check the "Save properties for future windows with the same titles.
>
> Through all these steps, I can use the VC++ version almost in the same
> manner of GCC version in cygwin.

Yes it should work.
One more comment.
It is not convenient to set QuickEdit the way you described:

> o pull down the console menu and click on the properties
> o then click on options
> o check the "QuickEdit Mode" box and click OK.
> o check the "Save properties for future windows with the same titles.

Because one has to do that each time, he/she creates the new console with the new title.
You can change the global default instead. To change the default one has to edit the "Windows registry" entries.

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Console]
"QuickEdit"=dword:00000001
"ScreenBufferSize"=dword:012c0050

There are two ways to do that

  1. Manually 1.1 Start "regedit" application 1.2. Find the HKEY_CURRENT_USER\Console folder 1.3. add or update there the value for the "QuickEdit"
  2. "Automatically" 2.1. create the "registry script" text file, for example "console.reg" 2.2. add there the lines as above:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Console]
"QuickEdit"=dword:00000001
"ScreenBufferSize"=dword:012c0050

         2.3. Save this file
         2.4. Click it fromm the "File Browser".
             The browser should invoke the "regedit" for you and edit
the entries.  

As soon as you do this each new console will come up with the "QuickEdit' check box checked.

You are advised to change the default console size. Normally I set the number of the rows to "9999"

Of course, this is not perfect solution. The right solution is to install http://sourceforge.net/projects/console and use it ( http://sourceforge.net/dbimage.php?id=81523 )

           Hope this helps, Valeri

>
> Thanks for all the helps
> --Wei
>
>
> Fine, Valeri wrote:
> > Hi Vlad,
> >
> > Thank you for your hint.
> >
> > Frankly, I have not tried to use ROOT from cygwin console. I did not
see
> any needs for that.
> >
> > Normally, I use the http://sourceforge.net/projects/console as
console
> and either MS Studio or the notepad++ http://notepad-
> plus.sourceforge.net/uk/site.htm as a text editor.
> >
> > What I have been trying to explain that we are speaking about is
NOT
> GCC vs VC++ topic . It is Win32 vs X11 issue. The person wants to use
X11
> based application and want to compile it with GCC. Ok he can. However,
I
> do not want this conversation to confuse the other ROOT users.
> >
> > Thank you, Valeri
> >
> > ________________________________
> >
> > From: Vladimir Savinov [mailto:vladimirsavinov_at_gmail.com]
> > Sent: Thu 6/25/2009 12:12 AM
> > To: Fine, Valeri
> > Cc: Wei Xie; ROOT Talk
> > Subject: Re: [ROOT] Shall we not use ROOT in cygwin at all ?
> >
> >
> > Hi Valeri,
> > no - it's the same well-known problem
> > (that starting ROOT from inside CYGWIN
> > by just typing "root" or "root.exe" causes
> > this weird condition - however, it's irrelevant,
> > as there are always many ways to skin a cat:
> > e.g., in case of ROOT from inside CYGWIN,
> > it's all very simple: ROOT compiled with
> > VC++ is NOT an X11 application, so one should
> > expect that the right way to start it from CYGWIN is
> >
> >
> > cygstart applicationname
> >
> >
> > just try something like
> >
> >
> > cygstart acroread
> >
> > cygstart acrobat
> >
> > cygstart explorer
> >
> > etc etc
> >
> > so for ROOT compiled with VC++
> >
> > it is, naturally,
> >
> > cygstart root
> > or
> > cygstart root.exe
> >
> > v
> >
> >
> >
> >
> > Fine, Valeri wrote:
> >
> > Can you start "root.exe" rather "root" ?
> >
> > ________________________________
> >
> > From: Vladimir Savinov [mailto:vladimirsavinov_at_gmail.com]
> > Sent: Wed 6/24/2009 10:07 PM
> > To: Wei Xie
> > Cc: Fine, Valeri; ROOT Talk
> > Subject: Re: [ROOT] Shall we not use ROOT in cygwin at all ?
> >
> >
> >
> > do
> >
> >
> > cygwin:c> cygstart `which root`
> >
> >
> >
> >
> > Wei Xie wrote:
> >
> >
> > Hi Valeri
> >
> > Thanks for all the feedbacks.
> >
> > I did try what's mentioned in the following. The
difference is
> I
> > directly downloaded the binary of VC++ from ROOT website
> instead
> > building it myself. When run ROOT, it hangs after
printing out
> the
> > version number as the following. Will it make a
difference if
> I build
> > the ROOT myself? I have no problem to run the gcc
version of
> ROOT.
> >
> > ////////////////////////
> > cygwin:c>root -b
> > *******************************************
> > * *
> > * W E L C O M E to R O O T *
> > * *
> > * Version 5.22/00 17 December 2008 *
> > * *
> > * You are welcome to visit our Web site *
> > * http://root.cern.ch <http://root.cern.ch/>
> <http://root.cern.ch/> <http://root.cern.ch/> *
> > * *
> > *******************************************
> >
> > ROOT 5.22/00 (trunk_at_26997, Jan 05 2009, 10:56:00 on
win32)
> >
> > CINT/ROOT C/C++ Interpreter version 5.16.29, Jan 08,
2008
> > Type ? for help. Commands must be C++ statements.
> > Enclose multiple statements between { }.
> > //////////////////////////////////////////////
> >
> > Cheers
> > --Wei
> >
> >
> > Fine, Valeri wrote:
> >
> >
> > The advantage I referred is really
because I'm a
> Linux user. The way
> >
> >
> > to
> >
> >
> > use GCC version of ROOT in cygwin is
exactly the
> same as in a linux
> > machine. One can run ROOT in a xterm in
any
> directory and can also use
> > mouse to copy any text into the root
prompt.
> >
> >
> > You do build ROOT using Cygwin and Visual C++
right now.
> You can use the
> > Cygwin shell console to start the ROOT (compiled
with
> Visual C++ ) too.
> >
> > To do that you need to set ROOTSYS and PATH
environment
> variable
> > (compare, on linux you need to set PATH and
> LD_LIBRARY_PATH)
> > Let's assume you built ROOT with cygwin under
"~/root"
> directory
> > Can you keep that cygwin widget open and set
> >
> > cd ~/root
> > export ROOTSYS=`pwd`
> > export PATH=$ROOTSYS/bin:$PATH
> > root.exe
> >
> > So the only difference between Linux and Windows
is the
> name of the
> > second variable (PATH) to set.
> >
> > Can you try that?
> >
> >
> > Thank you.
> >
> >
> >
> >
> >
> >
> >
>
>
> --
> Dept. of Physics, Purdue Univ.
> 525 Northwestern Ave., West Lafayette, IN 47907
>
> http://www.physics.purdue.edu/people/faculty/wxie.shtml
> Tel: 765-494-8743, Fax: 765-494-0706
> _______________________________________________________
Received on Thu Jun 25 2009 - 17:09:34 CEST

This archive was generated by hypermail 2.2.0 : Thu Jun 25 2009 - 23:50:01 CEST