Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

What is terminal initialization by reset command? When should reset command be used?

share|improve this question

2 Answers 2

reset will actually completely re-initialise the terminal, instead of just clearing the screen. However, it won't re-instantiate the shell (bash). That means that bash's state is the same as before, just as if you were merely clearing the screen.

share|improve this answer

For me:

$ tput reset | od -t x1z 
0000000 1b 63 1b 5b 21 70 1b 5b 3f 33 3b 34 6c 1b 5b 34  ..c.[!p.[?3;4l.[4.
0000020 6c 1b 3e                                         .l...
0000023

... cleansed a bit in the 'z' output above - &gt / &lt doesn't work well here.

More information, (too much?):

$ man terminfo
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.