i would like to know if there is a way to read a string continuously on the console and detect the backspace key if the user erase a character. Let me explain a little bit more, for example:
- Write a word on the console: "Word" So i got the string. And i can use all the methods from string like access to the characters item[0] = "W" or item.length()
- The user press the backspace key and know my string item will have "Wor"
- If the user put another letter the string is updated "Worrtw"
I using this for recommend words according what user is typing. I posting this beacause i really don't found anything usefull at the moment for the keywords or something about the string.