Terminal number (sys.TTYno2)ΒΆ

sys.TTYno2,,u2

Terminal number

Version >= 6.1.1

On Unix and Linux, this uses a different algorithm (from sys.TTYno) to calculate the tty number from the major and minor device numbers and avoids the number becoming negative when using terminal emulators. This is compatible with the modified ttyno variable in Sculptor 2.5d.


EXAMPLE

+textbox TermBox2 at 60,10 {
     field = sys.TTYno2
     label = "Terminal"
}

...
display TermBox2

RELATED TOPICS

sys.TTYno