Re: Logging xterm contents to a file.

2008-06-17 Thread Mansoorali Kudsi
Well, many people have asked me about the recompilation of vim.
Here is how it is done:

The souce code looks something like this:

[EMAIL PROTECTED]:/cygdrive/d/xterm-225$ ls
256colres.h XTerm-col.ad  fontutils.h  ptydata.cvttests
256colres.plXTerm.ad  gen-pc-fkeys.pl  ptyx.h   wcwidth.c
88colres.h  aclocal.m4input.c  resize.c wcwidth.h
88colres.pl button.c  install.sh   resize.man   xcharmouse.h
AAA_README_VMS.txt  cachedGCs.c   keysym2ucs.c run-tic.sh   xstrings.c
INSTALL charclass.c   keysym2ucs.h screen.c xstrings.h
Imakefile   charclass.h   link_axp.com scrollbar.c  xterm.dat
MANIFESTcharproc.cmain.c   sinstall.sh  xterm.h
Makefile.in charsets.cmain.h   tabs.c   xterm.log.html
README  config.guess  make.com tektests xterm.man
README.i18n config.submenu.c   termcap  xterm_axp.opt
README.os390configure menu.h   terminfo xterm_io.h
TekPrsTbl.c configure.in  minstall.sh  testxmc.cxtermcap.c
Tekparse.defctlseqs.msmisc.c   trace.c  xtermcap.h
Tekparse.h  ctlseqs.txt   mkdirs.shtrace.h  xtermcfg.hin
Tekproc.c   cursor.c  os2main.cunicode  xutf8.c
Tests   data.cplink.sh util.c   xutf8.h
UXTerm.ad   data.hprecompose.c uxterm
VTPrsTbl.c  doublechr.c   precompose.h version.h
VTparse.def error.h   print.c  vms.c
VTparse.h   fontutils.c   proto.h  vms.h


Issue following commands:
$ ./configure --prefix=/home/mkudsi/bin --enable-logging --enable-toolbar
$ make

This would generate a file xterm.exe. This is your final executable...


Regards,
Mansoorali.


On Wed, May 9, 2007 at 11:08 AM, Mansoorali Kudsi
<[EMAIL PROTECTED]> wrote:
> I recompiled with the --enable-logging option and it has started working!!!
>
> Thanks for the inputs.
>
> On 5/8/07, Thomas Dickey <[EMAIL PROTECTED]> wrote:
>>
>> On Tue, 8 May 2007, Mansoorali Kudsi wrote:
>>
>> > Well, to confirm, I didn't want to print contents of a single screen
>> > but everything which
>> > comes to the screen once I start the "log to file"...
>> >
>> > I hope recompiling xterm with --enable-logging would resolve this
>> > issue...
>>
>> if it doesn't, I get to fix it
>>
>> --
>> Thomas E. Dickey
>> http://invisible-island.net
>> ftp://invisible-island.net
>>
>> --
>> 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/
>>
>>
>

--
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/



Re: Logging xterm contents to a file.

2007-05-08 Thread Mansoorali Kudsi

I recompiled with the --enable-logging option and it has started working!!!

Thanks for the inputs.

On 5/8/07, Thomas Dickey <[EMAIL PROTECTED]> wrote:

On Tue, 8 May 2007, Mansoorali Kudsi wrote:

> Well, to confirm, I didn't want to print contents of a single screen
> but everything which
> comes to the screen once I start the "log to file"...
>
> I hope recompiling xterm with --enable-logging would resolve this issue...

if it doesn't, I get to fix it

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

--
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/




--
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/



Re: Logging xterm contents to a file.

2007-05-08 Thread Thomas Dickey

On Tue, 8 May 2007, Mansoorali Kudsi wrote:


Well, to confirm, I didn't want to print contents of a single screen
but everything which
comes to the screen once I start the "log to file"...

I hope recompiling xterm with --enable-logging would resolve this issue...


if it doesn't, I get to fix it

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

--
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/



Re: Logging xterm contents to a file.

2007-05-08 Thread Mansoorali Kudsi

Well, to confirm, I didn't want to print contents of a single screen
but everything which
comes to the screen once I start the "log to file"...

I hope recompiling xterm with --enable-logging would resolve this issue...

On 5/8/07, Thomas Dickey <[EMAIL PROTECTED]> wrote:

On Tue, 8 May 2007, Gary Johnson wrote:

> On 2007-05-08, Mansoorali Kudsi wrote:
>>  Hi,
>>
>>  Really dumb question. but hope somebody replies to this one?
>>
>>  Is it possible to save the entire contents of a xterm window into a
>>  file? (using anything other than "script")
>>
>>  e.g. for a putty window, we have an option of logging all the contents
>>  of the putty window into a file
>>  just by doing a right click and giving the file name and path in the
>>  properties window.
>>
>>  Do we have a similar option for an xterm window in Cygwin?
>
> Xterm has such an option but the last time I checked (Nov. 2006) it
> was not enabled in the Cygwin xterm binary.  You may have to build
> xterm yourself with the "--enable-logging" configure option.
> Logging can then be enabled and disabled via the Ctrl-left- or
> Ctrl-middle-mouse-button menu.  (I don't remember which and I don't
> have an xterm handy at the moment.)  The log file will be written to
> your $HOME directory with the name XtermLog. where  is the
> process ID of the xterm's process.

well... the logging operation doesn't print the whole window.  It writes
text to a file concurrently with writing it to the screen. That may be
what he wanted, but I read it as printing the current screen to a file.
Where I'm sitting at the moment I don't have cygwin at hand, but since the
printer support in xterm isn't ifdef'd I'd assume it's available in the
Cygwin binary.  (See the top of the control/left mouse menu - grayed out
menu entries are still user-configurable).

Logging historically was ifdef'd because in X11R5 (early 1990's),
the setuid xterm was known to be insecure.  Cygwin doesn't have
setuid xterm, so (if there were a reliable way to determine this
in a configure script), it would be reasonable to always enable
the feature.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

--
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/




--
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/



Re: Logging xterm contents to a file.

2007-05-08 Thread Holger Krull
Thomas Dickey schrieb:
> On Tue, 8 May 2007, Holger Krull wrote:
> 
>> Holger Krull schrieb:
>>> Mansoorali Kudsi schrieb:
>>>
 Is it possible to save the entire contents of a xterm window into a
 file? (using anything other than "script")
>>>
>>> Maybe doing a screen -L in xterm will do what you want. It will create a
>>> file called screenlog that contains all output.
>>
>> I should really think twice before i write. Cygwin has no screen, so
>> this won't work on your local computer.
> 
> fwiw, I didn't recall if cygwin has an official package for script (though
> I use a script program that I found via google a few years ago).
> 
Interestingly enough, someone just mentioned there is a screen for
cygwin here:
http://dellelce.com/code/screen/
I can't get the source to compile, but the exe there still works. And
logging works.



--
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/



Re: Logging xterm contents to a file.

2007-05-08 Thread Thomas Dickey

On Tue, 8 May 2007, Holger Krull wrote:


Holger Krull schrieb:

Mansoorali Kudsi schrieb:


Is it possible to save the entire contents of a xterm window into a
file? (using anything other than "script")


Maybe doing a screen -L in xterm will do what you want. It will create a
file called screenlog that contains all output.


I should really think twice before i write. Cygwin has no screen, so
this won't work on your local computer.


fwiw, I didn't recall if cygwin has an official package for script (though
I use a script program that I found via google a few years ago).

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

--
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/



Re: Logging xterm contents to a file.

2007-05-08 Thread Holger Krull
Holger Krull schrieb:
> Mansoorali Kudsi schrieb:
> 
>> Is it possible to save the entire contents of a xterm window into a
>> file? (using anything other than "script")
> 
> Maybe doing a screen -L in xterm will do what you want. It will create a
> file called screenlog that contains all output.

I should really think twice before i write. Cygwin has no screen, so
this won't work on your local computer.

--
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/



Re: Logging xterm contents to a file.

2007-05-08 Thread Holger Krull
Mansoorali Kudsi schrieb:

> Is it possible to save the entire contents of a xterm window into a
> file? (using anything other than "script")

Maybe doing a screen -L in xterm will do what you want. It will create a
file called screenlog that contains all output.

--
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/



Re: Logging xterm contents to a file.

2007-05-08 Thread Thomas Dickey

On Tue, 8 May 2007, Gary Johnson wrote:


On 2007-05-08, Mansoorali Kudsi wrote:

 Hi,

 Really dumb question. but hope somebody replies to this one?

 Is it possible to save the entire contents of a xterm window into a
 file? (using anything other than "script")

 e.g. for a putty window, we have an option of logging all the contents
 of the putty window into a file
 just by doing a right click and giving the file name and path in the
 properties window.

 Do we have a similar option for an xterm window in Cygwin?


Xterm has such an option but the last time I checked (Nov. 2006) it
was not enabled in the Cygwin xterm binary.  You may have to build
xterm yourself with the "--enable-logging" configure option.
Logging can then be enabled and disabled via the Ctrl-left- or
Ctrl-middle-mouse-button menu.  (I don't remember which and I don't
have an xterm handy at the moment.)  The log file will be written to
your $HOME directory with the name XtermLog. where  is the
process ID of the xterm's process.


well... the logging operation doesn't print the whole window.  It writes 
text to a file concurrently with writing it to the screen. That may be 
what he wanted, but I read it as printing the current screen to a file. 
Where I'm sitting at the moment I don't have cygwin at hand, but since the 
printer support in xterm isn't ifdef'd I'd assume it's available in the 
Cygwin binary.  (See the top of the control/left mouse menu - grayed out 
menu entries are still user-configurable).


Logging historically was ifdef'd because in X11R5 (early 1990's),
the setuid xterm was known to be insecure.  Cygwin doesn't have
setuid xterm, so (if there were a reliable way to determine this
in a configure script), it would be reasonable to always enable
the feature.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

--
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/



Re: Logging xterm contents to a file.

2007-05-08 Thread Thomas Dickey

On Tue, 8 May 2007, Mansoorali Kudsi wrote:


Is it possible to save the entire contents of a xterm window into a
file? (using anything other than "script")

e.g. for a putty window, we have an option of logging all the contents
of the putty window into a file
just by doing a right click and giving the file name and path in the
properties window.

Do we have a similar option for an xterm window in Cygwin?


You should be able to setup a printer, use that to print a screen
(though I've only tested it on Linux, Cygwin is "supposed" to work).
It can be just a shell script that redirects its output to a file.

See the "printerXXX" resources in xterm's manpage.

http://invisible-island.net/xterm/manpage/xterm.html

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

--
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/



Re: Logging xterm contents to a file.

2007-05-08 Thread Gary Johnson
On 2007-05-08, Mansoorali Kudsi wrote:
>  Hi,
> 
>  Really dumb question. but hope somebody replies to this one?
> 
>  Is it possible to save the entire contents of a xterm window into a
>  file? (using anything other than "script")
> 
>  e.g. for a putty window, we have an option of logging all the contents
>  of the putty window into a file
>  just by doing a right click and giving the file name and path in the
>  properties window.
> 
>  Do we have a similar option for an xterm window in Cygwin?

Xterm has such an option but the last time I checked (Nov. 2006) it 
was not enabled in the Cygwin xterm binary.  You may have to build 
xterm yourself with the "--enable-logging" configure option.  
Logging can then be enabled and disabled via the Ctrl-left- or 
Ctrl-middle-mouse-button menu.  (I don't remember which and I don't 
have an xterm handy at the moment.)  The log file will be written to 
your $HOME directory with the name XtermLog. where  is the 
process ID of the xterm's process.

HTH,
Gary

-- 
Gary Johnson | Agilent Technologies
[EMAIL PROTECTED] | Mobile Broadband Division
 | Spokane, Washington, USA

--
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/



Logging xterm contents to a file.

2007-05-07 Thread Mansoorali Kudsi

Hi,

Really dumb question. but hope somebody replies to this one?

Is it possible to save the entire contents of a xterm window into a
file? (using anything other than "script")

e.g. for a putty window, we have an option of logging all the contents
of the putty window into a file
just by doing a right click and giving the file name and path in the
properties window.

Do we have a similar option for an xterm window in Cygwin?

Regards,
Mansoorali.

--
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/