mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Clean up main
This commit is contained in:
parent
1636a55b7e
commit
a37ad26a88
2 changed files with 8 additions and 6 deletions
|
|
@ -76,7 +76,9 @@ int main(int argc, char *argv[])
|
|||
|
||||
/* Create log file */
|
||||
if (option.log)
|
||||
{
|
||||
log_open(option.log_filename);
|
||||
}
|
||||
|
||||
/* Initialize ANSI text formatting (colors etc.) */
|
||||
print_init_ansi_formatting();
|
||||
|
|
@ -86,11 +88,16 @@ int main(int argc, char *argv[])
|
|||
tio_printf("Press ctrl-t q to quit");
|
||||
|
||||
/* Open socket */
|
||||
socket_configure();
|
||||
if (option.socket)
|
||||
{
|
||||
socket_configure();
|
||||
}
|
||||
|
||||
/* Connect to tty device */
|
||||
if (option.no_autoconnect)
|
||||
{
|
||||
status = tty_connect();
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Enter connect loop */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue