I have use the EMACS-like text editor JOVE for about 40 years. It can create a terminal window within the editor -- very useful
BASH's prompt under Fedora 43 is very intricate and does not respect the capabilities indicated by the TERM environment variable. Here's a capture of a very simple session in one of these windows. Look at all the junk! I'm sure that it is useful for some terminals but certainly not all. This junk should be conditional on the capabilities indicated by $TERM. ]3008;end=e551404d-70f3-4a9a-88c7-460343fadc37;exit=success\]3008;start=2c6c4b35-104b-4e32-9e55-368ff5b042fc;user=hugh;hostname=redo;machineid=ade221f2e8164c3081b392a56c664c64;bootid=ce69bb9c-7bdc-4202-8dd6-4e050885abb1;pid=157774;type=shell;cwd=/home/hugh\[0m[1m[32mhugh@redo[0m:[1m[32m~[0m$ echo ; echo $TERM ]3008;start=63c14950-6a72-4500-a834-6ecd880f50bd;user=hugh;hostname=redo;machineid=ade221f2e8164c3081b392a56c664c64;bootid=ce69bb9c-7bdc-4202-8dd6-4e050885abb1;pid=157774;type=command;cwd=/home/hugh\ vanilla ]3008;end=63c14950-6a72-4500-a834-6ecd880f50bd;exit=success\]3008;start=2c6c4b35-104b-4e32-9e55-368ff5b042fc;user=hugh;hostname=redo;machineid=ade221f2e8164c3081b392a56c664c64;bootid=ce69bb9c-7bdc-4202-8dd6-4e050885abb1;pid=157774;type=shell;cwd=/home/hugh\[0m[1m[32mhugh@redo[0m:[1m[32m~[0m$ exit ]3008;start=697e35be-7306-400b-a33c-b647c4fe81e5;user=hugh;hostname=redo;machineid=ade221f2e8164c3081b392a56c664c64;bootid=ce69bb9c-7bdc-4202-8dd6-4e050885abb1;pid=157774;type=command;cwd=/home/hugh\exit New to me: not only is there a prompt for typing the shell command, there is something large and ugly emitted after the command too. Why? My guess is that junk is some crazy and insecure in-band signalling to the terminal, whether the terminal program understands it or not. PS: the same applies to all the colorizing commands. If $TERM has no color capabilities, don't use them. If it has color capabilities, use them in the way specified for that terminal. PS: this seems pretty gross: $ set | wc 3293 9768 113949 For many years, I used the Bourne Shell on machines that limited a process' data to 64k. PPS: where is the twisty collection of bash startup files documented? bash(1)'s FILES section has an incomplete list files. But where is the documentation for what they do? Funny observations: "unset PROMPT_COMMAND" simplifies the prompt a lot. But it still uses color. If you then use "unset COLORTERM", the prompt gets complicated again. I haven't seen documentation describing these environment variables. -- _______________________________________________ users mailing list -- [email protected] To unsubscribe send an email to [email protected] Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/[email protected] Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
