~ubuntu-branches/ubuntu/trusty/util-linux/trusty-proposed

« back to all changes in this revision

Viewing changes to misc-utils/README.reset

  • Committer: Package Import Robot
  • Author(s): LaMont Jones
  • Date: 2011-11-03 15:38:23 UTC
  • mto: (4.5.5 sid) (1.6.4)
  • mto: This revision was merged to the branch mainline in revision 85.
  • Revision ID: package-import@ubuntu.com-20111103153823-10sx16jprzxlhkqf
ImportĀ upstreamĀ versionĀ 2.20.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
RedHat and SuSE take the program reset from ncurses,
2
 
 where reset is a name for the program tset.
3
 
 It is approximately equivalent to
4
 
        stty sane; tputs rs1; tputs rs2; tputs rf
5
 
 with `tputs rf' replaced by `tputs if' when there is an
6
 
 init_file but no reset_file. In the comments it wonders
7
 
 whether also sending rs3, rmacs, rmul, rmm might be a good idea.
8
 
 
9
 
Slackware uses the small script given here.
10
 
 The part `echo -e \\033c' is the canonical reset of the kernel
11
 
 console status, and is equivalent to `tputs rs1' for a linux
12
 
 terminal.
13
 
 
14
 
So, both versions are approximately the same.
15
 
 
16
 
 
17
 
[A disadvantage of `echo -e \\033c' might be that it is potentially
18
 
wrong on a non-vt100, non-xterm, non-linux terminal.
19
 
An advantage is that there are terminfo entries for xterm around
20
 
that only use rs1=^O as reset, and then \Ec is much better.]