Can't use Alt- Commands in xterm
Hi, I cannot execute commands using the Alt key. For example, whenever I press, Alt -. I get a zero instead of the previous command. This is also a problem whenever I run emacs inside xterm. Alt-w produces a ÷ (division symbol) instead of executing a copy region command. Also Alt-x doesn't give the extended command mini-buffer, but instead produces a ø (strike through o). I do not expreience this problem whenever I run the Cygwin Bash Shell, which I suppose makes sense. I have read TFM, and it says I need to include the following information: OS: Windows Vista Ultimate 32 bit Make: Dell Laptop Model: XPS M1530 Keyboard: English (United Kingdom) From /var/log/XWin.0.log: 2010-02-18 08:58:14 (--) winConfigKeyboard - Layout: 0809 (0809) 2010-02-18 08:58:14 (--) Using preset keyboard for English (United Kingdom) (809), type 4 2010-02-18 08:58:14 Rules = base Model = pc105 Layout = gb Variant = none Options = none I have check the layout at http://www.microsoft.com/globaldev/reference/keyboards.mspx and the UK keyboard layout is a perfect match, which makes sense since I bought this keyboard in the UK. I would be grateful for any help you all can provide. Best Regards, Craig -- 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: Can't use Alt- Commands in xterm
On Thu, 18 Feb 2010, Craig Moore wrote: Hi, I cannot execute commands using the Alt key. For example, whenever I press, Alt -. I get a zero instead of the previous command. This is also a problem whenever I run emacs inside xterm. Alt-w produces a ÷ (division symbol) instead of executing a copy region command. Also Alt-x doesn't give the extended command mini-buffer, but instead produces a ø (strike through o). I do not expreience this problem whenever I run the Cygwin Bash Shell, which I suppose makes sense. I have read TFM, and it says I need to include the following information: In man xterm, see eightBitInput and metaSendsEscape. -- 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: Can't use Alt- Commands in xterm
In man xterm, see eightBitInput and metaSendsEscape. Thanks, that lead me to this solution: xterm-Main Menu-Meta Sends Escape and now alt behaves as it should (Why isn't this the default setting?!?) Is there someway to set xterm to always have 'Meta Sends Escape' enabled? Also, I would prefer if the 'Reverse Video' option is enabled (i.e. xterm with a black background). This can be set from: xterm-VT Options-Enable Reverse Video I have to enable this each time I start xterm, and I would prefer it if xterm would start with this enabled. Thanks, Craig -- 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: Can't use Alt- Commands in xterm
On Thu, 18 Feb 2010, Craig Moore wrote: In man xterm, see eightBitInput and metaSendsEscape. Thanks, that lead me to this solution: xterm-Main Menu-Meta Sends Escape and now alt behaves as it should (Why isn't this the default setting?!?) Is there someway to set xterm to always have 'Meta Sends Escape' enabled? Also, I would prefer if the 'Reverse Video' option is enabled (i.e. xterm with a black background). This can be set from: xterm-VT Options-Enable Reverse Video I have to enable this each time I start xterm, and I would prefer it if xterm would start with this enabled. Those can be done via resource-settings, e.g. in your $HOME/.Xdefaults, or in /etc/X11/app-defaults -- 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: Can't use Alt- Commands in xterm
On Thu, 18 Feb 2010 05:46:37 -0500 (EST) Thomas Dickey dickey at his dot com wrote: Those can be done via resource-settings, e.g. in your $HOME/.Xdefaults, or in /etc/X11/app-defaults Ok, I enabled 'Meta Sends Escape' option by adding this to my ~/.Xdefaults file: XTerm*metaSendsEscape: true Also, I enabled 'Enable Reverse Video' using: XTerm*reverseVideo: true I was able to figure out the name of the variables from: man xterm Thanks for your help, Craig -- 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/
Problems Starting Xterm using the System Tray Icon for XWin Server
Hi, When I open a new xterm window using the XWin Server icon in the system tray: (right click on icon)-Applications-xterm it opens xterm, but the command prompt is not formatted correctly and the window title is 'xterm' instaed of the current directory. The command prompt looks like: bash-3.2$ and should be cr...@laptop ~ $ How do I configure the XWin Server so that it opens xterm correctly? Also, is there a way I can add a shortcut on my desktop to open a new terminal window without having to type 'xterm' in the existing terminal window or the system tray icon? Thanks, Craig -- 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: Can't use Alt- Commands in xterm
Instead of the Alt key, you have to use the Alt Gr key, then you'll get all symbols you need in the xterm. Sent from my iPod. On Feb 18, 2010, at 4:25, Thomas Dickey dic...@his.com wrote: On Thu, 18 Feb 2010, Craig Moore wrote: Hi, I cannot execute commands using the Alt key. For example, whenever I press, Alt -. I get a zero instead of the previous command. This is also a problem whenever I run emacs inside xterm. Alt-w produces a ÷ (division symbol) instead of executing a copy region command. Also Alt-x doesn't give the extended command mini-buffer, but instead produces a ø (strike through o). I do not expreience this problem whenever I run the Cygwin Bash Shell, which I suppose makes sense. I have read TFM, and it says I need to include the following information: In man xterm, see eightBitInput and metaSendsEscape. -- 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: Problems Starting Xterm using the System Tray Icon for XWin Server
On 2/18/2010 7:13 AM, Craig Moore wrote: When I open a new xterm window using the XWin Server icon in the system tray: (right click on icon)-Applications-xterm it opens xterm, but the command prompt is not formatted correctly and the window title is 'xterm' instaed of the current directory. The command prompt looks like: bash-3.2$ and should be cr...@laptop ~ $ How do I configure the XWin Server so that it opens xterm correctly? This happens because xterm doesn't start a login shell, and PS1 gets unset. One way around this is to set PS1 in your ~/.bashrc file. For example: PS1='\[\e]0;\w\a\]\n\[\e[32m\...@\h \[\e[33m\]\w\[\e[0m\]\n\$ ' Also, is there a way I can add a shortcut on my desktop to open a new terminal window without having to type 'xterm' in the existing terminal window or the system tray icon? I use a shortcut with target C:\cygwin\bin\run.exe /usr/bin/xterm -ls -display 127.0.0.1:0.0 Ken -- 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: Problems Starting Xterm using the System Tray Icon for XWin Server
On Thu, 18 Feb 2010 10:34:56 -0500, Ken Brown kbrown at cornell dot edu wrote: How do I configure the XWin Server so that it opens xterm correctly? This happens because xterm doesn't start a login shell, and PS1 gets unset. One way around this is to set PS1 in your ~/.bashrc file. For example: PS1='\[\e]0;\w\a\]\n\[\e[32m\...@\h \[\e[33m\]\w\[\e[0m\]\n\$ ' I added this to my ~/.bashrc and the problem went away. Thanks! Also, is there a way I can add a shortcut on my desktop to open a new terminal window without having to type 'xterm' in the existing terminal window or the system tray icon? I use a shortcut with target C:\cygwin\bin\run.exe /usr/bin/xterm -ls -display 127.0.0.1:0.0 Perfect, with this I don't even need to bother with the system tray icon. However, I do get a small error message when I execute it: -bash: Files/MiKTeX: No such file or directory cr...@craig-laptop ~ $ I imagine that this has something to do with the way cygwin deals with the PATH variable? Here is the text in my PATH variable as seen from Cygwin: $ echo $PATH /cygdrive/c/Users/craig/Programming/scripts:/home/craig/bin:/usr/local/bin:/usr/bin:/bin:/cygdrive/c/Program Files/MiKTeX 2.7/miktex/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Program Files/Common Files/Roxio Shared/10.0/DLLShared/:/cygdrive/c/Program Files/Common Files/Roxio Shared/DLLShared/:/cygdrive/c/modeltech_6.5c/win32:/cygdrive/c/Users/craig/Software/ant-1.7.1/apache-ant-1.7.1/bin Alternatively , this is what it looks like from DOS cmd: ECHO %PATH% C:\Program Files\MiKTeX 2.7\miktex\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\modeltech_6.5c\win32;C:\Users\craig\Software\ant-1.7.1\apache-ant-1.7.1\bin Its not a big problem, but I thought I would make you all aware of it. Thanks for your help, Craig -- 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: Problems Starting Xterm using the System Tray Icon for XWin Server
On 2/18/2010 11:28 AM, Craig Moore wrote: On Thu, 18 Feb 2010 10:34:56 -0500, Ken Brownkbrown at cornell dot edu wrote: How do I configure the XWin Server so that it opens xterm correctly? This happens because xterm doesn't start a login shell, and PS1 gets unset. One way around this is to set PS1 in your ~/.bashrc file. For example: PS1='\[\e]0;\w\a\]\n\[\e[32m\...@\h \[\e[33m\]\w\[\e[0m\]\n\$ ' I added this to my ~/.bashrc and the problem went away. Thanks! Also, is there a way I can add a shortcut on my desktop to open a new terminal window without having to type 'xterm' in the existing terminal window or the system tray icon? I use a shortcut with target C:\cygwin\bin\run.exe /usr/bin/xterm -ls -display 127.0.0.1:0.0 Perfect, with this I don't even need to bother with the system tray icon. However, I do get a small error message when I execute it: -bash: Files/MiKTeX: No such file or directory cr...@craig-laptop ~ $ I imagine that this has something to do with the way cygwin deals with the PATH variable? Here is the text in my PATH variable as seen from Cygwin: $ echo $PATH /cygdrive/c/Users/craig/Programming/scripts:/home/craig/bin:/usr/local/bin:/usr/bin:/bin:/cygdrive/c/Program Files/MiKTeX 2.7/miktex/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Program Files/Common Files/Roxio Shared/10.0/DLLShared/:/cygdrive/c/Program Files/Common Files/Roxio Shared/DLLShared/:/cygdrive/c/modeltech_6.5c/win32:/cygdrive/c/Users/craig/Software/ant-1.7.1/apache-ant-1.7.1/bin Alternatively , this is what it looks like from DOS cmd: ECHO %PATH% C:\Program Files\MiKTeX 2.7\miktex\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\modeltech_6.5c\win32;C:\Users\craig\Software\ant-1.7.1\apache-ant-1.7.1\bin Its not a big problem, but I thought I would make you all aware of it. You have spaces in your PATH but probably did not quote it properly in your scripts when you used it ... I have things like this in my .bash_profile: PATH=${HOME}/bin:/c/miktex2.8/miktex/bin:${PATH}:${M2_HOME}/bin Note the quotes :-) Since I run MiKTeX from cygwin, I added to PATH within cygwin only, so that's not my point. My point is always using the quotes when adjusting PATH, and so forth, if it might have spaces in it. Cheers -- EM -- 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: Vista, new install, x server does not start, startxwin.bat missing
Yaakov (Cygwin/X) wrote: On 17/02/2010 18:59, Scott Fordin wrote: FWIW, I've found that, under Vista, I have to run the Cygwin X server, bash shell, and xterm as Administrator for everything to work. There is nothing about the X server that requires Administrator privileges. I run W7 with the default UAC settings and I never see a prompt. Dunno. I can only get it to work on Vista if I run it as Administrator. Maybe UAC in Windows 7 differs somehow from UAC in Vista? Scott Yaakov Cygwin/X -- 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/
Problems starting xterm under win7
Hi, I am still having problems with cygwin leaving blank xterm windows up each time an xterm window opens. It does not go away until I exit the xterm window, unlike the Xserver windows that go away once the server is started. They fill up my task bar with useless icons which makes navigation really difficult. It would be nice it someone would give me a resolution to this! Also, every once in awhile I get the following errors when I try to start and xterm window: $ xterm 1 [main] xterm 4080 C:\Xwin\bin\xterm.exe: *** fatal error - couldn't allocate heap, Win32 error 487, base 0x89, top 0x9D, reserve_size 1306624, allocsize 1310720, page_const 4096 1 [main] xterm 1700 child_info::sync: wait failed, pid 4080, Win32 error 1812 1127 [main] xterm 1700 fork: child -1 - died waiting for longjmp before initialization, retry 0, exit code 0x100, errno 11 xterm: Error 29, errno 11: Resource temporarily unavailable Reason: spawn: fork() failed I'm running Win7 64 bit with 8 Gig of memory, but then cygwin is 32 bit right? Any help? thanks, jerry -- 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: Problems Starting Xterm using the System Tray Icon for XWin Server
On 18 February 2010 17:55, Eliot Moss m...@cs.umass.edu wrote: You have spaces in your PATH but probably did not quote it properly in your scripts when you used it ... No, thats not it. It works fine when I start xterm normally (either by starting XWin Server or selecting it from the system tray icon). Its only when I use the shortcut on my desktop: C:\cygwin\bin\run.exe /usr/bin/xterm -ls -display 127.0.0.1:0.0 that I get the message. Craig -- 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: Problems Starting Xterm using the System Tray Icon for XWin Server
From: cygwin-xfree-ow...@cygwin.com [mailto:cygwin-xfree- ow...@cygwin.com] On Behalf Of Craig Moore Sent: Thursday, February 18, 2010 4:14 AM When I open a new xterm window using the XWin Server icon in the system tray: (right click on icon)-Applications-xterm it opens xterm, but the command prompt is not formatted correctly and the window title is 'xterm' instaed of the current directory. The command prompt looks like: bash-3.2$ and should be cr...@laptop ~ $ How do I configure the XWin Server so that it opens xterm correctly? My wild guess is that you have a typo in .bashrc which prevents all the startup happening. in your system tray launched window, make sure you are in your home directory, then run '. .bashrc' (note that first period!) and see if there are any error messages. You can also edit .bashrc and put 'set -x' as the first line for verbose output. HTH, Mike
Re: Problems Starting Xterm using the System Tray Icon for XWin Server
On 18 February 2010 22:02, Mike Ayers mike_ay...@tvworks.com wrote: No, no, .bashrc is off the suspect list. What's in ~/.bash_profile? Ah! Yes, this is where the problem was. This is what I found in my .bash_profile: if [ -e /etc/bash.bashrc ] ; then source /etc/bash.bashrc fi if [ -e ${HOME}/.bashrc ] ; then source ${HOME}/.bashrc fi if [ -d ${HOME}/bin ] ; then PATH=${HOME}/bin:${PATH} fi PATH=/cygdrive/c/Users/craig/Programming/scripts:${PATH} PATH=/cygdrive/c/Program Files/MiKTeX 2.7/miktex/bin:${PATH} The last line is the guilty party, I added it by mistake and forgot to remove it. I've deleted it, and now the message doesn't appear. It was redundant because MiKTeX was already added to the PATH in Windows. Mea cupla... I thought it had something to do with the shortcut I was using becuase I hadn't seen it before. Thanks for your help! Craig -- 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/