I'm using the following options in order to launch a 'screen' session when I launch Terminal.app to my OSX Mountain Lion:
**~/.zshrc relevant option** if [[ $STY = '' ]] then screen -UxR; fi # autoload screen **~/.screenrc** escape ^Bb autodetach on startup_message off # Turn off the splash screen defscrollback 30000 # Use a 30000-line scrollback buffer
Then, when I launch the terminal and issue the 'who' command I see this:
➜ ~ who atma console Aug 2 09:59 atma ttys000 Aug 2 11:32 atma ttys002 Aug 2 11:32
The first line is the default 'ho-my-zsh' prompt.
I'm pretty sure there is a good explanation but out of curiosity why there are 2 tty's there and not 1? If I exit the screen, using the 'exit' command I get 1 console and 1 ttys:
Last login: Thu Aug 2 11:32:40 on ttys000 [screen is terminating] ➜ ~ who atma console Aug 2 09:59 atma ttys000 Aug 2 11:32
Shouldn't only 'console' be listed here?
Regards & thanks for your time!