1

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

0

2 Answers 2

1

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.

1

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .