Menu

Cygwin - Shell Error Window displaying 1 char

Help
MikeO
2006-05-27
2013-04-25
  • MikeO

    MikeO - 2006-05-27

    Nice plugin!  I set the shell to be cygwin in the preferences. Shell view is ok and all works fine. However the shell error window keeps poping up with one character being displayed each time. Is this normal behaviour? I did turn off the shell error window to not have the popup.

    I did set the PS1 to be PS1='cyg $ '.
    -----

    27. May 2006 07:18:48 # Shell Error Display is listening...

    27 May 2006 07:18:50 # ]0;~

    27 May 2006 07:18:50 # morechoff@ACI02 ~

    27 May 2006 07:19:19 # x
    27 May 2006 07:19:31 # w
    27 May 2006 07:19:47 # c

    -------------
    ]0;~
    morechoff@A02 ~
    $ export PS1='cyg $ '
    cyg $ pwd
    /cygdrive/c/Documents and Settings/morechoff
    cyg $ echo $HOME
    /cygdrive/c/Documents and Settings/morechoff
    cyg $ pwd
    /cygdrive/c/Documents and Settings/morechoff
    cyg $

     
    • S. Reichert

      S. Reichert - 2006-05-27

      Hi Mike,

      it is normal behaviour that on startup the bash.exe puts something in the error output, I don't know why... But the first error message you get, 

      27 May 2006 07:18:50 # ]0;~

      27 May 2006 07:18:50 # morechoff@ACI02 ~

      can be eliminated by setting the PS1 variable in the '.bashrc' file of your cygwin user home directory. The problem is, that the default setting of the PS1 sends some ASCII escape characers (]0;~ ,  ,  and ) which cannot be displayed by the SWT Text widget. When you set the PS1=\\t' '\\u'@'\\H\\r\\n\\w'$ ' and define your cygwin root folder (installation directory) you also have command completion.

      Regards Stefan

       
      • MikeO

        MikeO - 2006-05-27

        Hi Stefan!

        The first "errors" I understand (they are from the PS1), but after I set PS1 to be 'cyg $ ', whenever I enter a command I get the one character returned in error window.

        Are you saying the one character returned for each command is normal behaviour too?

        Thanks Stefan!

         
    • S. Reichert

      S. Reichert - 2006-05-27

      Hi back,
      I just had a look and it seems to be 'normal'. Actually I didn't pay attention to the error log as I disabled the popup on error as well. The characters come from the OutputStream of the bash.exe RuntimeProcess . I don't know why but it doesn't seem to harm either :-). I'll take a closer look, maybe I do something wrong on transferring the input...
      Hope the plugin is still usable though.

      Regards Stefan

       

Log in to post a comment.

MongoDB Logo MongoDB