Re: How to add a title to xterm
On Wed, 7 Dec 2005 06:54:41 -, fergus <[EMAIL PROTECTED]> wrote: > > > How to add a title to xterm? > > I do not use startx: for me, it sets up unnecessary or inconvenient > defaults. You can always set the xterm title by sending it the string: Esc ] 0 ; ^G . You can do it from the xterm application (writing to /dev/tty or stdout if its connected, or externally, by writing to /dev/tty [Cygwin] or /dev/pts/ [Linux]). Bellow is a small script that update the title if it is run on an interactive xterm (the 2nd is a tty emulator written here). Ehud #! /bin/sh -e # this script sets the TTY title to 1st argument # -- if [ -t 1 ] ; then # do only if stdout is terminal TTL=`echo "$1" | sed -e "s/ [ ]*/ /g"` # any length of spaces to 1 space case "$TERM" in xter* ) echo "\033]0;$TTL\a\c" # write it to xterm window title ;; npc* ) DTTL=`echo "$TTL\c" | od -An -tu1 -v | tr "\012" " " | sed -e "s/ [ ]*/;/g"` echo "\033[=/${DTTL:1:999};253;t\c"# For Mivtach Simon TTY ;; esac fi ## set_tty_title ## -- Ehud Karni Tel: +972-3-7966-561 /"\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D <http://www.keyserver.net/>Better Safe Than Sorry -- 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/
F1 & F4 do not work with xwin-6.8.1.0-10
nitMultiWindowWM - Calling pthread_mutex_lock () MIT-SHM extension disabled due to lack of kernel support XFree86-Bigfont extension local-client optimization disabled due to lack of shared memory support in the kernel (--) Setting autorepeat to delay=500, rate=31 (--) winConfigKeyboard - Layout: "0409" (0409) (--) Using preset keyboard for "English (USA)" (409), type "4" (--) 5 mouse buttons found Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list! winInitMultiWindowWM - pthread_mutex_lock () returned. winProcEstablishConnection - Hello winInitClipboard () winProcEstablishConnection - winInitClipboard returned. winClipboardProc - Hello DetectUnicodeSupport - Windows NT/2000/XP winClipboardProc - DISPLAY=127.0.0.1:0.0 winMultiWindowXMsgProc - pthread_mutex_lock () returned. winMultiWindowXMsgProc - pthread_mutex_unlock () returned. winInitMultiWindowWM - pthread_mutex_unlock () returned. winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0 winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0 winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened the display. winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the display. winClipboardProc - XOpenDisplay () returned and successfully opened the display. -- Ehud Karni Tel: +972-3-7966-561 /"\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D <http://www.keyserver.net/>Better Safe Than Sorry
Re: Emacs crashing under XFree86-4.3
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 15 Mar 2004, Zdzislaw Meglicki wrote: > > These are tidings of great sorrow and melancholy, for ever since I > upgraded X11 on my Cygwin workstation (about a week ago) I lost my > reliable faithful friend, GNU Emacs, whose X11 version crashes often > and unpredictably with segmentation fault (the "nox" version runs > fine). On Mon, 17 Mar 2004, Rajesh Balakrishnan wrote: > > emacs (under X11) is working fine since Mar 06 snapshot of cygwin1.dll. > http://cygwin.com/snapshots/ > > Try it out. I had some problems with the 2004-03-06 snapshot (or the XWin server 4.3.0.50), but since my last update Emacs works fine. I use: XWin X Server 4.3.0.55 cygwin1.dll 1.5.8s(0.111/4/2) - 2004-03-12 18:34:47 snapshot I noted also that the clipboard problems has been fixed. Ehud. - -- Ehud Karni Tel: +972-3-7966-561 /"\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D <http://www.keyserver.net/>Better Safe Than Sorry -BEGIN PGP SIGNATURE- Comment: use http://www.keyserver.net/ to get my key (and others) iD8DBQFAWBsbLFvTvpjqOY0RApruAJ0Saa9IcQSvoW3/iLf+xrRF0npwjgCfWWrY l1hCz3ldyfzV+dZ9E0NUbX8= =L3ou -END PGP SIGNATURE-
Re: reset/terminate problems; preventing multiple XWin instances
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, 03 Mar 2004 23:57:22 +0200, [EMAIL PROTECTED] wrote: > > On 29-02-2004 14:11, Takuma Murakami wrote: > > >> As for preventing multiple instances of XWin > > This feature is already implemented in my local tree (not > > port based but mutex based detection). > > I see that it's in 4.3.0-50 and working well, but I don't see how the > current implementation addresses the common task I mentioned: >"open an xterm; run XWin first if needed" > If I use a batchfile that always runs XWin and then xterm, from the 2nd > invocation onwards it will produce the error popup reporting a "Fatal > error" and directing me a to log file... Not quite what's needed here.[1] I have a similar problem on Linux (I use VNC virtual DISPLAY). My solution is to use a shell script and check for the open port by trying to connect to it. If this fails 5 times, I assume it is not existing and do whats needed (I do check from remote computers too, so "whats needed" varies). If the connection succeeds the application is run with this DISPLAY. I wrote a small program that does the connect with timeout, and a simple bash script that ensures killing the test program if it hangs (which sometimes occurs). Ehud. - -- Ehud Karni Tel: +972-3-7966-561 /"\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D <http://www.keyserver.net/>Better Safe Than Sorry -BEGIN PGP SIGNATURE- Comment: use http://www.keyserver.net/ to get my key (and others) iD8DBQFAR0cpLFvTvpjqOY0RAicrAJ9UfYPtmrdkZAEWvN0Wfn0dLT6iTACfW5ih RTiI7UHJFx241QhRVoJ6V8w= =Omh6 -END PGP SIGNATURE-
Re: New log file header
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 02 Mar 2004 23:38:52 -0500, Harold L Hunt II <[EMAIL PROTECTED]> wrote: > > The new header in the log file, as of XFree86-xserv-4.3.0-49, looks like > the following: > > === > Welcome to the XWin X Server > Vendor: The Cygwin/X Project > Release: 4.3.0.49 > Contact: cygwin-xfree at cygwin daught com > > XWin was started with the following command line: > > XWin :0 -multiwindow -clipboard > > ddxProcessArgument - Initializing default screens > [...] > === This change is very good, but there are 2 notes: 1. The Identification (Welcome ... Contact) appears twice (at the top and just after "winInitializeDefaultScreens". 2. Could you add a time-stamp at beginning of each line ? I tried to correspond the log messages with external actions (i.e. copy/paste and Emacs errors) and the time stamp could help. I use the code below in my programs. BTW. I could not download 4.3.0-50 from the mirrors yet. Ehud. #include #include /* for day / hour check */ void write_date_time ( FILE *fl ) ; /* write date & time in "dd/mm/yy HH:MM:SS " */ void write_date ( FILE *fl ) ;/* write date in "dd/mm:yy " */ void write_time ( FILE *fl ) ;/* write time in "HH:MM:SS " */ static int get_ofst ( void ) ; /* compute offset from GMT */ static int sec_ofst = 1 ; /* seconds offset from Greenwich M. T. */ static int saved_day = 99 ; /* initial high value */ static char p_date [ 10 ] ;/* edited date - dd:mm:yy */ void write_date_time ( FILE *fl ) /* write date & time in "dd/mm/yy HH:MM:SS " */ { write_date ( fl ) ; /* write date */ write_time ( fl ) ; /* write time */ } /*===*/ void write_date ( FILE *fl ) /* write date in "dd/mm:yy " */ { if ( sec_ofst == 1 ) sec_ofst = get_ofst ( ) ; /* get offset (1 time only) */ fprintf ( fl , "%s " , p_date ) ; /* dd:mm:yy_ format */ } /*===*/ void write_time ( FILE *fl ) /* write time in " HH:MM:SS " */ { int sec, min, hr; time_t tloc ; /* seconds from 1/1/1970 0.0.0 GMT */ if ( sec_ofst == 1 ) sec_ofst = get_ofst ( ) ; /* get offset (1 time only) */ time (& tloc) ; /* get gmt seconds from 1/1/1970 */ tloc += sec_ofst ; /* seconds - local time */ sec = tloc % 60 ; /* seconds = time MOD 60 */ tloc /= 60 ;/* convert to minutes */ min = tloc % 60 ; /* minuets = (time/60) MOD 60 */ tloc /= 60 ;/* convert to hours */ hr = tloc % 24 ;/* hours = (time/3600) MOD 24 */ tloc /= 24 ;/* days (local time) */ if ( tloc > saved_day ) /* day change ? */ sec_ofst = 1 ; /* re-compute date next time */ saved_day = tloc ; /* save days (local time) */ fprintf ( fl , "%02d:%02d:%02d ",hr,min,sec) ; /* _hh:mm:ss_ format */ } /*===*/ static int get_ofst ( void ) /* compute offset from GMT */ { #define FDAY 86400 /* full day in seconds 24*60*60 */ #define HDAY 43200 /* half day in seconds */ struct tm ofst; time_t tloc ; /* seconds from 1/1/1970 0.0.0 GMT */ int sec_ofst ; time (& tloc) ; /* get current time */ ofst = *gmtime (& tloc) ; /* find GMT hour */ sec_ofst = ( ofst.tm_hour * 60 + ofst.tm_min ) * 60 + ofst.tm_sec ; /* GMT hour (in seconds) */ ofst = *localtime (& tloc) ;/* find local hour */ sec_ofst = ( ( ofst.tm_hour * 60 + ofst.tm_min ) * 60 + ofst.tm_sec - sec_ofst + FDAY ) % FDAY ; /* Local - GMT hours (in seconds, 0-FDAY) */ if ( sec_ofst > HDAY ) sec_ofst -= FDAY ; /* sec_ofst in range -11:59:59 +12:00:00 */ sprintf ( p_date , "%02d/%02d/%02d" , /* save date */ ofst.tm_mday , ( ofst.tm_mon + 1 ) , ( ofst.tm_year % 100 ) ) ; return ( sec_ofst ) ; } /**/
Emacs and snapshots (was Crashes of snapshot20040225 with Win95)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 26 Feb 2004 09:19:59 -0400, Rodrigo Medina <[EMAIL PROTECTED]> wrote: > > Snapshot 20040225 also crashes some programs in Win95. > GNU Chess 5.05, that works with 1.5.5-1, crashes; Xwin also crashes in the > same function of cygwin1.dll. I report gnuchess as it is a stable, simpler > program than XWin. I reported here that Emacs crashes with 1.5.7 and the following snapshots, but I also worked on Emacs for long hours without crashes. This mail made me think. The crashes were at home where I work with Xwin, while the long sessions were at work where I work with another X server. I'll check it more (I can run this X server at home too), but until all Xwin problem are cleared we should assume that Emacs crashes because of the X server. Ehud. - -- Ehud Karni Tel: +972-3-7966-561 /"\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D <http://www.keyserver.net/>Better Safe Than Sorry -BEGIN PGP SIGNATURE- Comment: use http://www.keyserver.net/ to get my key (and others) iD8DBQFAPf3FLFvTvpjqOY0RAmgWAJ9hbfo3UP9oJeZJKyAumbXOVloXXACfVxfv r6mDL4mFcGhNqtwkgVDWVSo= =g/EE -END PGP SIGNATURE-
Re: emacs paste from windows
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 24 Feb 2004 08:41:23, Elvin Peterson wrote: > > Does the clipboard paste from Windows to Emacs under X > work? I am able to paste from Emacs to Windows > programs, but nothing happends when I try the reverse. It works for me. Check 2 things: 1. That you use the clipboard with Xwin (-clipboard) in startxwin. From your ability to paste into windows it seems it is set. 2. Check the function your mouse click uses to paste (by C-h k). The function that works for me is `x-get-selection'. Ehud. - -- Ehud Karni Tel: +972-3-7966-561 /"\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D <http://www.keyserver.net/>Better Safe Than Sorry -BEGIN PGP SIGNATURE- Comment: use http://www.keyserver.net/ to get my key (and others) iD8DBQFAPFjwLFvTvpjqOY0RApv4AJ9dNkEAEgL8jZytKuv0z82akHH6IQCfYCmi cIrKDrj68xO8E+1nd4T3lJ0= =j8UM -END PGP SIGNATURE-
Re: ssh/X with two hops
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, 3 Sep 2003 20:49:47 -0600, Robert Mecklenburg <[EMAIL PROTECTED]> wrote: > > AG> Most likely X11Forwarding is disabled on that host. > AG> > AG> check /etc/ssh/sshd_config for an entry > AG> X11Forwarding yes > > That's it! Works perfectly. Thanks! Although you solved your problem I propose to use VNC (GPLed, from http://www.realvnc.org or one of its clones). It has several advantage on running Emacs with X11 forwarding. 1. It allows you to run anything on your office machine and see it on your home machine - not just X11 applications. 2. It is stateless - if the communication fails for any reason, you can reconnect and resume your work (like `screen' for ttys). 3. You have the options to connect "read only" and have multiple connections. I know you can achieve 2 & 3 with Emacs on multiple X's too, but it is more complicated, and from my experience it fails more often. You'll still need the ssh to securely connect and tunnel through your firewall, but you can disable the X11 forwarding (which is done on your gateway machine and is considered security breach by some). Ehud. - -- Ehud Karni Tel: +972-3-7966-561 /"\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ mailto:[EMAIL PROTECTED] Better Safe Than Sorry -BEGIN PGP SIGNATURE- Comment: use http://www.keyserver.net/ to get my key (and others) iD8DBQE/V0UvLFvTvpjqOY0RAgOrAJkB5mErvrwkV7MiAGhQl4szyuGmcwCeNhtc /WyXux+QvJ+5tESL9P13kU8= =5lFV -END PGP SIGNATURE-
Re: Uses for Cygwin/XFree86
On Sun, 27 Oct 2002 20:43:20 +0100, Steinar Bang <[EMAIL PROTECTED]> wrote: > > >>>>> Rick Umali <[EMAIL PROTECTED]>: > > > I captured the screen shots into Paint Shop Pro, and saved the > > images directly to JPG. I didn't save them into BMP, unfortunately. > > Once you have saved them as JPEGs, the blurring has already occurred. > > What happens is that sharp transitions are blurred because of the > quantization done by the JPEG algorithm. Basically, the high > frequency components in the image are chopped away. May I suggest the use of Irfan view ( http://www.irfanview.com/ ). It is a freeware, It can capture the whole screen (or a window) and save it in many formats (including png). Ehud. -- Ehud Karni Tel: +972-3-7966-561 /"\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ mailto:[EMAIL PROTECTED] Better Safe Than Sorry