WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: TCL:11 Is this a feature? Can't type in when a job is background'ed  (Read 2063 times)

Offline Santos

  • Full Member
  • ***
  • Posts: 113
Hi!

Pretty much the title. When I do something like:

Code: [Select]
ls | less
Ctrl + z

And, if for some reason the shell needs input from me -e.g when trying to replace a file with cp-, I just can't type in anything at all.

Code: [Select]
tc@box:~$ cp ./1 ./2/
cp: overwrite './2/1'?

Can quit it with Ctrl+C though.
Is it a shell or terminal issue? Or even an issue at all?
Happens with graphic/text mode.

Thank you in advance.

Edit: As far as I remember it's the same with TCL 7-10.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11050
Re: TCL:11 Is this a feature? Can't type in when a job is background'ed
« Reply #1 on: March 30, 2020, 04:46:03 AM »
Most likely shell bug, please try bash.
The only barriers that can stop you are the ones you create yourself.

Offline Santos

  • Full Member
  • ***
  • Posts: 113
Re: TCL:11 Is this a feature? Can't type in when a job is background'ed
« Reply #2 on: April 04, 2020, 12:38:05 AM »
Ok, done it. Tried Bash, but now it's the other way around. Can't go back to the job, but I'm able to type in.

Code: [Select]
[1]+  Stopped                 ls -p | less
tc@box:~$ fg
ls -p | less
jkjkjkjkjkjkjkjkjkjkjjkj^[[A^[[A^[[B^[[B^[[D^[[C^[[B^[[A