Related Posts. Best Terminal for cygwin. How can I check if a program exists from a Bash script? Backspace and arrow keys not working in (how to fix)vi/vim editor in ubuntu 14.04 /linux mint. I can backspace sometimes, but at other times it does nothing; the cursor doesn't go to the left, and absolutely nothing seems to happen.. You may have to check the "Hide Obsolete" checkbox for term to appear in the search. . Now, if you restart your vscode or terminal inside the vscode, TERM will reset to default and the problem will occur again. Recovering from a blunder I made while emailing a professor. But it worked like a charm to me thanks to Yuksel, The problem was with 'termInfo' files, Steps he have suggested, confirm if the problem is terminal related by typing in CygWin Terminal, this should give (ignore the warning), WARNING: terminal is not fully functional, Get the information of 'TermCap' to which path or directory it is related to by typing below code in CygWin Terminal, infocmp: couldn't open terminfo file /usr/share/terminfo/63/cygwin, Or you might also get something starting with text like 'Reconstructed via infocmp', Run the below code in CygWin Terminal to run the diagnostics to get extra details about the path where the files are saved, that should respond you similar to below text, C:/cygwin / system binary,noacl, C:/cygwin/bin /usr/bin system binary,noacl, C:/cygwin/lib /usr/lib system binary,noacl, C:\cygwin\etc\terminfo /usr/share/terminfo system binary,noacl, cygdrive prefix /cygdrive user binary, noacl, posix=0, auto, from the output, you got from the 3rd step. If you do not want to uninstall the driver, you can even try updating the driver by selecting Update driver from the context menu. The user's problem with the terminal in a remote machine and the problem I faced in a docker container may be caused by the same issue, which is related to the terminfo (about terminfo). Continue with Recommended Cookies. @whtyger this worked for this script. Thank you for the information. How do I align things in the following tabular environment? in my .bashrc file, and use some other terminal to access the server, it often ends up wrong. I run: And I found that