I'm attempting to detect whenever backspace is hit when typing in a specific scenario in Vim. I'm using getchar() to grab general characters from user input. Ideally, I'd like to detect the backspace keystroke in this manner. I was thinking of using stty somehow, but I'm not certain as of yet. Any suggestions?
问问题
152 次