scanf shouldn't be echoing characters. Either you have a setting wrong and your terminal line is doing autoecho or your vendor screwed up.