all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: the dumb Emacs terminal (was: Re: rotating the palette)
Date: Sat, 09 Jul 2016 23:19:28 +0200	[thread overview]
Message-ID: <86bn26a4rj.fsf_-_@student.uu.se> (raw)
In-Reply-To: 86inwfa7zm.fsf@student.uu.se

Emanuel Berg <embe8573@student.uu.se> writes:

> The problem boils down to this, which doesn't
> work in the Emacs shell but everywhere else:
>
>     $ tput setaf 2 && echo green
>
> There is no error message but the return code
> is 1 (i.e., an error).
>
> Perhaps tput cannot be used in dumb
> terminals...?

If you do

    $ infocmp dumb

you get:

    #	Reconstructed via infocmp from file: /lib/terminfo/d/dumb
    dumb|80-column dumb tty,
       am,
       cols#80,
       bel=^G, cr=^M, cud1=^J, ind=^J,

but If you do

    $ infocmp screen

you get:

    #	Reconstructed via infocmp from file: /lib/terminfo/s/screen
    screen|VT 100/ANSI X3.64 virtual terminal,
       am, km, mir, msgr, xenl,
       colors#8, cols#80, it#8, lines#24, ncv@, pairs#64,
       acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
       bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
       clear=\E[H\E[J, cnorm=\E[34h\E[?25h, cr=^M,
       csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
       cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
       cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EM,
       cvvis=\E[34l, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
       dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E(B\E)0,
       flash=\Eg, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
       il=\E[%p1%dL, il1=\E[L, ind=^J, is2=\E)0, kbs=\177,
       kcbt=\E[Z, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
       kdch1=\E[3~, kend=\E[4~, kf1=\EOP, kf10=\E[21~,
       kf11=\E[23~, kf12=\E[24~, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
       kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
       khome=\E[1~, kich1=\E[2~, kmous=\E[M, knp=\E[6~, kpp=\E[5~,
       nel=\EE, op=\E[39;49m, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O,
       rmcup=\E[?1049l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[23m,
       rmul=\E[24m, rs2=\Ec\E[?1000l\E[?25h, sc=\E7,
       setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
       sgr=\E[0%?%p6%t;1%;%?%p1%t;3%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
       sgr0=\E[m\017, smacs=^N, smcup=\E[?1049h, smir=\E[4h,
       smkx=\E[?1h\E=, smso=\E[3m, smul=\E[4m, tbc=\E[3g,

So tputting 'setaf' has no effect in the dumb
Emacs terminal/shell, as it isn't defined as
a terminal alias, or whatever those entry codes
are called!

Besides, in /usr/share/terminfo as well as
/lib/terminfo on my Raspbian system, there are
so many terminals defined it is mind-boggling!
What is the meaning of it all? Were they all
once physical computers or why are there so
many? Who uses them?

And does the Emacs terminal have to be dumb?

-- 
underground experts united .... http://user.it.uu.se/~embe8573
Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic
                   - so far: 56 Blogomatic articles -                   


  reply	other threads:[~2016-07-09 21:19 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-08  8:02 Suggested font lock preferences for GNU Emacs Davin Pearson
2016-07-08  9:34 ` Yuri Khan
2016-07-09  1:25   ` Davin Pearson
2016-07-09 10:50     ` Alex Kost
2016-07-10  1:14       ` Davin Pearson
2016-07-10  4:30       ` Davin Pearson
     [not found]       ` <mailman.966.1468125047.26859.help-gnu-emacs@gnu.org>
2016-07-10  5:19         ` Emanuel Berg
2016-07-10 14:50           ` Stefan Monnier
     [not found]           ` <mailman.986.1468162252.26859.help-gnu-emacs@gnu.org>
2016-07-10 21:24             ` Emanuel Berg
2016-07-10 21:29               ` Stefan Monnier
     [not found]               ` <mailman.1063.1468186213.26859.help-gnu-emacs@gnu.org>
2016-07-10 21:46                 ` Emanuel Berg
     [not found]       ` <mailman.959.1468113265.26859.help-gnu-emacs@gnu.org>
2016-07-10  5:33         ` Emanuel Berg
2016-07-08 12:01 ` Emanuel Berg
2016-07-08 12:20   ` Yuri Khan
     [not found]   ` <mailman.821.1467980455.26859.help-gnu-emacs@gnu.org>
2016-07-08 13:40     ` Emanuel Berg
2016-07-08 14:12       ` Yuri Khan
     [not found]       ` <mailman.831.1467987165.26859.help-gnu-emacs@gnu.org>
2016-07-08 18:19         ` Emanuel Berg
2016-07-08 21:41         ` rotating the palette (was: Re: Suggested font lock preferences for GNU Emacs) Emanuel Berg
2016-07-08 23:57           ` Emanuel Berg
2016-07-09  1:57             ` Emanuel Berg
2016-07-09 21:19               ` Emanuel Berg [this message]
2016-07-09 22:02                 ` the dumb Emacs terminal (was: Re: rotating the palette) John Mastro
2016-07-11 12:05                   ` the dumb Emacs terminal Dmitry Alexandrov
     [not found]                 ` <mailman.949.1468101798.26859.help-gnu-emacs@gnu.org>
2016-07-09 22:38                   ` Emanuel Berg
2016-07-10  0:01                     ` John Mastro
     [not found]                     ` <mailman.954.1468108922.26859.help-gnu-emacs@gnu.org>
2016-07-10  5:29                       ` Emanuel Berg
2016-07-10 22:46                       ` Emanuel Berg

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=86bn26a4rj.fsf_-_@student.uu.se \
    --to=embe8573@student.uu.se \
    --cc=help-gnu-emacs@gnu.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.