X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <4A3FDD67.4010600@aim.com> References: <4A3FDD67 DOT 4010600 AT aim DOT com> Date: Tue, 23 Jun 2009 21:56:49 +0100 Message-ID: <416096c60906231356y27e23f8ek61df89287eca7a34@mail.gmail.com> Subject: Re: Some questions about mintty From: Andy Koppe To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 2009/6/22 Mark Harig: > 1. There is no description of the '-e' switch in mintty's manual page. > =C2=A0 Is it an "execute-this-command" option? =C2=A0Or, should the user = be > =C2=A0 aware that it is specific to "execute this shell"? The -e option was added for compatibility with xterm and other terminals, but it isn't actually needed. The first non-option argument is taken as a command, with any additional arguments passed as arguments to that command. For example, you can start an ssh session in mintty like this: mintty ssh user AT server Alternatively, you can use -e to mark the start of the command to execute: mintty -e ssh user AT server Either way, the command is executed directly using exec(), i.e. if you want to invoke a command through a shell you have to do so explicitly, e.g.: mintty sh -c "DISPLAY=3D:0 ssh -l user server" Thanks for pointing out the lack of documentation on -e. I shall correct th= at. > 2. There is a '-p / --position' option described in the manual page. > =C2=A0 Is there a corresponding option for the ~/.minttyrc initialization > =C2=A0 file? No. ~/.minttyrc contains settings from the options dialog only. > 3. When the color of the cursor is changed to a block, the text > =C2=A0 can be read through the block, but it appears that the text is > =C2=A0 always white. The background colour is used for text beneath the cursor, so if the cursor is visible infront of the background, the text beneath the cursor should be visible too. With the default white-on-black colours, you get black text inside a white cursor block. Is it a particular mode or program where you're seeing this problem? > =C2=A0Can the cursor's (reverse) text color be changed? Yes, through the xterm sequence for setting colours, where in a small extension the default colours are represented as colours 256 through 261: 256 - normal foreground 257 - bold foreground 258 - normal background 259 - bold background 260 - cursor background 261 - cursor foreground For example, this sets the cursor background colour (which is used for the text beneath it) to black: echo -e "\e]4;260;#000000\a" (Colour names from rgb.txt are not supported.) > 4. Is is possible to view italic fonts (in italicized form) in mintty? Apparently not. It's the same in PuTTY though, and I'm guessing that's because slanted text isn't suited to the square character cells in a terminal. Additionally, there doesn't seem to be a way to hide particular font styles in the standard Windows font selection dialog, which probably explains why the Italics styles appear even though they're not supported. I think I'll resolve this by doing away with the font dialog and instead add drop down boxes for font, style, and size directly on the text pane of the options. Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple