View previous topic :: View next topic |
Author |
Message |
pingtoo Veteran
Joined: 10 Sep 2021 Posts: 1236 Location: Richmond Hill, Canada
|
Posted: Sat Jul 27, 2024 6:42 pm Post subject: [Solved] emerge output in dumb terminal |
|
|
Hi,
What is right option(s) for emerge output for TERM=dumb, so the outputs are line by line without those fancy ANSI escape code?
====================================
Solution, (Assume you are in bash)
unset PROMPT_COMMAND
unset TERM
possible add "notitles" into /etc/portage/make.conf: FEATURES="notitles ..."
Last edited by pingtoo on Sat Jul 27, 2024 8:46 pm; edited 2 times in total |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22618
|
Posted: Sat Jul 27, 2024 6:56 pm Post subject: |
|
|
It looks to me like emerge automatically disables color when TERM=dumb. Are you seeing otherwise? If yes, is it because you are passing --color=y, which forces use of color even when auto-detection would choose not to use color? |
|
Back to top |
|
|
pingtoo Veteran
Joined: 10 Sep 2021 Posts: 1236 Location: Richmond Hill, Canada
|
Posted: Sat Jul 27, 2024 7:04 pm Post subject: |
|
|
Hu wrote: | It looks to me like emerge automatically disables color when TERM=dumb. Are you seeing otherwise? If yes, is it because you are passing --color=y, which forces use of color even when auto-detection would choose not to use color? |
The color ansi code were turn off as you stated. However there are for example "^G^[]0;" and "^[E". I know "^G" is for bell, I think there is a option to turn it off, but not about others. |
|
Back to top |
|
|
bstaletic Guru
Joined: 05 Apr 2014 Posts: 358
|
Posted: Sat Jul 27, 2024 7:13 pm Post subject: |
|
|
Perhaps there's a bug in our package manager. Can you share the exact command that shows the problem? |
|
Back to top |
|
|
pingtoo Veteran
Joined: 10 Sep 2021 Posts: 1236 Location: Richmond Hill, Canada
|
Posted: Sat Jul 27, 2024 7:30 pm Post subject: |
|
|
bstaletic wrote: | Perhaps there's a bug in our package manager. Can you share the exact command that shows the problem? |
sure, Code: | emerge --quiet-build --quiet -1abk @installed |
I ran this command in a emacs shell session, the emacs shell (note, not term) use TERM=dumb as default. I suppose there may be a way to configure emacs but I don't know how, then I thought if emerge can be made to output line by line will be sufficient.
P.S. please don't worry about use of "@installed". It is my practice to rebuild everything in a new stage3 dump to compile code with my changes in make.conf and generate bin packages. |
|
Back to top |
|
|
|