join
-- 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/
xterm + mc problem: messed up output when running commands
Hi All, I have a weird problem with the latest Cygwin 1.7. It happens with both a fresh install on a Windows 7 machine and with an upgraded install of Cygwin on a Windows XP machine. When I execute various commands from Midnight Commander when it is running under Cygwin/X xterm, e.g. cat, the lines are printed with an offset. For example, when I run cat /etc/X11/app-defaults/XTerm I get the following output on the screen: - ! VT100s and similar terminals recognize escape sequences and control ! characters to which they reply to the host with othe r escape sequences, ! to provide information. The resize progra m uses this feature. ! ! In addition, xterm recognizes several esca pe sequences which can be used to ! set fonts, window properties, return settings via escape sequences. Some ! find these useful; o thers are concerned with the possibility of unexpected ! inputs. ! ! All of these features can be enabled or disabled via menus. ! ! De pending on your environment, you may wish to disable those by def ault by ! uncommenting one or more of the resource settings below: ! *allowFontOps: false !*allowTcapOps: false !*allowTitleOps: false !* allowWindowOps: false - It looks as if cat does not do carriage return when moving to the next line, only line feed, so subsequent lines become all indented. If I exit mc, however, and run cat from bash, it operates normally. If I run mc under the Cygwin shell (non-X), everything also works as expected. Also note that when I ssh from Cygwin xterm onto a linux host and then run mc remotely in this session, cat-ing from it also works normally. So the problem seems to be in the combination of xterm + local mc and occurs when running any command from inside mc. I suspect that some information about the terminal is not properly handled by mc, but I do not know where to look. Any ideas what is happening here? Thank you, Andrew
RE: Cannot start xterm
My hard drive crashed and I reinstalled XP SP3 from scratch. I then installed cygwin 1.7.3 from scratch. My first issue was I could not find startxwin.bat. I know it was supposed to be moved to /bin/startxwin.bat, but its not there. I built my own shortcut to start xwin C:\cygwin\bin\run.exe /usr/bin/bash.exe -l -c /usr/bin/startxwin.exe. That seems to start up the server just fine. However, when I click on Applications-xterm, nothing happens. I started up a normal cygwin window and manually try to start xterm via xterm -display localhost:0. This gives me the following: bash-3.2$ xterm -display localhost:0 Warning: Cannot convert string -adobe-helvetica-boldo8859-* to type FontStruct Warning: Unable to load any usable ISO8859 font Warning: Unable to load any usable ISO8859 font Error: Aborting: no font found bash-3.2$ I then tried to install all the fonts I could find, nothing seemed to fix the issue. I should also point out that I think something else was dorked up in the installation, as the PATH variable failed to include basic things like /bin. I had to manually add them back in my .bashrc (which the Cygwin.bat script fails to read, so I have to manually source it). When I first run Cygwin.bat, here is my environment. I'm thinking maybe some other variable is not set properly which is the root cause of xterm not finding any fonts. bash-3.2$ /bin/printenv HOMEPATH=\Documents and Settings\rymcdowe APPDATA=C:\Documents and Settings\rymcdowe\Application Data TERM=cygwin PROCESSOR_IDENTIFIER=x86 Family 6 Model 14 Stepping 12, GenuineIntel WINDIR=C:\WINDOWS USERDOMAIN=CISCO OS=Windows_NT ALLUSERSPROFILE=C:\Documents and Settings\All Users !::=::\ TEMP=/cygdrive/c/DOCUME~1/rymcdowe/LOCALS~1/Temp DEFLOGDIR=C:\Documents and Settings\All Users\Application Data\McAfee\DesktopProtection COMMONPROGRAMFILES=C:\Program Files\Common Files QTJAVA=C:\Program Files\QuickTime\QTSystem\QTJava.zip USERNAME=rymcdowe PROCESSOR_LEVEL=6 PATH=/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/WINDOWS/system32/WindowsPowerShell/v1.0:/cygdrive/c/ProgramFiles/Credant/Shieldv5.4.2/:/cygdrive/c/ProgramFiles/QuickTime/QTSystem/:/cygdrive/c/ProgramFiles/Intel/WiFi/bin/ FP_NO_HOST_CHECK=NO PWD=/usr/bin SYSTEMDRIVE=C: USERPROFILE=C:\Documents and Settings\rymcdowe LOGONSERVER=\\ADC-RTP1-C1-5-W PROCESSOR_ARCHITECTURE=x86 !C:=C:\cygwin\bin SHLVL=1 HOME=/home/rymcdowe USERDNSDOMAIN=CISCO.COM PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.PSC1 HOMEDRIVE=C: PROMPT=$P$G COMSPEC=C:\WINDOWS\system32\cmd.exe TMP=/cygdrive/c/DOCUME~1/rymcdowe/LOCALS~1/Temp SYSTEMROOT=C:\WINDOWS PROCESSOR_REVISION=0e0c CLASSPATH=.;C:\Program Files\QuickTime\QTSystem\QTJava.zip PROGRAMFILES=C:\Program Files NUMBER_OF_PROCESSORS=2 VSEDEFLOGDIR=C:\Documents and Settings\All Users\Application Data\McAfee\DesktopProtection SESSIONNAME=Console COMPUTERNAME=RYMCDOWE-WXP _=/bin/printenv Anybody have any ideas? Ryan McDowell Systems Engineer Cisco Systems, Inc (W) +1 703.484.0040 (M) +1 703.201.5742 PGP Fingerprint: EED9 192F 9F45 FAE4 F6A3 8764 FEE1 299D 1B62 A361 -- 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: xterm + mc problem: messed up output when running commands
Hi All, Somehow Cygwin mailing list shows #xC2; characters in my previous message; it should have been all spaces instead. Best Regards, Andrew -- 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/
backspace key mapping problem
Seems like the character mapped to the backspace key changed from ^H to ^? with the upgrade to 1.7. Is there a way to get the old mapping back? It's creating problems for me, especially when I ssh to remove systems where I can't arbitrarily change the stty erase setting. TIA. -- 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: backspace key mapping problem
Chuck wrote: Seems like the character mapped to the backspace key changed from ^H to ^? with the upgrade to 1.7. Is there a way to get the old mapping back? It's creating problems for me, especially when I ssh to remove systems where I can't arbitrarily change the stty erase setting. TIA. should say remote not remove -- 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: backspace key mapping problem
2010/1/7 Chuck: Seems like the character mapped to the backspace key changed from ^H to ^? with the upgrade to 1.7. Is there a way to get the old mapping back? What terminal do you use? (The cygwin-xfree list is meant for X issues.) Andy -- 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: xterm + mc problem: messed up output when running commands
2010/1/7 Andrew Zhezherun: I have a weird problem with the latest Cygwin 1.7. It happens with both a fresh install on a Windows 7 machine and with an upgraded install of Cygwin on a Windows XP machine. When I execute various commands from Midnight Commander when it is running under Cygwin/X xterm, e.g. cat, the lines are printed with an offset. For example, when I run cat /etc/X11/app-defaults/XTerm I get the following output on the screen: - ! VT100s and similar terminals recognize escape sequences and control ! characters to which they reply to the host with othe r escape sequences, ! to provide information. The resize progra m uses this feature. [...] I find that mc immediately switches back to the folder view. How do you keep it on the screen? If I add a 'sleep 3' after the cat, I see that the lines are arranged as intended, without the staircase effect. The carriage return after the newline is normally added by the pseudo terminal driver. This is controlled by the stty onlcr setting. Andy -- 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/