As per the title, when I press Ctrl+L it just simulates a return carriage and returns me to the prompt.

link|improve this question

50% accept rate
Works for me. Are you using a recent Cygwin version? What shell are you using (i.e. the default bash or something else)? – ak2 Jan 19 at 12:06
I just reinstalled cygwin from scratch with the same problem. I'm going to reinstall Console2. – wulfgar.pro Jan 20 at 3:50
Also just reinstalled Console2 and wiped all settings. Same deal - Ctrl+L just does a carriage return. – wulfgar.pro Jan 20 at 4:02
Hm - could this have to do with my running on Windows 7 x64? – wulfgar.pro Jan 23 at 22:48
Does the clear command clear the screen? What does clear | cat -A print? What is your $TERM environment variable set to? – Keith Thompson Jan 24 at 1:39
show 1 more comment
feedback

2 Answers

up vote 1 down vote accepted
+50

The problem is the $TERM setting. For the Cygwin console, this should be set to cygwin, and it's the same for Console2, which is a wrapper around the console window.

Something must have set TERM to dumb in the system-wide settings. Perhaps some other Unix toolkit?

link|improve this answer
I added the export to my .bashrc and all was solved. Not sure what changed it. – wulfgar.pro Jan 24 at 22:44
feedback

That's because you've told it to do this.

You've …

  • … switched out of emacs mode into vi mode with
    set -o vi
    ; or
  • … reprogrammed Ctrl+L with
    bind '"\C-l": something'
    ; or
  • you've done something in Console2 to remap the key there.

So simply undo that. Switch the readline mode back or re-bind the key to clear-screen.

link|improve this answer
set -o shows emacs on, vi off; I've never used the bind command. I executed the following: bind '"\C-l": clear-screen', and I'm getting the same behavior. – wulfgar.pro Jan 19 at 22:53
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.