(main, termio): Add the ability to set the username.

Get it from environment variable LOGNAME if set,
else get the user name from the system.

(main) [_DWIN32]: Add stdin redirection ability to the Win32 port.
The client reads until stdin redirection empty and then terminates.
This commit is contained in:
Ron Koenderink 2004-12-19 18:17:56 +00:00
parent 71a0ece0aa
commit dc9ce448db

View file

@ -14,7 +14,7 @@ empire \- Empire client
.BI \-k
]
[
.BI \-2\ outfile
.BI \-2 outfile
]
.br
.SH DESCRIPTION
@ -38,7 +38,7 @@ the password for your country in the game
.BI \-k
if someone else is connected to your country, kill their connection
.TP
.BI \-2\ outfile
.BI \-2 outfile
redirect output to
.I outfile
.SH ENVIRONMENT VARIABLES
@ -51,6 +51,8 @@ you should have the right default already.)
setenv COUNTRY country-name (optional)
.PP
setenv PLAYER representative-name (optional)
.PP
setenv LOGNAME username (optional)
.SH AUTHORS
.nf
Primary Author is Dave Pare (mr-frog@scam.berkeley.edu)