9term: add -c to force cooked mode
R=rsc CC=codebot http://codereview.appspot.com/1044043
This commit is contained in:
parent
9fb7a4f7f7
commit
670f730113
2 changed files with 11 additions and 3 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B 9term
|
.B 9term
|
||||||
[
|
[
|
||||||
.B -as
|
.B -asc
|
||||||
]
|
]
|
||||||
[
|
[
|
||||||
.B -f
|
.B -f
|
||||||
|
|
@ -30,10 +30,15 @@ Otherwise button 2 brings up a menu, described below.
|
||||||
.PP
|
.PP
|
||||||
The
|
The
|
||||||
.B -s
|
.B -s
|
||||||
option initializes windows so that text scrolls;
|
option initializes the window so that text scrolls;
|
||||||
the default is not to scroll.
|
the default is not to scroll.
|
||||||
.PP
|
.PP
|
||||||
The
|
The
|
||||||
|
.B -c
|
||||||
|
option starts the window in forced cooked mode,
|
||||||
|
described below.
|
||||||
|
.PP
|
||||||
|
The
|
||||||
.I font
|
.I font
|
||||||
argument to
|
argument to
|
||||||
.B -f
|
.B -f
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,7 @@ void resizethread(void*);
|
||||||
void servedevtext(void);
|
void servedevtext(void);
|
||||||
|
|
||||||
int errorshouldabort = 0;
|
int errorshouldabort = 0;
|
||||||
|
int cooked;
|
||||||
|
|
||||||
void
|
void
|
||||||
usage(void)
|
usage(void)
|
||||||
|
|
@ -69,6 +70,9 @@ threadmain(int argc, char *argv[])
|
||||||
case 's':
|
case 's':
|
||||||
scrolling = TRUE;
|
scrolling = TRUE;
|
||||||
break;
|
break;
|
||||||
|
case 'c':
|
||||||
|
cooked = TRUE;
|
||||||
|
break;
|
||||||
case 'w': /* started from rio or 9wm */
|
case 'w': /* started from rio or 9wm */
|
||||||
use9wm = TRUE;
|
use9wm = TRUE;
|
||||||
break;
|
break;
|
||||||
|
|
@ -277,7 +281,6 @@ new(Image *i, int hideit, int scrollit, int pid, char *dir, char *cmd, char **ar
|
||||||
/*
|
/*
|
||||||
* Button 2 menu. Extra entry for always cook
|
* Button 2 menu. Extra entry for always cook
|
||||||
*/
|
*/
|
||||||
int cooked;
|
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue