unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#51454: Progress bar in Org source blocks
@ 2021-10-28  2:10 excalamus--- via Bug reports for GNU Guix
  2021-10-29 12:51 ` zimoun
  0 siblings, 1 reply; 9+ messages in thread
From: excalamus--- via Bug reports for GNU Guix @ 2021-10-28  2:10 UTC (permalink / raw)
  To: 51454

I'm trying to document my work with Guix using Emacs Org. If I run a shell/sh/bash source block in org-mode, the result has control characters in it.

To reproduce, open a clean instance of Emacs with emacs -q, switch to the scratch buffer and insert:

;; eval this first so that source blocks can run sh
(org-babel-do-load-languages
 'org-babel-load-languages
 '((shell . t)))

#+begin_src sh :results output :session test
guix package -u
#+end_src

#+RESULTS:
: guix package: ^[[1;35mwarning: ^[[0mnothing to do

Switch to org-mode, eval the lisp, and C-c C-c the source block. If your system is like mine, you'll see control non-printable characters.

When I check how org sees the shell, I get:

#+begin_src sh :results output :session test
echo $TERM
#+end_src

#+RESULTS:
: dumb

I've tried renaming .bashrc and .bash_profile to .bashrc.old and .bash_profile.old, starting a new shell and running through the steps above. The result is the same.

Thoughts and suggestions?





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

end of thread, other threads:[~2021-11-04  0:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-28  2:10 bug#51454: Progress bar in Org source blocks excalamus--- via Bug reports for GNU Guix
2021-10-29 12:51 ` zimoun
2021-10-30  4:55   ` excalamus--- via Bug reports for GNU Guix
2021-10-30 16:43     ` zimoun
2021-11-01  2:03       ` excalamus--- via Bug reports for GNU Guix
2021-11-03 14:14         ` zimoun
2021-11-03 17:05           ` excalamus--- via Bug reports for GNU Guix
2021-11-03 17:52             ` zimoun
2021-11-04  0:43               ` excalamus--- via Bug reports for GNU Guix

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).