xterm / Windows 10 question
Stefan Baur
X2Go-ML-1@baur-itcs.de
Wed Jun 6 22:46:00 GMT 2018
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
More information about the Cygwin
mailing list