# Terminal input treated different when programm is executed by gradle-task

**URL:** <https://discuss.gradle.org/t/terminal-input-treated-different-when-programm-is-executed-by-gradle-task/26425>\
**Category:** Help/Discuss\
**Created:** [March 28, 2018, 6:56am UTC](https://discuss.gradle.org/t/terminal-input-treated-different-when-programm-is-executed-by-gradle-task/26425 "2018-03-28T06:56:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SomeSebastian](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@SomeSebastian](https://discuss.gradle.org/u/SomeSebastian)\
**Post date:** [March 28, 2018, 6:56am UTC](https://discuss.gradle.org/t/terminal-input-treated-different-when-programm-is-executed-by-gradle-task/26425/1 "2018-03-28T06:56:36Z")

</div>

Here is a simple python3 example programm _test.py_:

```
print('input value')
value = input()
print('your value',c value)

```

If this programm is executed by “python test.py” (in the linux terminal, e.g. bash or zsh), the keboard-input works fine.  
When i execute this file by gradle, the input is treated different.  
Example gradle task:

```
task (testInput, type:Exec){
  standardInput = System.in
  commandLine 'python', 'test.py'
}

```

Arrow-keys are displayed as “^[[A^[[C^[[D”  
Even if gradle opens a bash, the input is treated “wrong”:

```
task (testInput, type:Exec){
   standardInput = System.in
   commandLine 'bash'
}

```

How can this switched off?
