From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12514 invoked by alias); 6 Jun 2018 22:46:41 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 12472 invoked by uid 89); 6 Jun 2018 22:46:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: =?ISO-8859-1?Q?No, score=1.8 required=5.0 tests=BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=8:re, 8:ha, 8:un, 8:=c3=a4?= X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.135) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 06 Jun 2018 22:46:38 +0000 Received: from [192.168.0.15] ([149.172.203.221]) by mrelayeu.kundenserver.de (mreue006 [212.227.15.129]) with ESMTPSA (Nemesis) id 0MD19D-1faHzE1T75-009kj7 for ; Thu, 07 Jun 2018 00:46:35 +0200 Subject: Re: xterm / Windows 10 question To: cygwin@cygwin.com References: <0f87d9a8-4e32-4edb-26b4-648b28358309@gmail.com> <636f4ac0-bd18-5ba0-5b81-c67f6d8fea96@dronecode.org.uk> From: Stefan Baur Openpgp: preference=signencrypt Message-ID: Date: Wed, 06 Jun 2018 22:46:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2018-06/txt/msg00078.txt.bz2 Am 07.06.2018 um 00:33 schrieb Matt Nicholas: > (I can probably put the "setxkbmap us" command in ".bash_profile", if I > don't find a more appropriate place.) If you end up doing this, be sure to check for $DISPLAY being set, only executing the command if that is the case. e.g. if [ -n "$DISPLAY" ]; then setxkbmap us fi Else you might see strange errors when logging in via SSH (if you don't have $DISPLAY set by using ssh -X, for example) or with scripted SSH sessions/commands. (NB: A command like "mesg n", which is found in some distributions' default .bash_profile files - especially for the root user - should be wrapped in if test -t 0; then mesg n fi for similar reasons). Kind Regards, Stefan Baur -- BAUR-ITCS UG (haftungsbeschränkt) Geschäftsführer: Stefan Baur Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364 Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243 -- 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