all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* TERM and shell mode
@ 2023-03-03  0:18 Samuel Wales
  2023-03-03  1:37 ` Emanuel Berg
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Samuel Wales @ 2023-03-03  0:18 UTC (permalink / raw)
  To: help-gnu-emacs

ok, so this is going to be a really dumb question that i should have
figured out over the years.  and ... i sorta kinda but not really did
but i have too many notes and can't fiure them out.

and even legacy shell stuff from xemacs days and such.

emacs -Q says dumb for TERM for shell mode.  one issue with this i
have a note saying is that colored output can silently corrupt cmd |
grep if TERM=dumb.  or similr.  idr the details.  but i recall the
problem and debugged it to the TERM variable.

termprarily setting term to xterm fixed that problem but i have no
idea where it is being set permanntly.

i can't actually figure out where in my shell code or elsewhere the
following occurs: TERM gets set to xterm.  it works well or seems to
but it might be WRONG on the internet.  and root vs. user and linux vt
console might require special casing.

-Q says supposed to be dumb, except i also recall emacs as a terminal
type.  dunno where that came from.

literally i have no shell code that sets the var althuogh it is used
as a prefix to grep and such.  of course i am not asking you to intuit
where the variable is being set but you might have interesting
comments about TERM.

example.  thisis probably bad code but it helps with grep

    TERM=xterm \
        LC_ALL=C grep -i --color=auto --devices=skip --directories=skip "$@"

-- 
The Kafka Pandemic

A blog about science, health, human rights, and misopathy:
https://thekafkapandemic.blogspot.com



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-03-09  4:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-03  0:18 TERM and shell mode Samuel Wales
2023-03-03  1:37 ` Emanuel Berg
2023-03-03  1:39 ` Emanuel Berg
2023-03-03  5:05 ` Akib Azmain Turja
2023-03-03  7:21 ` Eli Zaretskii
2023-03-03  7:39   ` Emanuel Berg
2023-03-09  0:53   ` Samuel Wales
2023-03-09  4:47     ` Akib Azmain Turja

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.