user3482682
user3482682

Reputation: 451

Shell return "PuTTYPuTTYPuTTY..."

After "composer global update" command I have found problem when using laravel bash commands.

For example after launch "php artisan migrate:refresh --seed --force" (that have worked well) automatically I found this text in the shell: "PuTTYPuTTYPuTTYPuTTYPuTTY..."

Upvotes: 6

Views: 5149

Answers (2)

mwfearnley
mwfearnley

Reputation: 3649

PuTTY is configured by default to type the string PuTTY when it encounters a ^E character. See the Answerback to ^E field in PuTTY's Terminal settings.

Just pressing Ctrl+e in a session doesn't generally trigger this, but you can trigger the behaviour by making the terminal print a Ctrl E character, which is 0x05 (according to https://www.eso.org/~ndelmott/ascii.html).

One way to do that is with:

printf "\5"

After this, the string PuTTY is typed to the terminal, seemingly as if you'd typed it yourself.

(You can backspace over it, or press Enter and get a PuTTY: command not found message.)

Upvotes: 3

Kenster
Kenster

Reputation: 25380

The putty FAQ describes this behavior. The command that you are running is issuing some non-printing characters, specifically Ctrl-E, which causes Putty to respond with a string that identifies the terminal.

Upvotes: 9

Related Questions