Re: sysinstall and the Right Terminal
Thomas Dickey writes: Terminal would probably be one of the programs using VTE, which differs from linux. This is all very interesting. Thanks to all. What I normally do is start a command-line shell on a Debian Linux box. This defaults to a linux console. When I ssh somewhere, ssh passes the exported $TERM value to the remote host so as I understand it, it will use this value in the environment that it exports to any application called from that shell. The question is whether or not all the escape codes it sends to address the terminal and all the escape sequences it looks for to represent arrow keys, etc, will still work. The best results, so far, are with using cons25 as the TERM value. The Up and Down arrows work right as opposed to going right straight to X Exit this menu. I appreciate all the input because in this game, knowledge is the power to fix it. Martin McCormick ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: sysinstall and the Right Terminal
On Mon, Jan 25, 2010 at 09:25:21AM -0600, Martin McCormick wrote: Thomas Dickey writes: Terminal would probably be one of the programs using VTE, which differs from linux. This is all very interesting. Thanks to all. What I normally do is start a command-line shell on a Debian Linux box. This defaults to a linux console. When I ssh somewhere, ssh passes the exported $TERM value to the remote host so as I understand it, it will use this value in the environment that it exports to any application called from that shell. The question is whether or not all the escape codes it sends to address the terminal and all the escape sequences it looks for to represent arrow keys, etc, will still work. It should - the remote machine should have the same terminal description. Your local machine however may have initialized the Linux console to expect UTF-8 encoding, and the remote machine may not know about that. Line- drawing wouldn't work properly in that case, but cursor-movement and keys should. The best results, so far, are with using cons25 as the TERM value. The Up and Down arrows work right as opposed to going right straight to X Exit this menu. My first impression was that it could be a disagreement between the two machine whether cursor-application mode is set. That changes the escape sequence sent by the cursor-keys. However, ncurses' descriptions for both say they're using normal (non-application) mode. So that doesn't seem to explain it. It's also possible that the screensize isn't being transmitted (and stty -a would show if it's really 25 lines or not). I appreciate all the input because in this game, knowledge is the power to fix it. Martin McCormick ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net pgpQLAAPrLnah.pgp Description: PGP signature
Re: sysinstall and the Right Terminal
On Sat, Jan 23, 2010 at 12:48:32PM -0700, Dale Scott wrote: Using Ubuntu 9.10 (Karmic Koala) and GNOME Terminal 2.28.1, $TERM is Xterm. $ echo $TERM Xterm $ The only thing I'd change about the mapping is that I'd rather flash the screen instead of ringing the bell. Put: XTerm*visualBell:true in ~/.Xdefaults and that should fix it. Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: sysinstall and the Right Terminal
Dale Scott writes: I don't have a solution but can report I regularily login to my fbsd 7 and 8 boxes from an Ubuntu laptop using ssh in Terminal and run sysinstall. I've never encountered this problem though. Thank you for responding. If you type echo $TERM or just the command env Is TERM = linux or something else? As I write this message, I have cons25l1 as the environment variable for TERM and sysinstall came up with no issues at all. I could make that my default terminal except for the fact that a few of the escape codes for formatting the screen quit working for applications like vi. In vi, for instance, one can join two lines together by typing a J in command mode. That works under a linux or VT100 terminal but it doesn't work when using cons25. It may end up being one of those things I just remember to do when necessary. One interesting thing I notice is that when in linux or VT100 emulation, I always lost the Bell that rings during vi when you hit Escape more than once or try to move the cursor past the end of the text. The bell works in cons25. The formatting issues are more of an issue than the bell so I will need to go back to a more VT100-like terminal. What we may be dealing with is the fact that some programs do their own emulation based on what they think the terminal should be. There is something called raw mode and cooked mode. The shell and a lot of applications use cooked mode and rely on the shell to do the addressing. Other full-screen programs like vi turn off the shell's processing and use their own. This is only bad if it isn't what works with your display device. What is even more interesting is that vi under Linux, itself, has all the bells, so to speak. I am getting in to an area in which I know less than I should so I will stop here. Martin McCormick WB5AGZ Stillwater, OK Systems Engineer OSU Information Technology Department Telecommunications Services Group ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: sysinstall and the Right Terminal
On Sat, Jan 23, 2010 at 08:01:41AM -0600, Martin McCormick wrote: Dale Scott writes: I don't have a solution but can report I regularily login to my fbsd 7 and 8 boxes from an Ubuntu laptop using ssh in Terminal and run sysinstall. I've never encountered this problem though. Thank you for responding. If you type echo $TERM or just the command env Is TERM = linux or something else? Terminal would probably be one of the programs using VTE, which differs from linux. -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net pgplbt0hD0XM4.pgp Description: PGP signature
RE: sysinstall and the Right Terminal
Using Ubuntu 9.10 (Karmic Koala) and GNOME Terminal 2.28.1, $TERM is Xterm. $ echo $TERM Xterm $ The only thing I'd change about the mapping is that I'd rather flash the screen instead of ringing the bell. -Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd- questi...@freebsd.org] On Behalf Of Martin McCormick Sent: January-23-10 7:02 AM To: freebsd-questions@freebsd.org Subject: Re: sysinstall and the Right Terminal ... Is TERM = linux or something else? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: sysinstall and the Right Terminal
On Fri, 22 Jan 2010 16:10:15 -0600, Martin McCormick mar...@dc.cis.okstate.edu wrote: If one logs in to a FreeBSD system from a Linux platform, the terminal type is set to linux which is compatible with a vt100. What about using $TERM = xterm or cons25 (or cons25l1)? -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: sysinstall and the Right Terminal
If one logs in to a FreeBSD system from a Linux platform, the terminal type is set to linux which is compatible with a vt100. As soon as I run sysinstall, things go to the dogs very fast. It is as if there was no terminal emulation in effect I don't have a solution but can report I regularily login to my fbsd 7 and 8 boxes from an Ubuntu laptop using ssh in Terminal and run sysinstall. I've never encountered this problem though. -- Dale Scott Calgary, AB, Canada ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: sysinstall and the Right Terminal
Polytropon writes: What about using $TERM = xterm or cons25 (or cons25l1)? Thank you! I tried cons25 first and it worked very well. Since I am still actually receiving via the linux terminal definition, I was surprised it worked as well as it does. The cons25 must use many of the same escape sequences that vt100 style terminals do. The arrows appeared to work and the screen seemed to be formatted well enough. I left $TERM set to cons25 and tried vi on a file. It started out okay but some of the escape sequences are not compatible as things soon got messy. Even so, it is nice to know that sysinstall can be remotely run without too much strangeness. Martin McCormick WB5AGZ Stillwater, OK Systems Engineer OSU Information Technology Department Telecommunications Services Group ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org