[ubuntu] python script to restrict keyboard input to a specified length of characters

view full story

http://ubuntuforums.org – hi.. i am trying to write a script, which accepts user input from keyboard. similar to this. http://stackoverflow.com/questions/8...rs-and-lengths however, my idea is to stop the cursor in the output terminal, after it reaches a specified length (say 16 characters). how do i do this? please help! (Hardware)