# $language = "python" # $interface = "1.0" # A Python login script that waits for a login prompt then sends # a 'setenv DISPLAY :0.0' command to direct X-clients to a # locally run Xserver. def main(): crt.Screen.WaitForString("myhost$ ") display = "setenv DISPLAY " + crt.Session.LocalAddress + ":0.0\r" crt.Screen.Send(display) main()