Re: Screen script DISPLAYNUM

[email protected]
Newsgroups gmane.linux.terminal-server.devel
Message-ID <[email protected]>
On Sun, Mar 23, 2008 at 12:44:15AM -0400, Warren Togami wrote:
> === modified file 'screen.d/ldm'
> --- screen.d/ldm        2008-03-22 21:38:50 +0000
> +++ screen.d/ldm        2008-03-23 04:25:19 +0000
> @@ -30,7 +30,7 @@
> 
>   TTY=$(tty)
>   TTYNUM=${TTY#/dev/tty}
> -DISPLAYNUM=$((${TTYNUM} - 1))
> +DISPLAYNUM=${TTYNUM}
> 
>   #
>   # limit ram percentage.  By default, behaviour is no limit.
> 
> 
> Why is this TTYNUM minus one?  With TTYNUM minus one, SCREEN_07=ldm ends 
> up on VT6 which makes no sense.

the only real logic behind this that i can think of is that DISPLAY
numbers typically begin at 0, and tty numbers typically begin at 1.  so
the first DISPLAY is :0 and the first tty is tty1. i've always thought
it was kind of silly, but that's how it's been from early on.

i wouldn't have any objection to changing it, although i would prefer
changing it after merging all the screen-x-common code.

live well,
  vagrant

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_____________________________________________________________________
Ltsp-developer mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-developer
For additional LTSP help,   try #ltsp channel on irc.freenode.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.