Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!rex!ukma!usenet.ins.cwru.edu!ncoast!allbery From: allbery@NCoast.ORG (Brandon S. Allbery KB8JRR/AA) Newsgroups: comp.sources.d Subject: Re: Screen 2.0 change Message-ID: <1991Mar27.004154.25200@NCoast.ORG> Date: 27 Mar 91 00:41:54 GMT References: <1991Mar19.164204.21361@eci386.uucp> <2921@kraftbus.cs.tu-berlin.de> Reply-To: allbery@ncoast.ORG (Brandon S. Allbery KB8JRR/AA) Followup-To: comp.sources.d Organization: North Coast Public Access Un*x (ncoast) Lines: 30 As quoted from by clipper@det.csd.uwo.ca (Khun Yee Fung): +--------------- | Is it possible to do the following: I usually use screen on a VT100 | clone. One day of a week I will use a vc404. On that day, since I | never exit from screen, I have to restart up screen, with all the | VT100 escape sequences on the screen, terminate it, and then start a | new screen. Is there a way to tell screen on the fly that the physical | terminal has changed? +--------------- Well, under that oh-so-evil terminfo/curses, you can do this by doing a scrdump() to save the screen/window images to a file, endwin(), change $TERM, initscr(), and scrload(). I think it may be possible to do this without the save/restore as well (manuals are at work, I'm at home...). (SVR3.2 or later required, certainly SunOS4's terminfo/curses should do it). I can't see why the terminfo needs to be changed on the fly, anyway. So the terminal can't blink --- terminfo/curses will either simulate it with another attribute or ignore it. Use the standard terminfo entry. This is what I'm doing in a screen-oid program I'm writing for SCO UNIX. (Attribute-space terminals can be handled by some extra code to test for magic_cookie_glitch and not do attributes in that case; or, preferably, by replacing the terminal in question with something sane.) ++Brandon -- Me: Brandon S. Allbery Ham: KB8JRR/AA on 2m, 220, 440, 1200 Internet: allbery@NCoast.ORG (QRT on HF until local problems fixed) America OnLine: KB8JRR // Delphi: ALLBERY AMPR: kb8jrr.AmPR.ORG [44.70.4.88] uunet!usenet.ins.cwru.edu!ncoast!allbery KB8JRR @ WA8BXN.OH