Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] emerge output in dumb terminal
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
pingtoo
Veteran
Veteran


Joined: 10 Sep 2021
Posts: 1236
Location: Richmond Hill, Canada

PostPosted: Sat Jul 27, 2024 6:42 pm    Post subject: [Solved] emerge output in dumb terminal Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22619

PostPosted: Sat Jul 27, 2024 6:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
pingtoo
Veteran
Veteran


Joined: 10 Sep 2021
Posts: 1236
Location: Richmond Hill, Canada

PostPosted: Sat Jul 27, 2024 7:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
bstaletic
Guru
Guru


Joined: 05 Apr 2014
Posts: 361

PostPosted: Sat Jul 27, 2024 7:13 pm    Post subject: Reply with quote

Perhaps there's a bug in our package manager. Can you share the exact command that shows the problem?
Back to top
View user's profile Send private message
pingtoo
Veteran
Veteran


Joined: 10 Sep 2021
Posts: 1236
Location: Richmond Hill, Canada

PostPosted: Sat Jul 27, 2024 7:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum