Documented crt variable and setenv command.
Showing
1 changed file
with
32 additions
and
9 deletions
... | @@ -1264,11 +1264,14 @@ Displays current mailbox summary. E.g.: | ... | @@ -1264,11 +1264,14 @@ Displays current mailbox summary. E.g.: |
1264 | @itemx p [@var{msglist}] | 1264 | @itemx p [@var{msglist}] |
1265 | @item type [@var{msglist}] | 1265 | @item type [@var{msglist}] |
1266 | @itemx t [@var{msglist}] | 1266 | @itemx t [@var{msglist}] |
1267 | Prints out the messages from @var{msglist}. If the variable @code{crt} | 1267 | Prints out the messages from @var{msglist}. The variable @code{crt} |
1268 | is set and the number of lines in the message is greater than the number | 1268 | determines the minimum number of lines the body of the message must |
1269 | of lines on screen, the message is piped through pager command specified | 1269 | contain in order to be piped through pager command specified |
1270 | by environment variable @code{PAGER}. The number of lines on screen is | 1270 | by environment variable @code{PAGER}. If @code{crt} is set to a numeric |
1271 | controlled by @code{screen} variable. | 1271 | value, this value is taken as the mininmum number of lines. Otherwise, |
1272 | if @code{crt} is set without a value then the height of the terminal | ||
1273 | screen is used to compute the threshold. The number of lines on | ||
1274 | screen is controlled by @code{screen} variable. | ||
1272 | @item Print [@var{msglist}] | 1275 | @item Print [@var{msglist}] |
1273 | @itemx P [@var{msglist}] | 1276 | @itemx P [@var{msglist}] |
1274 | @itemx Type [@var{msglist}] | 1277 | @itemx Type [@var{msglist}] |
... | @@ -1470,6 +1473,22 @@ To undo the effect of the previous example, do: | ... | @@ -1470,6 +1473,22 @@ To undo the effect of the previous example, do: |
1470 | & unset askcc crt indentprefix | 1473 | & unset askcc crt indentprefix |
1471 | @end example | 1474 | @end example |
1472 | 1475 | ||
1476 | @subheading Setting and unsetting shell environment variables. | ||
1477 | |||
1478 | Shell environment may be modified using @samp{setenv} (@samp{sete}) | ||
1479 | command. The command takes a list of assignments. The syntax of an | ||
1480 | assignment is: | ||
1481 | |||
1482 | @table @samp | ||
1483 | @item @var{name}=@var{value} | ||
1484 | If variable @var{name} does not already exist in the environment, | ||
1485 | then it is added to the environment with the value @var{value}. | ||
1486 | If @var{name} does exist, then its value in the environment is | ||
1487 | changed to @var{value}. | ||
1488 | @item @var{name} | ||
1489 | Delete the variable @var{name} from the environment (``unset'' it). | ||
1490 | @end table | ||
1491 | |||
1473 | @subheading Conditional statements | 1492 | @subheading Conditional statements |
1474 | 1493 | ||
1475 | The conditional statement allows to execute a set of mail commands | 1494 | The conditional statement allows to execute a set of mail commands |
... | @@ -1665,12 +1684,16 @@ fails, the value of environment variable @code{COLUMNS} is used. | ... | @@ -1665,12 +1684,16 @@ fails, the value of environment variable @code{COLUMNS} is used. |
1665 | This variable contains the number of columns on terminal screen. | 1684 | This variable contains the number of columns on terminal screen. |
1666 | 1685 | ||
1667 | @item crt | 1686 | @item crt |
1668 | @*Type: Boolean. | 1687 | @*Type: Boolean or Numeric |
1669 | @*Default: True in interactive mode, False otherwise. | 1688 | @*Default: True in interactive mode, False otherwise. |
1670 | 1689 | ||
1671 | If @code{True}, any messages with number of lines greater than number of | 1690 | The variable @code{crt} determines the minimum number of lines the body |
1672 | lines on terminal screen (as determined by @code{screen} variable) will | 1691 | of the message must contain in order to be piped through pager command |
1673 | be printed using program set in the environment variable @code{ENVIRON}. | 1692 | specified by environment variable @code{PAGER}. If @code{crt} is set |
1693 | to a numeric value, this value is taken as the threshold. Otherwise, | ||
1694 | if @code{crt} is set without a value, then the height of the terminal | ||
1695 | screen is used to compute the threshold. The number of lines on | ||
1696 | screen is controlled by @code{screen} variable. | ||
1674 | 1697 | ||
1675 | @item dot | 1698 | @item dot |
1676 | @*Type: Boolean. | 1699 | @*Type: Boolean. | ... | ... |
-
Please register or sign in to post a comment