Display full command on GNU screen with bash in titlePrinting (saving) the last bash input commandScreen cuts...

Can you tell the difference between plane shift and invisibility

Is Schrodinger's Cat itself an observer?

Can you set fire to beer barrels?

Translate "Everything burns" into classical Latin

Where is the 'zone of reversed commands...'?

Displaying characteristics of the Hero in a console game

Why did Crew Dragon switch to burst disks instead of multiple check valves?

How is Smough's name pronounced?

Skewer removal without quick release

Do you say "good game" after a game in which your opponent played poorly?

How to respond to "Why didn't you do a postdoc after your PhD?"

SSD or HDD for server

What is the name for a fluid transition between two tones? When did it first appear?

How can a company compel a W2 employee to sign a non-compete agreement?

Trying to add electrical outlets off of a junction box but the junction box has a lot more wires than Ive been shown so which ones to run it off?

Are Snap and Flatpack apps safe to install? Are they "official", approved or tested for a particular distro version?

Novel set in the future, children cannot change the class they are born into, one class is made uneducated by associating books with pain

Is it now possible to undetectably cross the Arctic Ocean on ski/kayak?

Can I get bubble tea at Taiyuan airport?

Simple way to make circular arrow arc?

Is the Thief Rogue's Thief's Reflexes feature optional?

Extra battery in the gap of an HDD

counter in hexadecimal base

I'm trying to graph a rational function



Display full command on GNU screen with bash in title


Printing (saving) the last bash input commandScreen cuts off beginning of long command when accessed through bash historyScreen status bar to display current directory for zsh/bash shellHow can a bash script detect support for window titling escape characters?How do I make the Xterm window title switch between the current running command and the current path?Maximize xterm via bash scriptRunning background process with screen command in xshellSet the bash display [while using GNU Screen utility] to not show the vim text after exitXterm Set Title?automate the title of gnu screen windows






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{
margin-bottom:0;
}








0

















There are multiple questions about this sprinkled around the network, but what I could find has one of two things in common:




  • They give the manual solution, which only prints the current running program (with no arguments)

  • The use zsh preexec feature (though I am not sure how that interacts with screen). I am looking for a Bash solution.


How do I get my screen title to show the entire command run, so if I run 3 long running Python scripts for example, I can see the script names in the title as well? For bonus points, if I can get this to keep displaying the last command run that would be even better.



My current setup:




  • export PROMPT_COMMAND='/bin/echo -ne "33k33134"'


  • PS1 ends with >

  • shelltitle ">|bash"


I tried:




  • Adding stuff between 33k and 33 - breaks with ${BASH_COMMAND}

  • Using trap debug to set an external additional title since for XTERM with no screen I know the solution. This breaks badly with the PS1.


and variations of the above. I want a solution to be through screen, so both the window title and the screen window list show the full command.










share|improve this question

































    0

















    There are multiple questions about this sprinkled around the network, but what I could find has one of two things in common:




    • They give the manual solution, which only prints the current running program (with no arguments)

    • The use zsh preexec feature (though I am not sure how that interacts with screen). I am looking for a Bash solution.


    How do I get my screen title to show the entire command run, so if I run 3 long running Python scripts for example, I can see the script names in the title as well? For bonus points, if I can get this to keep displaying the last command run that would be even better.



    My current setup:




    • export PROMPT_COMMAND='/bin/echo -ne "33k33134"'


    • PS1 ends with >

    • shelltitle ">|bash"


    I tried:




    • Adding stuff between 33k and 33 - breaks with ${BASH_COMMAND}

    • Using trap debug to set an external additional title since for XTERM with no screen I know the solution. This breaks badly with the PS1.


    and variations of the above. I want a solution to be through screen, so both the window title and the screen window list show the full command.










    share|improve this question





























      0












      0








      0








      There are multiple questions about this sprinkled around the network, but what I could find has one of two things in common:




      • They give the manual solution, which only prints the current running program (with no arguments)

      • The use zsh preexec feature (though I am not sure how that interacts with screen). I am looking for a Bash solution.


      How do I get my screen title to show the entire command run, so if I run 3 long running Python scripts for example, I can see the script names in the title as well? For bonus points, if I can get this to keep displaying the last command run that would be even better.



      My current setup:




      • export PROMPT_COMMAND='/bin/echo -ne "33k33134"'


      • PS1 ends with >

      • shelltitle ">|bash"


      I tried:




      • Adding stuff between 33k and 33 - breaks with ${BASH_COMMAND}

      • Using trap debug to set an external additional title since for XTERM with no screen I know the solution. This breaks badly with the PS1.


      and variations of the above. I want a solution to be through screen, so both the window title and the screen window list show the full command.










      share|improve this question














      There are multiple questions about this sprinkled around the network, but what I could find has one of two things in common:




      • They give the manual solution, which only prints the current running program (with no arguments)

      • The use zsh preexec feature (though I am not sure how that interacts with screen). I am looking for a Bash solution.


      How do I get my screen title to show the entire command run, so if I run 3 long running Python scripts for example, I can see the script names in the title as well? For bonus points, if I can get this to keep displaying the last command run that would be even better.



      My current setup:




      • export PROMPT_COMMAND='/bin/echo -ne "33k33134"'


      • PS1 ends with >

      • shelltitle ">|bash"


      I tried:




      • Adding stuff between 33k and 33 - breaks with ${BASH_COMMAND}

      • Using trap debug to set an external additional title since for XTERM with no screen I know the solution. This breaks badly with the PS1.


      and variations of the above. I want a solution to be through screen, so both the window title and the screen window list show the full command.







      bash gnu-screen xterm






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question



      share|improve this question










      asked 42 mins ago









      kabanuskabanus

      1627 bronze badges




      1627 bronze badges

























          0






          active

          oldest

          votes













          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });















          draft saved

          draft discarded
















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f545458%2fdisplay-full-command-on-gnu-screen-with-bash-in-title%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown


























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes

















          draft saved

          draft discarded



















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f545458%2fdisplay-full-command-on-gnu-screen-with-bash-in-title%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown









          Popular posts from this blog

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

          Ciclooctatetraenă Vezi și | Bibliografie | Meniu de navigare637866text4148569-500570979m