I want to replace last x character from console output.
I can remove complete line by using \r.
But is there a way to just remove last x character from console output ?
on 03/07/2013 – Made popular on 03/07/2013
If i try to type a capital letter with accent (e.g. Ř) in kde-konsole, I get the following result: ˇR - the letter and the accent as two characters. The normal behaviour is that after pressing ˇ character, it is not output immediately but another character is expected. In the konsole tho, the character is output immediately. In other applications, it works fine.
So, the linux "top" command has the real time-like loop with console output (nothing fancy), but it uses non-blocking console input which doesn't display typed character in the command line. How it's done? Is there any library for it, do they use threads?
Due to some encoding problems, some characters in my database have been interpreted uncorrectly. Some chars have been replaced with the 'replacement character'.
I need to find all such chars and replace them with space. I have been googling different solutions using sed, bash, perl, etc with no luck. Could someone share a solution how to find such characters (i.e.