You are not logged in.

#1 2017-06-11 18:47:31

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

All of a sudden ENTER key produces ^M when programs need input

All of a sudden all users on my box (mine and root) have their ENTER key changed to a literal ^M but only when a program asks for input.  I can enter commands just fine, ie `ls -l` followed by ENTER works.  What doesn't work is when a programs needs input like:

# mkfs.ext4 -L blank /dev/nvme0n1p4
mke2fs 1.43.4 (31-Jan-2017)
/dev/nvme0n1p4 contains a ext4 file system labelled 'spare'
	last mounted on /opt/junk on Sun Jun 11 14:39:56 2017
Proceed anyway? (y,N) y^M

I am unable to enter the affirmative followed by ENTER... why?  The root shell is /bin/bash while my user shell is /bin/zsh.  In the simple case of root, I have no /root/.bashrc.  Thanks.

Note - googling found the fix which is to execute `stty icrnl`but why all of sudden is this required?

Offline

#2 2017-06-11 20:13:16

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,887

Re: All of a sudden ENTER key produces ^M when programs need input

Just some ideas:
console and/or which VTE (on what desktop session using evdev or libinput driver in case of some X11 one)?

Offline

Board footer

Powered by FluxBB