From: Ciaran McCreesh <ciaranm@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Re: Fixing the TERM mess
Date: Mon, 22 Aug 2005 00:08:00 +0100 [thread overview]
Message-ID: <20050822000800.7c366b4f@snowdrop.home> (raw)
In-Reply-To: <46059ce1050821154310568d72@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1062 bytes --]
On Sun, 21 Aug 2005 18:43:54 -0400 Dan Meltzer
<parallelgrapefruit@gmail.com> wrote:
| putty pretends to be an xterm and dies at xtermcontrol --get-bg... I
| can test other things if you need.. just give me some idea :)
Thanks. The other useful one is to see whether it does 256 colours
properly like real xterm does. The following bash script, when run with
'256' as its argument, should look the same as it does when run under
a real xterm.
#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
[[ -z "${1}" ]] && cat <<END && exit 1
Usage: ${0} [count]
count should usually be either 88 (rxvt-based terminals) or 256
(xterm-based terminals).
END
echo -n " 0: "
for (( a = 0 ; a < ${1} ; a++ )) ; do
echo -n -e "\e[38;5;${a#0}m#\e[48;5;${a#0}mX\e[0;0m "
[[ -z "${a##*9}" ]] && echo -n -e "\n\e[0;0m$(printf '%3d' ${a} ): "
done
echo -e "\e[0;0m" ; echo
--
Ciaran McCreesh : Gentoo Developer (Vim, Shell tools, Fluxbox, Cron)
Mail : ciaranm at gentoo.org
Web : http://dev.gentoo.org/~ciaranm
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-08-21 23:11 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-21 21:05 [gentoo-dev] Fixing the TERM mess Ciaran McCreesh
2005-08-21 22:00 ` Henrik Brix Andersen
2005-08-21 22:13 ` Ciaran McCreesh
2005-08-21 22:41 ` Henrik Brix Andersen
2005-08-21 22:43 ` [gentoo-dev] " Dan Meltzer
2005-08-21 23:08 ` Ciaran McCreesh [this message]
2005-08-22 0:21 ` Renat Lumpau
2005-08-22 7:18 ` Tavis Ormandy
2005-08-22 7:46 ` Tavis Ormandy
[not found] ` <605B5D3B660EFCD90AD3B473@10.0.0.1>
[not found] ` <7C3236ADA8D6B69461A1FF62@10.0.0.1>
2005-08-22 12:44 ` Dan Meltzer
2005-08-29 10:44 ` Francesco R
2005-08-22 12:51 ` [gentoo-dev] " Mike Frysinger
2005-08-23 6:52 ` Kevin F. Quinn
2005-08-23 20:27 ` Ciaran McCreesh
2005-08-23 20:57 ` Olivier Crete
2005-08-23 21:29 ` Ciaran McCreesh
2005-08-24 0:01 ` Georgi Georgiev
2005-08-23 23:56 ` [gentoo-dev] " Sven Köhler
2005-08-24 11:55 ` Martin Schlemmer
2005-08-24 0:10 ` Sven Köhler
2005-08-24 12:07 ` Ciaran McCreesh
2005-08-29 7:28 ` ivan vadovič
2005-08-29 14:53 ` Ciaran McCreesh
2005-09-08 16:50 ` ivan
2005-09-08 16:59 ` Ciaran McCreesh
2005-09-01 18:27 ` Joe Wells
2005-09-06 19:19 ` Jan Kundrát
2005-09-07 8:31 ` YoYo Siska
2005-09-09 16:24 ` Joe Wells (reverse mailbox letters only for non-public replies)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050822000800.7c366b4f@snowdrop.home \
--to=ciaranm@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox