Remove breakage of 1.8.2.2, choose slightly better character for quit.

This commit is contained in:
Jordan K. Hubbard 1996-12-30 09:01:50 +00:00
parent 89eac9644c
commit 33bdf4c4ae
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=21048
2 changed files with 4 additions and 4 deletions

View File

@ -61,7 +61,7 @@ Names may be preceded by "/dev/".
While running in interactive mode, all user input is discarded except for:
.Pp
.Bl -tag -width "XXXX" -compact
.It Sy "<control-Q>"
.It Sy "<control-G>"
Exit
.Nm watch .
.It Sy "<control-W>"

View File

@ -96,11 +96,11 @@ set_tty()
ioctl(std_in, TIOCGETC, &tco);
sgn = sgo;
tc = tco;
sgn.sg_flags |= RAW;
sgn.sg_flags |= CBREAK;
sgn.sg_flags &= ~ECHO;
ospeed = sgo.sg_ospeed;
tc.t_intrc = 17; /* ^Q */
tc.t_quitc = 17; /* ^Q */
tc.t_intrc = 07; /* ^G */
tc.t_quitc = 07; /* ^G */
ioctl(std_in, TIOCSETP, &sgn);
ioctl(std_in, TIOCSETC, &tc);
}