* Screen package (Mike Feldman) @ 2008-12-23 21:22 tolkamp 2008-12-24 7:20 ` John B. Matthews ` (2 more replies) 0 siblings, 3 replies; 6+ messages in thread From: tolkamp @ 2008-12-23 21:22 UTC (permalink / raw) I have downloaded the Screen package from Mike Feldman. It works on the CMD (terminal) window with the following problems after a ClearScreen command : 1) Only half of the lines of the screen is cleared. 2) The prompt "C:\GNAT\bin>" remains displayed at the left upper corner of the screen. How can the screen be cleared complete? ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Screen package (Mike Feldman) 2008-12-23 21:22 Screen package (Mike Feldman) tolkamp @ 2008-12-24 7:20 ` John B. Matthews 2008-12-24 11:05 ` tolkamp 2008-12-25 6:26 ` Ivan Levashew 2008-12-24 15:57 ` anon 2008-12-25 5:55 ` Ivan Levashew 2 siblings, 2 replies; 6+ messages in thread From: John B. Matthews @ 2008-12-24 7:20 UTC (permalink / raw) In article <763c9600-b888-4d85-9fe9-2f1e5286eadf@i24g2000prf.googlegroups.com>, tolkamp <f.tolkamp@chello.nl> wrote: > I have downloaded the Screen package from Mike Feldman. It works > on the CMD (terminal) window with the following problems after a > ClearScreen command : > 1) Only half of the lines of the screen is cleared. > 2) The prompt "C:\GNAT\bin>" remains displayed at the left upper > corner of the screen. > How can the screen be cleared complete? IIRC, some terminal emulators clear the screen by writing a series of empty lines to the screen. If the terminal window is enlarged, the number of lines written may not suffice to clear the entire screen. Have you tried a different terminal emulator? <http://technosrix.blogspot.com/2008/08/best-windows-terminal-emulators.html> <http://www.mit.edu/~vona/MSim/vona/terminal/VT100_Escape_Codes.html> -- John B. Matthews trashgod at gmail dot com http://home.roadrunner.com/~jbmatthews/ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Screen package (Mike Feldman) 2008-12-24 7:20 ` John B. Matthews @ 2008-12-24 11:05 ` tolkamp 2008-12-25 6:26 ` Ivan Levashew 1 sibling, 0 replies; 6+ messages in thread From: tolkamp @ 2008-12-24 11:05 UTC (permalink / raw) On 24 dec, 08:20, "John B. Matthews" <nos...@nospam.com> wrote: > In article > <763c9600-b888-4d85-9fe9-2f1e5286e...@i24g2000prf.googlegroups.com>, > > tolkamp <f.tolk...@chello.nl> wrote: > > I have downloaded the Screen package from Mike Feldman. It works > > on the CMD (terminal) window with the following problems after a > > ClearScreen command : > > 1) Only half of the lines of the screen is cleared. > > 2) The prompt "C:\GNAT\bin>" remains displayed at the left upper > > corner of the screen. > > How can the screen be cleared complete? > > IIRC, some terminal emulators clear the screen by writing a series > of empty lines to the screen. If the terminal window is enlarged, > the number of lines written may not suffice to clear the entire > screen. Have you tried a different terminal emulator? > > <http://technosrix.blogspot.com/2008/08/best-windows-terminal-emulator...> > <http://www.mit.edu/~vona/MSim/vona/terminal/VT100_Escape_Codes.html> > > -- > John B. Matthews > trashgod at gmail dot comhttp://home.roadrunner.com/~jbmatthews/ I have increased the Win32_Screen_Size from 2000 into 4000. And supprise ... the screen is now cleared complete. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Screen package (Mike Feldman) 2008-12-24 7:20 ` John B. Matthews 2008-12-24 11:05 ` tolkamp @ 2008-12-25 6:26 ` Ivan Levashew 1 sibling, 0 replies; 6+ messages in thread From: Ivan Levashew @ 2008-12-25 6:26 UTC (permalink / raw) On 24 дек, 13:20, "John B. Matthews" <nos...@nospam.com> wrote: > > IIRC, some terminal emulators clear the screen by writing a series > of empty lines to the screen. If the terminal window is enlarged, > the number of lines written may not suffice to clear the entire > screen. Have you tried a different terminal emulator? > > <http://technosrix.blogspot.com/2008/08/best-windows-terminal-emulator...> This post isn't quite correct. There is no such thing as terminal emulator on plain Win32 installation. Terminal emulator is supposed to map stream of bytes to a matrix of characters. There are also some details such as signal hangling (e. g. SIGWINCH), but these are minory issues. Generally, UNIX Terminals operate on streams. Windows console doesn't. Win32 console can't be mapped to a stream. One can always output to it like if it was a file, but then one will lose ability to output unicode symbols, which is not a desired thing. One must use WriteConsoleW in order to output unicode symbols. The bad thing about WriteConsole is that it can only output symbols to a "console" objects. Console objects are maintained by OS, and one can't easily provide own console object instead of system one. Windows console objects is, put simply, a matrix of character cells. One can't replace it with something being more complex. (Apple Terminal stores window contents as a vector of strings, so it can rewrap strings after resizes). One can't enable more colors than 16 on Windows consoles. Windows console is a kind of terminal, and it's not replaceable. There are just 2 opportunities to replace Windows provided Terminal window: create invisible console object and render its contents on another window, or intercept Console APIs. Console2 actually installs interceptor DLL. Tools like PuTTY interoperate with UNIX hosts so they are working on a byte streams. They are unable to host FAR manager because FAR manager uses Console APIs. There are advanced SSH servers for Windows that can (in contrast to Cygwin sshd) transmit FAR Manager window to a remote host. Such server is either intercepting APIs or creating invisible console object and transmitting updates. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Screen package (Mike Feldman) 2008-12-23 21:22 Screen package (Mike Feldman) tolkamp 2008-12-24 7:20 ` John B. Matthews @ 2008-12-24 15:57 ` anon 2008-12-25 5:55 ` Ivan Levashew 2 siblings, 0 replies; 6+ messages in thread From: anon @ 2008-12-24 15:57 UTC (permalink / raw) You might try. Put ( ASCII.ESC & "[2J" ) ; -- ANSI escape seq for clearing screen Also do a search for "ANSI ESCAPE CODES" for other codes. In <763c9600-b888-4d85-9fe9-2f1e5286eadf@i24g2000prf.googlegroups.com>, tolkamp <f.tolkamp@chello.nl> writes: >I have downloaded the Screen package from Mike Feldman. >It works on the CMD (terminal) window with the following problems >after a ClearScreen command : >1) Only half of the lines of the screen is cleared. >2) The prompt "C:\GNAT\bin>" remains displayed at the left upper >corner of the screen. >How can the screen be cleared complete? ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Screen package (Mike Feldman) 2008-12-23 21:22 Screen package (Mike Feldman) tolkamp 2008-12-24 7:20 ` John B. Matthews 2008-12-24 15:57 ` anon @ 2008-12-25 5:55 ` Ivan Levashew 2 siblings, 0 replies; 6+ messages in thread From: Ivan Levashew @ 2008-12-25 5:55 UTC (permalink / raw) On 24 дек, 03:22, tolkamp <f.tolk...@chello.nl> wrote: > I have downloaded the Screen package from Mike Feldman. > It works on the CMD (terminal) window with the following problems > after a ClearScreen command : > 1) Only half of the lines of the screen is cleared. > 2) The prompt "C:\GNAT\bin>" remains displayed at the left upper > corner of the screen. > How can the screen be cleared complete? Try this: "A Win32 version of Mike Feldman's SCREEN package" http://users.ncrvnet.nl/gmvdijk/packages.html It should work better. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-12-25 6:26 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2008-12-23 21:22 Screen package (Mike Feldman) tolkamp 2008-12-24 7:20 ` John B. Matthews 2008-12-24 11:05 ` tolkamp 2008-12-25 6:26 ` Ivan Levashew 2008-12-24 15:57 ` anon 2008-12-25 5:55 ` Ivan Levashew
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox